16.07.2015, 12:39
try this
Код:
CMD:gateopen(playerid, params[]) { new skin = GetPlayerSkin(playerid); if(skin == 265 || skin == 280 || skin == 281 || skin == 282 || skin == 283 || skin == 284 || skin == 288) { if (IsPlayerInRangeOfPoint(playerid,15,1533.4419,-1627.7628,13.4876)) { MoveObject(lspdgate1, 1539.6418457031, -1634.3499755859, 12, 2); MoveObject(lspdgate2, 1539.6418457031, -1621, 12, 2); SetTimer("GateClose0", 3400, 0); } else if (IsPlayerInRangeOfPoint(playerid,15,1553.3512,-1628.0248,13.4897)) { MoveObject(lspdgate3, 1549.2487792969,-1634.4000244141,12, 2); MoveObject(lspdgate4, 1549.2487792969,-1621,12, 2); SetTimer("PDEXIT", 3400, 0); } } else SendClientMessage(playerid, Message, "You are not a Police Officer"); return 1; }