Jump to content
MakeWebGames

Mug feature with Stats!


2Pacalypse

Recommended Posts

Before we start:

I didn't make the Mug script - it was a "freebie" on mccodes.com!

Credits:

75% to mccode for making the Hackpc/mug script

25% to 2Pacalypse for adding stuffs

Basically this makes it so as players can essentially steal other players money and claim it for themselves!

I have added a feature which keeps a record of how many times someone has mugged another player, how much money they have made from muggings and finally, how much they have lost from muggings!

Here's the basic mug.php:

You're unable to view this code.

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

 

 

mug.config.php

You're unable to view this code.

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

 

 

Now all you have to do is.... go to your phpmyadmin & run these commands:

You're unable to view this code.

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

 

 

Finally, to display these stats go to index.php and add this:

You're unable to view this code.

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

 

 

Have a good day!

Link to comment
Share on other sites

  • 4 weeks later...

Re: [V2] Mug feature with Stats!

I get this when i try to run php my admin

Error

SQL query:

ALTER TABLE users ADD mugs int( 11 ) NOT NULL default 0 ALTER TABLE users ADD muggain int( 11 ) NOT NULL default 0 ALTER TABLE users ADD mugloss int( 11 ) NOT NULL default 0

MySQL said: Documentation

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ALTER TABLE users ADD muggain int(11) NOT NULL default 0

ALTER TABLE users ADD' at line 2

Link to comment
Share on other sites

Re: [V2] Mug feature with Stats!

 

Untested, combine of the mug and config file.

 

You're unable to view this code.

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

 

You're unable to view this code.

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

Why did you take it out of the array there was no need for that at all.

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...
  • 5 years later...

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...