18.12.2010, 20:06
pawn Код:
new str[128];
if(IsPlayerJustice(playerid) && !IsPlayerJustice(killerid)) {
BountyKills[killerid]++;
if(BountyKills[killerid] > 3) {
if(BountyKills[killerid] == 4) Bounty[killerid] = 10000;
else Bounty[killerid] += 2500;
GetName(killerid, killername);
format(str, sizeof(str), "%s (%d) now has a bounty of $%d", killername, killerid, Bounty[killerid]);
SendClientMessageToAll(COLOR_YELLOW, str);
}
}
if(Bounty[playerid] > 0) {
GetName(playerid, playername);
GivePlayerMoney(killerid, Bounty[playerid]);
format(str, sizeof(str), "You got $%d bounty reward for killing %s (%d)", Bounty[playerid], playername, playerid);
SendClientMessage(killerid, COLOR_YELLOW, str);
}
}
Bounty[playerid] = 0;
BountyKills[playerid] = 0;