12.08.2015, 23:12
Код:
if (strcmp("/open police", cmdtext, true, 10) == 0) { if(GetPlayerSkin(playerid)!=280) return SendClientMessage(playerid, COLOR_ERROR,"You are not a cop"); IsPlayerInRangeOfPoint(playerid, 3.0, 1151.2433,-1226.3589,17.2747); { else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1151.2433,-1226.3589,17.2747);) { SendClientMessage(playerid, COLOR_RED, "You are not near the gate."); } MoveDynamicObject(copgate, 1151.3508, -1222.7382, 9.6951, 3); SendClientMessage(playerid, COLOR_BLUE, "Gate: Opened."); return 1; }