[FilterScript] [FS] Lotto
#1

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.
Reply
#2

You got an pastebin link?
Reply
#3

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

Nice!!
Reply
#5

Not bad.
Reply
#6

Thanks.
Reply
#7

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

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.");
}
Reply
#9

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

Looks good I'll give it a try Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)