Random 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)
+--- Thread: Random timer (
/showthread.php?tid=612831)
Random timer -
MayaEU - 21.07.2016
How to make this timer go from minimum 5 seconds, to 70 seconds?
pawn Код:
fishtimer[playerid] = SetTimerEx("FishTimer", random(5000-70000+1)+1000, false, "i", playerid);
Re: Random timer -
SickAttack - 21.07.2016
pawn Код:
fishtimer[playerid] = SetTimerEx("FishTimer", RandomBetween(5000, 70000), false, "i", playerid);
stock RandomBetween(minimum_value, maximum_value)
{
return (random((maximum_value - minimum_value) + 1) + minimum_value);
}
Re: Random timer -
MayaEU - 21.07.2016
Thanks alot, rep+