SA-MP Forums Archive
Timer - 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: Timer (/showthread.php?tid=126375)



Timer - laserhel50 - 08.02.2010

How do i set a Timer to check the Player's Position for a Automatic gate?
I only need this, dont gimme a link to the Tutorial on samp wiki, as im gonna use a different way


Re: Timer - Sergei - 08.02.2010

Quote:
Originally Posted by laserhel50
I only need this, dont gimme a link to the Tutorial on samp wiki, as im gonna use a different way
Lol'ed heavily. You are asking for a help to set single timer which is explained on wiki and then you say don't tell you about wiki tutorial since you are going to do it in a different way. We can't help you if we don't know your "different" way.

And I wouldn't use timer for this, but OnPlayerUpdate with ticks.


Re: Timer - laserhel50 - 08.02.2010

Can't find it :/


Re: Timer - laserhel50 - 08.02.2010

cmon, help xD i cant continue scripting


Re: Timer - mansonh - 08.02.2010

Read what $ЂЯĢ said.
If you are using a timer, just look at the wiki tutorial.
Otherwise you need to explain what this other way is or we can't help you.


Re: Timer - laserhel50 - 08.02.2010

Код:
public AutoGates(playerid);
	SetTimer("GateTimer", 1000, true);
  if(IsPlayerInRangeOfPoint(playerid, 15.0, 1584.7135009766, -1637.9886474609, 12.379525184631))
  MoveObject(PDG, 1584.732421875, -1637.9846191406, 12.379920959473, 7.0);
  SetTimer("gateClose", 15000, false);
  MoveObject(PDG, 1584.7135009766, -1637.9886474609, 12.379525184631, 7.0);
return 1;
}
it gotta work if i get the timer workin


Re: Timer - laserhel50 - 08.02.2010

cmon...


Re: Timer - Torran - 08.02.2010

http://joestaff.wikispaces.com/Automatic+Gates


Re: Timer - ~Dangun! - 08.02.2010

This might work.
Код:
public AutoGates(playerid);
  if(IsPlayerInRangeOfPoint(playerid, 15.0, 1584.7135009766, -1637.9886474609, 12.379525184631))
  MoveObject(PDG, 1584.732421875, -1637.9846191406, 12.379920959473, 7.0);
  SetTimer("gateClose", 15000, false);
return 1;
}

forward gateClose(playerid);
public gateClose(playerid)
{
MoveObject(PDG, 1584.7135009766, -1637.9886474609, 12.379525184631, 7.0);
return 1;
}



Re: Timer - Sergei - 08.02.2010

https://sampwiki.blast.hk/wiki/Automatic_Gates