SA-MP Forums Archive
[FilterScript] [FS] Lotto - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS] Lotto (/showthread.php?tid=35631)



[FS] Lotto - Clavius - 29.04.2008

Info
This is a simple lotto system. It draws numbers from 1 to 99 every 24 game hours (24 minutes in real life). The players can buy lotto tickets in 24/7 shops for $2000 (default). The jackpot starts from 0, and grows randomly every second. If someone wins it, he/she will get the money, and the jackpot will reset to 0.

Commands
/lotto [number] -- buy a lotto ticket, can only be used in 24/7 shops
/jackpot -- shows the current jackpot
/resetjackpot -- sets the jackpot to 0, can only be used by admins
/lottocommands -- shows the list of commands

Download the .zip file from here: (pwn and amx)
FS_plotto.zip
EDIT: Pastebin link added:
http://pawn.pastebin.com/f4591b4d8

And by the way, this is my first FS.


Re: [FS] Lotto - Rks25 - 29.04.2008

You got an pastebin link?


Re: [FS] Lotto - Clavius - 29.04.2008

Quote:
Originally Posted by Rksss
You got an pastebin link?
Added to the first post.


Re: [FS] Lotto - Rks25 - 29.04.2008

Nice!!


Re: [FS] Lotto - Zh3r0 - 29.04.2008

Not bad.


Re: [FS] Lotto - Clavius - 29.04.2008

Thanks.


Re: [FS] Lotto - gijsmin - 07.10.2008

thanks
but how i can change
you can every where buy tickets
not in the stores
what must delete


Re: [FS] Lotto - Amit - 08.10.2008

Quote:
Originally Posted by gijsmin
thanks
but how i can change
you can every where buy tickets
not in the stores
what must delete
Remove the lines under /lotto where it checks if you're in a 24/7 interior...

Delete these lines-
Код:
new interior = GetPlayerInterior(playerid);
if (interior == 17 || interior == 10 || interior == 18 || interior == 16 || interior == 6 || interior == 4)
{
}
else
{
  SendClientMessage(playerid, COLOR_RED, "You can buy lotto tickets only in 24/7 shops.");
}



Re: [FS] Lotto - Mikep - 24.11.2008

Very nice script, i use it in my Server, ive heavily modified it to include lots of crap lol.


Re: [FS] Lotto - notec100 - 24.11.2008

Looks good I'll give it a try Thanks!