[Ajuda] Score nгo aumenta
#2

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    /* AUMENTA O SCORE QUANDO MATA UM PLAYER */
    if(killerid != INVALID_PLAYER_ID) SetPlayerScore(killerid, GetPlayerScore(killerid) =+);

    PlayerInfo[playerid][Morreu]++;

    if(lasthit[playerid] == -1)
    {
        SendDeathMessage(INVALID_PLAYER_ID, playerid, reason);
        return 1;
    }
    if(lasthit[playerid] != -1)
    {
        SendDeathMessage(lasthit[playerid],playerid,GetPlayerWeapon(lasthit[playerid]));
        return 1;
    }
    lasthit[playerid] = -1;
    return 1;
}
Reply


Messages In This Thread
Score nгo aumenta - by .ThePro - 26.04.2013, 19:53
Respuesta: Score nгo aumenta - by Pedro Pawno - 26.04.2013, 22:10
Re: Score nгo aumenta - by Don_Speed - 26.04.2013, 22:25
Re: Score nгo aumenta - by mau.tito - 26.04.2013, 22:34
Re: Score nгo aumenta - by .ThePro - 27.04.2013, 00:25
Re: Score nгo aumenta - by smiiir - 27.04.2013, 00:33
Re: Respuesta: Score nгo aumenta - by .ThePro - 27.04.2013, 00:42
Re: Score nгo aumenta - by BreakDriFT - 27.04.2013, 00:48
Re: Score nгo aumenta - by .ThePro - 27.04.2013, 00:51

Forum Jump:


Users browsing this thread: 1 Guest(s)