02.01.2014, 18:09
Quote:
Also, I have noticed that
pawn Код:
What are you trying to accomplish doing that? |
Here is the command;
Код:
CMD:respawncars(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 2) { if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /respawncars [radius]"); if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty."); new string[128], radius = strval(params); if((radius < 1 || radius > 40) && PlayerInfo[playerid][pAdmin] < 4) return SendClientMessage(playerid, COLOR_WHITE, "Radius must be higher than 0 and lower than 31!"); RespawnNearbyVehicles(playerid, radius); format(string, sizeof(string), "You have respawned all vehicles within a radius of %d.", radius); SendClientMessage(playerid, COLOR_GREY, string); } else SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!"); return true; }