SA-MP Forums Archive
[FilterScript] Fully Custom Slot Machines - 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] Fully Custom Slot Machines (/showthread.php?tid=314827)



Fully Custom Slot Machines - Drebin - 31.01.2012

Serversided Slot Machines
Version 1.0

[ame]http://www.youtube.com/watch?v=y12kt7iGnqs[/ame]
Info

Commands

/gamble - Allows the player to start gambling if he's close enoug to a slot machine and has enough money to pay the wager.
/stopgamble - Allows the player to stop gambling.
Secondary Fire key - Spins all of the three slots just by pressing the key.


Download
Via adf.ly

Solidfiles download (WinRar)
Pastebin


Install

Put the SlotMachines.pwn (and the SlotMachines.amx if you downloaded from Solidfiles) into your filterscripts folder. Open the Slotmachines.pwn and edit the defines as you desire:
pawn Код:
//------------------------------------------------------
#define DIALOG_STARTGAMBLE  1893    //DialogID of the dialog shown when a player types /gamble
#define DIALOG_STOPGAMBLE   1894    //DialogID of the dialog shown when a player types /stopgamble
#define GAMBLE_WAGER        5       //Amount of money a player has to pay whenever he spins the slot machine (wager)
#define REWARD_DOUBLEBAR    999     //Amount of money a player recieves when he has 3x the double goldbars (Should be highest value)
#define REWARD_BAR          888     //Amount of money a player recieves when he has 3x the single goldbar
#define REWARD_BELL         777     //Amount of money a player recieves when he has 3x the gold bell
#define REWARD_CHERRY       666     //Amount of money a player recieves when he has 3x the cherry
#define REWARD_GRAPES       555     //Amount of money a player recieves when he has 3x the grapes
#define REWARD_SIXTYNINE    444     //Amount of money a player recieves when he has 3x the 69 (Should be lowest value)
//------------------------------------------------------
Compile the script, open your server.cfg, put 'SlotMachines' in the filterscripts line and you're ready to run!


Credits

Drebin - Idea, design and coding


It's my first FS so don't expect it to be perfect :P.
Image(s)


Re: Fully Custom Slot Machines - Hard` - 31.01.2012

Nice job guy.


Re: Fully Custom Slot Machines - dnee - 31.01.2012

Cool ! Good Job


Re: Fully Custom Slot Machines - ZAM - 31.01.2012

Drebin,very nice script

download...


Re: Fully Custom Slot Machines - Passout - 01.02.2012

omg this is awesome dude! I'm deff gonna be using this. Thanks for releasing something this amazing.