21.04.2013, 19:02
Hello. I was wondering if I could combine these two commands together:
So that if the gate is open, and /gate is done, it will close it.
Please help
-Jason
Код:
CMD:gate(playerid, params[]) { if(IsPlayerInRangeOfPoint(playerid, 20.0, -1631.0911,688.6709,7.1875)) { MoveDynamicObject(SFPDGate1, -1639.82, 688.49, 6.37, 2.9); MoveDynamicObject(SFPDGate2, -1639.82, 688.49, 6.37, 2.9); } return 1; } CMD:cgate(playerid, params[]) { if(IsPlayerInRangeOfPoint(playerid, 20.0, -1631.0911,688.6709,7.1875)) { MoveDynamicObject(SFPDGate1, -1623.43, 688.50, 6.37, 2.9); MoveDynamicObject(SFPDGate2, -1631.32, 688.49, 6.37, 2.9); } return 1; }
Please help
-Jason