Onplayerdeath Problem =(
#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


Messages In This Thread
Onplayerdeath Problem =( - by Kasura - 07.11.2010, 16:32
Re: Onplayerdeath Problem =( - by The_Moddler - 07.11.2010, 17:03
Re: Onplayerdeath Problem =( - by Kasura - 07.11.2010, 22:01
Re: Onplayerdeath Problem =( - by The_Moddler - 07.11.2010, 22:56

Forum Jump:


Users browsing this thread: 1 Guest(s)