What is the best way to do this?
Right now I'm using showimgs like that:
PHP Code:
//#CLIENTSIDE
function onCreated() setTimer(0.1);
function onTimeOut() {
temp.i = 0;
for (pl: players) {
with(findimg(500 + temp.i)) {
x = pl.x + 1.5;
y = pl.y + 3.5;
red = blue = green = 1;
textshadow = true;
shadowcolor = {0, 0, 0};
if (pl.clientr.invincible == true)
text = "(" SPC pl.nick SPC ")";
else
text = pl.nick;
zoom = alpha = 0.7;
style = "c";
}
temp.i++;
}
setTimer(0.05);
}
But it kind of drags behind the player character when he walks.
Is there a way to prevent that?
I've read
here that showimgs can be attached to an owner, how does that work?
Also, I've read somewhere on here that there are indexes for showimgs that make them visible for all players, can I use this somehow?