15.07.2010, 09:36
just make a global varable say
new bool:gateopen;
then when the command runs check
if(gateopen) //close gate
else //open gate
and when it opens go: gateopen = true;
and when it closes go: gateopen = false;
chur chur
new bool:gateopen;
then when the command runs check
if(gateopen) //close gate
else //open gate
and when it opens go: gateopen = true;
and when it closes go: gateopen = false;
chur chur