[HELP] I need help with gate
#1

How do I make a port which opens when you have stood in long enough in checkpoint, and if you leave checkpoint you will have to go it again, and time will start again. I already try "search" but i didn't found anything
Reply
#2

pawn Код:
new timer;

OnPlayerEnterCheckpoint(playerid)
{
  timer = SetTimer("opengate", 3000, 0);
  return 1;
}

OnPlayerLeaveCheckpoint(playerid)
{
  KillTimer(timer);
  return 1;
}

forward opengate();
public opengate()
{
  MoveObject();
  return 1;
}
Reply
#3

Thank You!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)