[HELP] SetPlayerScore
#2

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
 {
    GivePlayerMoney(playerid, -500);
    GivePlayerMoney(killerid, 1000);
    PlayerInfo[playerid][pDeaths] += 1;
    PlayerInfo[killerid][pKills] += 1;
    SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
    SendClientMessage(playerid, COLOR_ORANGE,"For dying, you have lost $500.");
    SendClientMessage(killerid, COLOR_ORANGE,"For killing someone, you have received $1000.");
    return 1;
 }
Reply


Messages In This Thread
[HELP] SetPlayerScore - by Dubya - 09.06.2012, 01:13
Re: [HELP] SetPlayerScore - by D.Prizzy - 09.06.2012, 01:16
Re: [HELP] SetPlayerScore - by Dubya - 09.06.2012, 01:22
Re: [HELP] SetPlayerScore - by MP2 - 09.06.2012, 01:28
Re: [HELP] SetPlayerScore - by Dubya - 09.06.2012, 01:34
Re: [HELP] SetPlayerScore - by JaKe Elite - 09.06.2012, 02:14
Re: [HELP] SetPlayerScore - by JhnzRep - 09.06.2012, 02:20

Forum Jump:


Users browsing this thread: 1 Guest(s)