#2

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:
Reply


Messages In This Thread
How - by darkhunter332 - 30.07.2016, 07:35
Re: How - by Ahmed21 - 30.07.2016, 07:59
Re: How - by darkhunter332 - 30.07.2016, 08:02
Re: How - by jlalt - 30.07.2016, 08:10
Re: How - by darkhunter332 - 30.07.2016, 08:19
Re: How - by Ahmed21 - 30.07.2016, 08:34
Re: How - by darkhunter332 - 30.07.2016, 08:35

Forum Jump:


Users browsing this thread: 1 Guest(s)