SA-MP Forums Archive
[Ajuda] Anti Spawn Kill Bugado - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Anti Spawn Kill Bugado (/showthread.php?tid=624137)



Anti Spawn Kill Bugado - IlanZ - 11.12.2016

Ai galera, o error й o seguinte, a funзгo da public estб setando apenas para o id 0 alguem sabe arrumar isso?
PHP код:
// em OnPlayerSpawn...
new string[90];
    
format(string,sizeof(string),"[Anti-SpawnKill] Olб %s, Vocк estб imortal por 5 segundos!",NomePlayer(playerid));
    
SendClientMessage(playeridVermelhostring);
    
SetPlayerHealth(playerid99999);
    
SetPlayerArmour(playerid99999);
    
SetTimer("antispawnkill"5000false);
    return 
true;
}
forward antispawnkill(playerid);
public 
antispawnkill(playerid)
{
    
SetPlayerHealth(playerid100);
    
SetPlayerArmour(playerid100);
    
SendClientMessage(playeridVermelho"[Anti-SpawnKill] Sua invencibilidade, ja passou!\nBom Game!");
    return 
1;




Re: Anti Spawn Kill Bugado - HardWar - 11.12.2016

Код:
SetTimerEx("antispawnkill", 5000, false, "i", playerid);



Re: Anti Spawn Kill Bugado - Relaxed - 11.12.2016

PHP код:
SetTimer("antispawnkill"5000false);
// por
SetTimerEx("antispawnkill"5000false"i"playerid); 



Re: Anti Spawn Kill Bugado - IlanZ - 11.12.2016

Obrigado senhores