bladewolf2010 Posted February 9, 2011 Posted February 9, 2011 This is a small mod that makes it so when a player gains X amount of stat it'll half it. So if player earns 1000 normally and reaches the total (10,000) it'll half so the player would earn 500. I know it's a small simple little thing, but someone might want it :) Alright this is how you install it. First off, put this into your phpMyAdmin: [mysql]ALTER TABLE `users` ADD `stat_total` int(10) NOT NULL ;[/mysql] Second, put this in your day_cron.php: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Third, put this in your gym.php with the query's You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Forth, put this in your gym.php above the query's or under if($ir['jail']) { $gain/=2; } You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You can change the 1000 with any number you see suitable :) Quote
devonbnice Posted February 10, 2011 Posted February 10, 2011 Thats a decent idea if your not wanting your users to get insane stats. But a 50% cut is a bit much. Quote
devonbnice Posted February 10, 2011 Posted February 10, 2011 Instead of making a new addon to the users. why not just make a variable? like.. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. then.. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.