ManDown
29th March 2013, 08: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";
}
}
}
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";
}
}
}