SetPlayerScore help .
#3

Quote:
Originally Posted by J4Rr3x
Посмотреть сообщение
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid != INVALID_PLAYER_ID)
    {
       GivePlayerMoney(killerid, random(5000));
    }
    GivePlayerMoney(playerid, -400);
    SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); // It's 'killerid' not 'playerid'
    SendDeathMessage(killerid, playerid, reason);
    return 1;
}
Oh . Thank You .
Reply


Messages In This Thread
SetPlayerScore help . - by quochuy - 04.05.2015, 16:11
Re: SetPlayerScore help . - by J4Rr3x - 04.05.2015, 16:15
Re: SetPlayerScore help . - by quochuy - 04.05.2015, 16:18

Forum Jump:


Users browsing this thread: 1 Guest(s)