09.06.2012, 01:16
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;
}