2Pacalypse Posted April 14, 2009 Posted April 14, 2009 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! Quote
dgran98 Posted April 15, 2009 Posted April 15, 2009 Re: [V2] Mug feature with Stats! teeny tiny fix for index You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. should be You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
AlabamaHit Posted April 15, 2009 Posted April 15, 2009 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. Quote
2Pacalypse Posted April 15, 2009 Author Posted April 15, 2009 Re: [V2] Mug feature with Stats! Oh yeah my mistake. Just in my index.php I have declared the variable thing for $muggain & $mugloss Thanks for the fix! Quote
castle Posted April 15, 2009 Posted April 15, 2009 Re: [V2] Mug feature with Stats! is there a way to make this so you have to be in the same city as the person you are mugging? Quote
AlabamaHit Posted April 15, 2009 Posted April 15, 2009 Re: [V2] Mug feature with Stats! if($ir['location'] != $r['location']) { echo "You have to be in same locaiton."; exit; } Quote
furn355 Posted May 13, 2009 Posted May 13, 2009 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 Quote
Zero-Affect Posted May 13, 2009 Posted May 13, 2009 Re: [V2] Mug feature with Stats! You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. try that Quote
Paddy Posted May 13, 2009 Posted May 13, 2009 Re: [V2] Mug feature with Stats! did you try to run them 1 by 1? Quote
furn355 Posted May 14, 2009 Posted May 14, 2009 Re: [V2] Mug feature with Stats! Thanks zero effect +1 Quote
Zero-Affect Posted May 14, 2009 Posted May 14, 2009 Re: [V2] Mug feature with Stats! No problem + 1 to you also Quote
CrazyT Posted May 14, 2009 Posted May 14, 2009 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. Quote
? Sparks ? Posted May 30, 2009 Posted May 30, 2009 Re: [V2] Mug feature with Stats! Works great thanks Quote
kenja Posted July 13, 2009 Posted July 13, 2009 Re: [V2] Mug feature with Stats! thanks +1 to ya works great 2Pacalypse Quote
mr_shuu Posted July 13, 2009 Posted July 13, 2009 Re: [V2] Mug feature with Stats! Zero-Affect is my idea of a Rock Star! Quote
kenja Posted July 13, 2009 Posted July 13, 2009 Re: [V2] Mug feature with Stats! and i would like to thank AlabamaHit and Zero-Affect... +1 Quote
Tangled Posted September 11, 2014 Posted September 11, 2014 if($ir['location'] != $r['location']) { echo "You have to be in same locaiton."; exit; } I used this and now no one can mug, how can this be fixed? Quote
Tangled Posted September 11, 2014 Posted September 11, 2014 I used this and now no one can mug, how can this be fixed? Fixed thank you Kyle! You rock! 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.