27.07.2013, 13:59
Guys please help me, I need help. I want make Simple Antispawnkill system.
Well, it is worked, but although AntiSpawnKill is has been off, the health and armor keep regenerating :/
How i can stop this? Ive make KillTimer but it still not work
Please help, i really need this.
Here is the code:
Well, it is worked, but although AntiSpawnKill is has been off, the health and armor keep regenerating :/
How i can stop this? Ive make KillTimer but it still not work
Please help, i really need this.
Here is the code:
Код:
OnPlayerSpawn(playerid) { SetPlayerHealth(playerid, 1000000); SetTimerEx("endspawnkillprotect", 5000, true, "i", playerid); SendClientMessage(playerid, COLOR_BRIGHTRED, "Youre Protected by Anti Spawnkill Now"); SetPlayerToTeamColour(playerid); return 1; }
Код:
new connect_timer[MAX_PLAYERS]
Код:
forward endspawnkillprotect(playerid);
Код:
public endspawnkillprotect(playerid) { SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid, 100.0); KillTimer(connect_timer[playerid]); return 1; }