21.07.2014, 09:41
Код:
CMD:repair(playerid, params[]) { new pName[MAX_PLAYERS]; GetPlayerName(playerid, pname, sizeof(pName)); new string[128]; format(string,sizeof(string),"%s repaired his vehicle.",pName(playerid)); SendClientMessageToAll(-1,string); if(Job[playerid] != 7) return SendClientMessage(playerid, 0xAFAFAFAA, "You not are Mechanic"); if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xAFAFAFAA, "You are not in a vehicle!"); return 1; }