Onplayerdeath Problem =(
#1

RESOLVIDO
Reply
#2

pawn Код:
public OnPlayerDeath(playerid,killerid,reason)
{
    SendDeathMessage(killerid,playerid,reason);
    if(IsPlayerConnected(killerid))
    {
        SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
        EXP[killerid] += 1;
        status[killerid][0] += 1;
    }
    GameTextForPlayer(playerid, "~r~Morreu kkkkk!", 5000, 2);
    TextDrawShowForPlayer(playerid, Textdraw0[playerid]);
    TextDrawShowForAll(Textdraw3);
    TextDrawShowForAll(Textdraw4);
    TextDrawShowForAll(Textdraw1);
    TextDrawShowForAll(Textdraw2);
    SetPlayerScore(playerid,GetPlayerScore(playerid)-1);
    EXP[playerid] -= 1;
    status[playerid][1] -= 1;
    if(Equipe[playerid] == Time_Marinha)
    {
        Exercito += 1;
    }
    else if(Equipe[playerid] == Time_Exercito)
    {
        Marinha += 1;
    }
    return 1;
}
Reply
#3

Thank you very much

It worked!
I was one month trying to solve the Portuguese area, I was just coming to ask for help in English that my problem was solved!

Again sorry my bad english
Reply
#4

Yeah no problem dude.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)