Random payment to Random player - 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: Random payment to Random player (
/showthread.php?tid=145264)
Random payment to Random player -
ViruZZzZ_ChiLLL - 01.05.2010
Question:
I was just wondering on how to pay random cash to a random player every 20mins or so.
Example : ViruZZzZ_ChiLLL has one the lottery with $250,432
________
S-Class
Re: Random payment to Random player -
-Rebel Son- - 01.05.2010
Set a timer, create a function that gets a random player ID, (maybe onPlayerConnect?)
then on the fuction make a random, with the ammounts you want. then put the random on GivePlayerMoney.