SA-MP Forums Archive
[HELP] I need help with gate - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] I need help with gate (/showthread.php?tid=69609)



[HELP] I need help with gate - Selluliitti_mies - 19.03.2009

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


Re: [HELP] I need help with gate - Vince - 19.03.2009

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;
}



Re: [HELP] I need help with gate - Selluliitti_mies - 19.03.2009

Thank You!