31.07.2012, 17:25
This is on top of my script.
This is in my Public OnGamemodeInit()
This is the command to move the gate.
This is the close command for the gate.
That's all.
Код:
new Admingate;
Код:
AdminGate = CreateObject(980, 1342.75, -3439.04, 6.31, 0.00, 0.00, 0.00);//closed
Код:
if (strcmp("/opengate", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 20, 1354.28, -3439.05, 6.31)) { MoveObject(AdminGate, 1354.28, -3439.05, 6.31, 2); } }
Код:
if (strcmp("/closegate", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 20, 1354.28, -3439.05, 6.31)) { MoveObject(AdminGate, 1342.75, -3439.04, 6.31, 2); } }