28.10.2010, 06:28
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:
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]);
}


