11.01.2014, 09:31
I want like that: "AntiSpawnTimerKill" because if not killed the timer this may cause lagg, Here is the CODE
OnPlayerSpawn:
Called this:
OnPlayerSpawn:
Код:
if(DMZone[playerid] >= 0) { SetPlayerHealth(playerid, 100000); SetTimerEx("AntiSpawnkill",4000,0,"i",playerid); }
Код:
forward AntiSpawnkill(playerid); public AntiSpawnkill(playerid) { if(DMZone[playerid] == 0) { SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 1) { SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 2) { SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 3) { SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 4) { SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 5) { SetPlayerArmour(playerid,50); SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 6) { SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 7) { SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 8) { SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 9) { SetPlayerHealth(playerid,40); } if(DMZone[playerid] == 10) { SetPlayerHealth(playerid,40); } if(DMZone[playerid] == 11) { SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 12) { SetPlayerHealth(playerid,100); } return 1; }