PDA

View Full Version : status icon



ManDown
29th March 2013, 09:34
Hey all,
Could someone help me?
I have one question.
I am going to give status icon over head for everyone enemy.
If self.statuspoint = 2
{
give all enemies status icon over head but only this one who has self.statuspoint = 2 can see this status icons.
}

hmm... something like wh xD,
If self.statuspoint = 2 this self see over enemies stausicon, but in the same moment all selfs who have self.statuspoint = 1 see nothing over enemies.

my script:



if self.statuspoint = 2
self thread skrypt()

skrypt()
{
self endon("disconnect");
self endon("player_killed");

players = getentarray("player", "classname");
for(i = 0; i < players.size; i++)
{
player = players;
if (self.pers["team"] != player.pers["team"])
{
player.statusicon = "example_img";
}
}
}

EvoloZz
29th March 2013, 09:45
Use player = players[i]; instead

kung foo man
29th March 2013, 12:06
Please write
next time around your code (color indention).

Earliboy
29th March 2013, 12:46
Just take a look in the _friendicons.gsc

ManDown
30th March 2013, 20:53
I mean Head Icon not status icon