07.11.2012, 07:07
Код:
CMD:su(playerid, params[]) { new id, crime; new string[128]; if(sscanf(params, "us", id, crime)) return SendClientMessage(playerid, COLOR_ORANGE, "Koristi: {FFFFFF}/su [ID/Nick] [Zlocin]"); else if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}>> [GRESKA] {FFFFFF}Krivi ID!"); format(string, sizeof string, "Officer %s reported - %s.", playerid, id); //officer reported player SendClientMessage(playerid, 0x9955DEEE, string); format(string, sizeof string, "You put wanted on %s reason - %s.", id, crime); // officer put wanted on player with reason SendClientMessage(playerid, 0x9955DEEE, string); format(string, sizeof string, "**ALL UNITS** %s is wanted for - %s.", id, crime); //Sending message to all officers .... Nick and Reason SendFamMessage(1,0x9955DEEE, string); SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 1); return 1; }