30.07.2016, 07:59
Make a variable and let it be 0 in default.
For example: new GateOpened = 0; Type the GateOpened up the OnGameModeInit callback.
When you do /gate, it checks if GateOpened is 0, if it is 0 then open the gate and set GateOpened to 1.
Then type "else if(GateOpened == 1)" then close the gate and set GateOpened to 0:
For example: new GateOpened = 0; Type the GateOpened up the OnGameModeInit callback.
When you do /gate, it checks if GateOpened is 0, if it is 0 then open the gate and set GateOpened to 1.
Then type "else if(GateOpened == 1)" then close the gate and set GateOpened to 0:

