03.10.2013, 15:33
Tip/Trick Title: Antispawn Kill
Tip/Trick Description: When someone dies and spawns, they'll have an anti-spawn-kill for 5 seconds, ideal for anything other than RPG.
Tip/Trick Example(Use PAWN tags):
Note: Good topic
.
Tip/Trick Description: When someone dies and spawns, they'll have an anti-spawn-kill for 5 seconds, ideal for anything other than RPG.
Tip/Trick Example(Use PAWN tags):
pawn Code:
#include <a_samp>
forward SpawnKillTimer(playerid);
public OnPlayerSpawn(playerid)
{
SetTimerEx("SpawnKillTimer", 5000, false, "i", playerid);
GameTextForPlayer(playerid, "~r~anti-spawn-kill 5 seconds", 5000, 6);
SetPlayerHealth(playerid, 9999999);
return 1;
}
public SpawnKillTimer(playerid)
{
SetPlayerHealth(playerid, 100);
GivePlayerWeapon(playerid, 24, 500);
GameTextForPlayer(playerid, "~r~anti-spawn-kill over", 5000, 6);
return 1;
}
Note: Good topic
