Jump to content
MakeWebGames

Magictallguy

Administrators
  • Posts

    2,140
  • Joined

  • Last visited

  • Days Won

    148

Everything posted by Magictallguy

  1. Re: [v1]Refill Users What I did is code them separately, and code in which I want to refil (or let out) So here you go! :) Add into whichever staff panel you want case 'cwill': update_will(); break; case 'cbrave': update_brave(); break; case 'chp': update_hp(); break; case 'cenergy': update_energy(); break; case 'chospital': update_hospital(); break; case 'call': update_all(); break; case 'cmost': update_most(); break;   Add in the links [[url='STAFFPANELNAME.php?action=cwill']Refil Will[/url]] [[url='STAFFPANELNAME.php?action=cbrave']Refil Brave[/url]] [[url='STAFFPANELNAME.php?action=chp']Refil Health[/url]] [[url='STAFFPANELNAME.php?action=cenergy']Refil Energy[/url]] [[url='STAFFPANELNAME.php?action=chospital']Let everyone out of hospital[/url]] [[url='STAFFPANELNAME.php?action=cmost']Refil All Bars[/url]] [[url='STAFFPANELNAME.php?action=call']Refil All Bars And Let Everyone Out Of Hospital[/url]]   Then, find $h->endpage(); ?>   And, add above that: function update_will() { global $ir,$c,$h,$userid; mysql_query("UPDATE users SET will=maxwill",$c); print "All users have been refilled, Will! [url='STAFFPANELNAME.php']> Back[/url]"; } function update_energy() { global $ir,$c,$h,$userid; mysql_query("UPDATE users SET energy=maxenergy",$c); print "All users have been refilled, Energy! [url='STAFFPANELNAME.php']> Back[/url]"; } function update_brave() { global $ir,$c,$h,$userid; mysql_query("UPDATE users SET brave=maxbrave",$c); print "All users have been refilled, Brave! [url='STAFFPANELNAME.php']> Back[/url]"; } function update_hp() { global $ir,$c,$h,$userid; mysql_query("UPDATE users SET hp=maxhp",$c); print "All users have been refilled, Health! [url='STAFFPANELNAME.php']> Back[/url]"; } function update_hospital() { global $ir,$c,$h,$userid; mysql_query("UPDATE users SET hospital=''",$c); mysql_query("UPDATE users SET hospreason = ''",$c); print "All users have been let out of hospital! [url='STAFFPANELNAME.php']> Back[/url]"; } function update_most() { global $ir,$c,$h,$userid; mysql_query("UPDATE users SET will=maxwill",$c); mysql_query("UPDATE users SET energy=maxenergy",$c); mysql_query("UPDATE users SET brave=maxbrave",$c); mysql_query("UPDATE users SET hp=maxhp",$c); print "All bars have been refilled! [url='STAFFPANELNAME.php']> Back[/url]"; } function update_all() { global $ir,$c,$h,$userid; mysql_query("UPDATE users SET will=maxwill",$c); mysql_query("UPDATE users SET energy=maxenergy",$c); mysql_query("UPDATE users SET brave=maxbrave",$c); mysql_query("UPDATE users SET hp=maxhp",$c); mysql_query("UPDATE users SET hospital=''",$c); mysql_query("UPDATE users SET hospreason = ''",$c); print "All bars have been refilled and all users let out of hospital! [url='STAFFPANELNAME.php']> Back[/url]"; } And that's it :-) Enjoy! :mrgreen:
  2. Re: [mccode] Steal Crystals when you Mug someone... Thank you!! +1
  3. Re: Gift.php   As far as I'm aware you don't actually need the ` around the words. It just adds it, as long as the case is right. DB's are case sensitive! ;)
  4. Re: [Free] [v1] Help Bot Yea I see that now, but on my first day it wasn't there ^_^
  5. Re: [Free] [v1] Profile Image Uploader Haha, oh yea! Lol. Always the little things that I miss! ^_^
  6. Re: [FREE][CRYSTAL GYM] Well I used that mod but because I have 50gb/s Any train over 35,000 would shut down the game for around 5 mins so I took it off. Nice mod though!!
  7. Re: [mccode] gang staff panel Here's my version. Note: I did not code this, therefore I do not take credit for it...But I do have permission from the person who did code it to put it up!   print "<table border='1'> <tr background='tableup.jpg'> <th>Financial</th> <th>Gang Wars</th> <th>Management</th> <th>Presidential</th></tr> <tr> <td width='150'> [url='yourgang.php?action=staff&act2=vault']Gang Vault[/url] [url='yourgang.php?action=staff&act2=masspayment']Mass Payment[/url] [url='yourgang.php?action=staff&act2=upgrade']Upgrade Gang[/url] [url='yourgang.php?action=staff&act2=crimes']Organised Crimes[/url] </td> <td width='150'> [url='yourgang.php?action=staff&act2=declare']Declare War[/url] [url='yourgang.php?action=staff&act2=surrender']Surrender[/url] [url='yourgang.php?action=staff&act2=viewsurrenders']View Surrenders[/url] </td> <td width='150'> [url='yourgang.php?action=staff&act2=apps']Applications[/url] [url='yourgang.php?action=staff&act2=armoryupgrade']Armory Upgrade[/url] [url='yourgang.php?action=staff&act2=itemslent']Items Lent[/url] [url='yourgang.php?action=staff&act2=massmailer']Mass Mail[/url] [url='yourgang.php?action=staff&act2=ament']Edit Announcement[/url] [url='yourgang.php?action=staff&act2=vicepres']Change Vice President[/url] </td> <td width='150'>"; if($gangdata['gangPRESIDENT'] == $userid || $userid==1) { print " [url='yourgang.php?action=staff&act2=name']Change Name[/url] [url='yourgang.php?action=staff&act2=desc']Change Desc.[/url] [url='yourgang.php?action=staff&act2=tag']Change Tag[/url] [url='yourgang.php?action=staff&act2=picchange']Change Logo[/url] [url='yourgang.php?action=staff&act2=pres']Change President[/url] </td></tr></table> <font color='red'> >></font>[url='yourgang.php']Back[/url]"; } }   Well there it is. Sorry but I am unable to post up a preview of it, but I like the way it looks. Just upload a table.gif/png/jpg picture for it, or you could extend the barred, or whatever colour you use for it and use that!! ;-P. Anyway...Enjoy!! (-=Magictallguy=-) Owner of www.silver-assassins.com
  8. Re: [mccode] gang staff panel I prefer my version of it. I'll post it up soon!
  9. Re: [Free] [v1] Profile Image Uploader   Parse error: syntax error, unexpected '}', expecting ',' or ';' in not/telling/you/this/bit!!/public_html/uploadpic.php on line 36
  10. Re: [Free] [v1] Help Bot As soon as I figure out how... LOL :-P
  11. Re: [Free] [v1] Help Bot Thanks goes to Isomerizer and Dabomstew. +1 to both of you!!
  12. Re: Contact Staff Form [FREE] Is there any way to get this mod to send an e-mail to the actually e-mail address of the staff members? And for the staff members to choose if they wish to be listed? If so please post :-)
×
×
  • Create New...