How to fix scripts that only work for id 0?
#1

So i'v made this anti spawn kill and it works fine untill it sets you back to 100 health, only id 0 gets changed back to 100 health, every other player stays at 9999 forever.


code:
Код:
forward AntKill(playerid);

label[playerid] = Create3DTextLabel("Anti Spawnkill",0x300FFAAB,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
SetPlayerHealth(playerid,9999999);
SetTimer("AntKill",15000,false);

public AntKill(playerid)
{
SetPlayerHealth(playerid,100.0);
Delete3DTextLabel(label[playerid]);
}
Reply


Messages In This Thread
How to fix scripts that only work for id 0? - by Haydz - 28.10.2010, 06:28
AW: How to fix scripts that only work for id 0? - by [Nino] - 28.10.2010, 06:37
Re: How to fix scripts that only work for id 0? - by Jochemd - 28.10.2010, 07:10
Re: How to fix scripts that only work for id 0? - by DevilG - 28.10.2010, 08:56
Re: How to fix scripts that only work for id 0? - by Mean - 30.10.2010, 11:24

Forum Jump:


Users browsing this thread: 1 Guest(s)