16.04.2016, 14:40
Код:
CMD:arrest(playerid, params[]) { if(pInfo[playerid][Faction] == 1) { if(IsPlayerInRangeOfPoint(playerid, 9.0, 49.6361,-201.6498,-5.7678 )) { new ID; if(sscanf(params,"i", ID)) return SendClientMessage(playerid,-1,"{FF0000}USAGE: {15FF00}/Arrest [ID]"); SetPlayerPos(ID, 264.4282,82.2066,1001.0391); SetPlayerFacingAngle(ID, 344.0042); SendClientMessage(ID, -1, "{FF0000}You got arrested !"); SendClientMessage(playerid, -1, "{0066CC}[POLICE]: {15FF00}You arrested specified player !"); } } else { SendClientMessage(playerid, -1, "{FF0000}ERROR: {15FF00}You aren't Police !"); } return 1; }