SA-MP Forums Archive
Onplayerdeath Problem =( - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Onplayerdeath Problem =( (/showthread.php?tid=188433)



Onplayerdeath Problem =( - Kasura - 07.11.2010

RESOLVIDO


Re: Onplayerdeath Problem =( - The_Moddler - 07.11.2010

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;
}



Re: Onplayerdeath Problem =( - Kasura - 07.11.2010

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


Re: Onplayerdeath Problem =( - The_Moddler - 07.11.2010

Yeah no problem dude.