[Ajuda] OnPlayerDeath
#1

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.
Reply


Messages In This Thread
OnPlayerDeath - by Thompsoon - 04.07.2015, 15:45
Re: OnPlayerDeath - by zSuYaNw - 04.07.2015, 15:51
Re: OnPlayerDeath - by Thompsoon - 04.07.2015, 16:49

Forum Jump:


Users browsing this thread: 1 Guest(s)