[Ajuda] OnPlayerDeath - 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] OnPlayerDeath (
/showthread.php?tid=580339)
OnPlayerDeath -
Thompsoon - 04.07.2015
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(IsPlayerConnected(killerid))
{
TotalMatou[killerid]++;
}
TotalMorreu[playerid]++;
SendDeathMessage(killerid,playerid,reason);
new var1[24];
GetPlayerName(killerid, var1, 24);
TogglePlayerSpectating(playerid, true);
PlayerSpectatePlayer(playerid, killerid, 1);
glob4C6C[playerid] = 1;
GameTextForPlayer(playerid, "~r~SE FODEU", 7000, 3);
SetTimerEx("Morreu", 7000, false, "d", playerid);
SetPlayerScore(playerid,GetPlayerScore(playerid) - 1);
SetPlayerScore(killerid,GetPlayerScore(killerid)+5 );
SetPlayerPos(playerid, 1177.6351,-1323.5051,14.0804);
antifakekill[playerid] ++;
SetTimerEx("antifakekill2", 1000,false,"i",playerid);
Quando o player morre, ele nгo respawna. O relogio nao trava mas a tela fica parada.
Re: OnPlayerDeath -
zSuYaNw - 04.07.2015
Noto que й um GameMode descompilado. Quando й esse tipo de script MUITOS problemas apareceram, pode aguardar.
Retire os SetTimers para ver. Poste a callback "Morreu".
Re: OnPlayerDeath -
Thompsoon - 04.07.2015
Eu tirei o
SetTimerEx("Morreu", 7000, false, "d", playerid);
E:
SetTimerEx("antifakekill2", 1000,false,"i",playerid);