[AJUDA] OnPlayerDeath(playerid, killerid, reason)
#10

malz e funзгo do onplayerdeath nao ta funcionando
pawn Код:
if(reason == 54 || reason == 53 && WantedPoints[playerid] >= 1)
    {
        new Name[MAX_PLAYER_NAME];
        PlayerInfo[playerid][pPreso] = 6;
        PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(400);
        format(string,sizeof(string),"**** [ID: %d]%s Vocк tentou suicidio com nivel de PROCURADO, atitude ANTI-RPG ! ! !",playerid,Name);
        SendClientMessage(playerid,COLOR_CV, string);
        format(string,sizeof(string),"**** [ID: %d]%s Tentou suicidio com nivel de PROCURADO, atitude ANTI-RPG ! ! !",playerid,Name);
        ABroadCast(COLOR_CV,string,1);
        ClearCrime(playerid);
        WantedPoints[playerid] = 0;
        SetPlayerWantedLevel(playerid, 0);
    }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)