Jump to content
MakeWebGames

[mccode v2] Freeze & Reactivate a Users Bank Account


Uridium
 Share

Recommended Posts

Small mod Which enables Staff to Freeze a Users bank account if they have an Queries it can be reopened again whn satisfied..

SQL

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Now open up Staff_users.php

find

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Underneeath add.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Next Find

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Underneath Add

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Then Find

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Overwrite with..

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Then Find

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Underneath Add

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Then Find

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Undernath Add

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Now open Up bank.php

And just under include"globals.php"; add

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

When you Edit a User to Freeze a Bank account 0=Active and 1=Frozen.....

Small NOTE the addon to the bank.php can also be added to any market scripts or crystal banks that you have in your game it will do the same Task as putting it into the bank script.

Link to comment
Share on other sites

Re: [MOD] V2 Freeze & Reactivate a Users Bank Account

Great mod mate. :)

As for why you'd freeze their bank account: possibly as a punishment? Say, if the user is constantly breaking the rules or something, they would have their bank account frozen so they can't access it. Then, once they learn, it would be unfrozen. Just an idea off the top of my head. :-P

Link to comment
Share on other sites

Re: [MOD] V2 Freeze & Reactivate a Users Bank Account

The whole Idea of the Freeze Bank Accounts is so you dont have a massive list of fed jails.

If a user has no money they cause no real threat + it acts like a judification system where by staff can invenstigate a members account without the member getting richer in the process.

The only thing i have forgot and will do a piece for is members Inventory so they cant send items or cash to a person whos account is frozen..

Also for the user thats frosen their inventory will have Send to market. sell removed until an issue has been resolved. they will however stil be able to use and equip items...

I noticed on the staff panel there wasnt an option for this and now there is it may prove useful.

Link to comment
Share on other sites

Re: [MOD] V2 Freeze & Reactivate a Users Bank Account

Small update to stop other members from sending money or crystals to a frozen account

open up sendcash.php and sendcrys.php

and add this after the print"globals.php";

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

This will disallow Transfers from Active members to thos that have frozen Accounts...

Open up itemsell.php and imadd.php

and add this before print"globals.php";

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Will disallow those that are Frozen not to be able to add or sell Items.....

Link to comment
Share on other sites

Re: [MOD] V2 Freeze & Reactivate a Users Bank Account

Keep Track Of Frozen Users Accounts.

open up global_func.php

Just after <?php or <?

Add

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Now open up staff_users.php

Find

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add above it

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

now find

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

And add above it..

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Finally open smenu.php

and add this to the users section

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

You can now keep track of all Users Whos accounts have been frozen

Link to comment
Share on other sites

Re: [MOD] V2 Freeze & Reactivate a Users Bank Account

 

I have just installed this script and it doesnt work, when you type 1 in the user edit form and click submit or "edit user" it doesnt stay as 1 it resets back to 0. any ideas as to why?

Check your phpmyadmin

8 out of 10 its probably my table fields as i add them manually

make sure that your USERS table under FROZEN is default 0

ALTER TABLE users ADD frozen INT(11) NOT NULL DEFAULT 0;

It maybe my Alter table thats wrong

Link to comment
Share on other sites

Re: [MOD] V2 Freeze & Reactivate a Users Bank Account

From the first post i missed a $frozen so heres the corrected piece Thanks to SAINT for pointing this out :)

$db->query("INSERT INTO users (username, login_name, userpass, level, money, crystals, donatordays, frozen, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney) VALUES( '{$_POST['username']}', '{$_POST['login_name']}', md5('{$_POST['userpass']}'), $level, $money, $crystals, $frozen, $donator, $ulevel, $energy, $energy, 100, 100, $brave, $brave, $hp, $hp, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', -1)");

Link to comment
Share on other sites

  • 2 weeks later...

Re: [mccode v2] Freeze & Reactivate a Users Bank Account

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

I have the same problem as saint had and even with this,

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Still won't work? heres my bank.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

the sql i ran

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Link to comment
Share on other sites

  • 4 months later...

Re: [mccode v2] Freeze & Reactivate a Users Bank Account

Just to fix the Error of the SQl not updating

Open up staff_users.php

FIND.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

And Replace with....

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Your Frozen Accounts shoul now be updated...

ALSO in the imadd.php and itmsell.php

Overwrite what i had before which was

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

with this one

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...