Jump to content
MakeWebGames

Recommended Posts

Posted

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 :)

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...