25.11.2011, 16:50
pawn Код:
if(granastatus[playerid] > 0 && (GetPlayerTeam(killerid) == 0 || GetPlayerTeam(playerid) != GetPlayerTeam(killerid)))
{
new nomedofd[MAX_PLAYER_NAME];
GetPlayerName(killerid, nomedofd, sizeof(nomedofd));
format(string, sizeof(string), "[RECOMPENSAS]: %s recebeu a recompensa de $%d mil euros por matar %s.", nomedofd, granastatus[playerid], PlayerName(playerid));
SendClientMessageToAll(0x33AA33AA,string);
granastatus[killerid] += granastatus[playerid];
GivePlayerMoney(killerid, granastatus[playerid]);
granastatus[playerid] = 0;
ResetPlayerMoney(playerid);
}