É bem simples e fácil de fazer.
Vamos lá...
No Topo do GM:
forward AntiSpawnKillMapSamp(playerid);
Em OnPlayerSpawn:
SetPlayerHealth(playerid,9999999);
SetTimer("AntiSpawnKillMapSamp",15000,false);
SendClientMessage(playerid,COLOR_GREEN,"** O Anti-Spawn Kill foi ativado por 15 segundos.");
SetTimer("AntiSpawnKillMapSamp",15000,false);
SendClientMessage(playerid,COLOR_GREEN,"** O Anti-Spawn Kill foi ativado por 15 segundos.");
No final do GM:
public AntiSpawnKillMapSamp(playerid)
{
SetPlayerHealth(playerid,100.0);
SendClientMessage(playerid,COLOR_RED,"** O tempo de Anti-Spawn Kill acabou.");
return PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
}
{
SetPlayerHealth(playerid,100.0);
SendClientMessage(playerid,COLOR_RED,"** O tempo de Anti-Spawn Kill acabou.");
return PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
}
Pronto pessoal copile e pronto. =D
Créditos: AndMeida10
Modificado por: Miqueias Barros - FlasH_


0 comentários:
Postar um comentário