Hiya there as u may have seen, ive made a slotmachine script for when u level and adoptable, that u have a chance to win prices!
Now ive made it that its an new .php file wich includes:
-Unspammable (users can only use it once a day)
-Easy customizable price gold amount
First of all, you will need to run a MYSQL Query
PHP Code:
CREATE TABLE IF NOT EXISTS `adopts_slotmachine_used` (
`date` varchar(30) DEFAULT NULL,
`username` varchar(50) DEFAULT NULL,
`ip` varchar(50) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
Second: Download the slotmachine map for the images (if you dont already have it from the levelup script)
Third: Download slotmachine.php
And your done :D
EXTRA!
Now the prices seem pretty low, 20,30,50 for once a day, but here i will explain how to edit the prices.
in slotmachine.php find:
PHP Code:
if($slot1 == 1 && $slot2 == 1 && $slot3 == 1){
You will see this line under it, this is if all slots are pointed at 1
Change that value to whatever you like to get as prize when someone gets all 1's
Example:
Do that the same for 2 and 3, those are precisely the same as the above, and should be under this first code.
Hoep i helped :)