Quote:
Originally Posted by Markx
pawn Код:
//On top
new AntiSpawnKillProtected[MAX_PLAYERS];
forward AntiSpawnKillOff(playerid);
//Under OnPlayerSpawn AntiSpawnKillProtected[playerid] = 1; SetTimer("AntiSpawnKillOff", 10000, false);
// Under OnPlayerUpdate if(AntiSpawnKillProtected[playerid] == 1) { SetPlayerHealth(playerid, 1000); }
//Somewhere in script (outside a callback)
AntiSpawnKillOff(playerid) { SetPlayerHealth(playerid, 100); AntiSpawnKillProtected[playerid] = 0; SendClientMessage(playerid, -1, "Anti spawn kill is now off!"); return true; }
|
I see at least someone is searching/reading older posts
Respect man