Hold the point Help - 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)
+--- Thread: Hold the point Help (
/showthread.php?tid=495693)
Hold the point Help -
KingyKings - 18.02.2014
Okay so my idea.
There are 300 seconds that a player needs to stay within the range for to win.
I want it so When the player is in range of point, It starts the timer but when the player leaves the point it doesnt KILL the timer but pauses it. For example the player stays in the point for 10 seconds then dies. He has to go back and stay the 290 seconds..
Then when the timer reaches 0 the game ends.
Can anyone help me achieveing this or is there a similar gamemode i can look at?
Re: Hold the point Help -
CuervO - 18.02.2014
Store timer passed in a variable.
Lower it only if there are players in your point, otherwise do nothing to it.