14.03.2013, 17:38
Hi guys, look my script, why my gate is not moving?
My Code:
My Code:
Код:
new mygate; mygate = CreateDynamicObject(971,2047.2998000,-1874.7998000,14.8000000,0.0000000,0.0000000,90.2470000); //object(subwaygate) (22) if (strcmp("/opengate", cmdtext, true, 5) == 0) // The /open command { if(IsPlayerInRangeOfPoint(playerid, manchgate, 2047.2998000,-1874.7998000,14.8000000))//Checking if the player in the range of the gate { MoveObject(mygate, 2047.2998000,-1874.7998000,14.8000000, 1.00); SendClientMessage(playerid, 0xEF994300, "The gate has opened."); } return 1; } if (strcmp("/closegate", cmdtext, true, 5) == 0) // The /close command { MoveObject(mygate, 2047.2998000,-1874.7998000,5.8000000, 1.00); SendClientMessage(playerid, 0xEF994300, "The gate has closed."); return 1; }