[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(playerid, Vermelho, string);
SetPlayerHealth(playerid, 99999);
SetPlayerArmour(playerid, 99999);
SetTimer("antispawnkill", 5000, false);
return true;
}
forward antispawnkill(playerid);
public antispawnkill(playerid)
{
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SendClientMessage(playerid, Vermelho, "[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", 5000, false);
// por
SetTimerEx("antispawnkill", 5000, false, "i", playerid);
Re: Anti Spawn Kill Bugado -
IlanZ - 11.12.2016
Obrigado senhores