Making a command do two different thinks?
#2

Create new variable, like "new gatesopen;" and then check is gates opened or not:
pawn Код:
if(gatesopened == 0)
{
   //Open your gates
  gatesopened = 1;
}
else if(gatesopened == 1)
{
   //close your gates
  gatesopened = 0;
}
Reply


Messages In This Thread
Making a command do two different thinks? - by Devine - 15.07.2009, 04:39
Re: Making a command do two different thinks? - by arnutisz - 15.07.2009, 04:46

Forum Jump:


Users browsing this thread: 2 Guest(s)