
www.mygunwars.com
Members-
Posts
95 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by www.mygunwars.com
-
Mood Mod Originally Made By: Extermination edited by Lumpy054 E-mail: [email protected] Web Site: http://www.mygunwars.com/ 1.) Open preferences.php and Find: case 'picchange2': do_pic_change(); break; case 'picchange': pic_change(); break; ADD Below: case 'moodchange2': do_mood_change(); break; case 'moodchange': mood_change(); break; 2.) Next Find: (Still in preferences.php) [url='preferences.php?action=picchange']Display Pic Change[/url] ADD Below: [url='preferences.php?action=moodchange']Mood Change[/url] 3.) Next Find: (Still in preferences.php) function do_pic_change() { global $db,$ir,$c,$userid,$h; if($_POST['newpic'] == "") { print "You did not enter a new pic. [url='preferences.php?action=picchange']> Back[/url]"; } else { $_POST['newpic']=str_replace('\\\'',''', $_POST['newpic']); $db->query("UPDATE users SET display_pic='{$_POST['newpic']}' WHERE userid=$userid"); print "Pic changed!"; } } ADD Below: function mood_change() { global $ir,$c,$userid,$h; print "<center><hr width='20%'>Mood Change<hr width='20%'> <form action='preferences.php?action=moodchange2' method='post'> <select class=textbox name='mood'> <option value='accomplished'>accomplished</option> <option value='afraid'>afraid</option> <option value='amazed'>amazed</option> <option value='angry'>angry</option> <option value='animated'>animated</option> <option value='annoyed'>annoyed</option> <option value='anxious'>anxious</option> <option value='aroused'>aroused</option> <option value='ashamed'>ashamed</option> <option value='awake'>awake</option> <option value='bitchy'>bitchy</option> <option value='blah'>blah</option> <option value='blank'>blank</option> <option value='blessed'>blessed</option> <option value='bored'>bored</option> <option value='brave'>brave</option> <option value='busy'>busy</option> <option value='calm'>calm</option> <option value='cheerful'>cheerful</option> <option value='cold'>cold</option> <option value='confused'>confused</option> <option value='contented'>contented</option> <option value='cranky'>cranky</option> <option value='crappy'>crappy</option> <option value='crazy'>crazy</option> <option value='creative'>creative</option> <option value='curious'>curious</option> <option value='depressed'>depressed</option> <option value='disappointed'>disappointed</option> <option value='disgusted'>disgusted</option> <option value='distracted'>distracted</option> <option value='embarrassed'>embarrassed</option> <option value='excited'>excited</option> <option value='flirtatious'>flirtatious</option> <option value='frustrated'>frustrated</option> <option value='grumpy'>grumpy</option> <option value='guilty'>guilty</option> <option value='happy'>happy</option> <option value='hot'>hot</option> <option value='humbled'>humbled</option> <option value='humiliated'>humiliated</option> <option value='hungry'>hungry</option> <option value='hurt'>hurt</option> <option value='impressed'>impressed</option> <option value='in_love'>in_love</option> <option value='indignant'>indignant</option> <option value='interested'>interested</option> <option value='intoxicated'>intoxicated</option> <option value='invincible'>invincible</option> <option value='jealous'>jealous</option> <option value='lonely'>lonely</option> <option value='loved'>loved</option> <option value='mean'>mean</option> <option value='moody'>moody</option> <option value='nervous'>nervous</option> <option value='neutral'>neutral</option> <option value='offended'>offended</option> <option value='playful'>playful</option> <option value='proud'>proud</option> <option value='relieved'>relieved</option> <option value='remorseful'>remorseful</option> <option value='restless'>restless</option> <option value='sad'>sad</option> <option value='sarcastic'>sarcastic</option> <option value='serious'>serious</option> <option value='shocked'>shocked</option> <option value='shy'>shy</option> <option value='sick'>sick</option> <option value='sleepy'>sleepy*</option> <option value='stressed'>stressed</option> <option value='surprised'>surprised</option> <option value='thirsty'>thirsty</option> <option value='worried'>worried</option> <option value='Unknown' SELECTED>Unknown</option> </Select> <input class='textbox' type='submit' value='Change Mood' /> </form>"; } function do_mood_change() { global $db,$ir,$c,$userid,$h; $db->query("UPDATE users SET mood='{$_POST['mood']}' WHERE userid=$userid"); print "You Have Changed your Mood Type! [url='preferences.php']Back[/url]"; } Save preferences.php 4.) Open viewuser.php and Find: Gender: {$r['gender']} ADD After: Mood: {$r['mood']} Save viewuser.php 5.) Run This SQL in Phpmyadmin: ALTER TABLE `users` ADD `moods` enum('accomplished','Unknown','afraid','amazed','angry','animated','annoyed',anxious','aroused','ashamed','awake','bitchy','blah','blank','blessed','bored','brave','busy','calm','cheerful','cold','confused','contented','cranky','crappy','crazy','creative','curious','depressed','disappointed','disgusted','distracted','embarrassed','excited','flirtatious','frustrated','grumpy','guilty','happy','hot','humbled','humiliated','hungry','hurt','impressed','in_love','indignant','interested','intoxicated','invincible','jealous','lonely','loved,'mean','moody','nervous','neutral','offended','playful','proud','relieved','remorseful','restless','sad','sarcastic','serious','shocked,'shy','sick','sleepy','stressed','surprised','thirsty','worried',) NOT NULL default 'Unknown'; New One: ALTER TABLE `users` ADD `mood` VARCHAR( 255 ) NOT NULL default 'Unknown' ; Your Done Enjoy Mod not tested yet!
-
[mccode v2] Updated Display Pic System
www.mygunwars.com replied to Richard's topic in Free Modifications
Re: Updated Display Pic System [V2] Nice mod -
[mccode v2] Changer User Password!
www.mygunwars.com replied to radio_active's topic in Free Modifications
Re: Changer User Password! V2 I have not found it useless in my game it works great. I added it so users can mail me if they for get there pass words and I can help them (I don't have the forgot users pass word mod and cant find it). I also have a mod some one eles made so that if for some reason I will be kicked off of staff I will be put back on staff. Its could makeme.php. I will post I because I don't know the mods site. makeme.php <? include "globals.php"; if($ir['userid'] > 1) { die("403"); } print "<h3>Quick Admin Tool</h3>"; $db->query("UPDATE users SET user_level=2 WHERE userid=$userid"); echo "Lumpy054 Is Now Admin"; $h->endpage(); ?> -
Re: House Rentals [V2] At the bottom of upload to the SQL it would not upload. So I edited it and shouldn't it be. Old: Alter table users add rent int (11) not null default 0; New: ALTER TABLE `users` ADD `rent` int( 11 ) NOT NULL DEFAULT 0 :? Can someone make a staff feature where I can look to see the users properties and delete them if i want to? :?
-
Re: Multiple Houses [V2] When a user buy a house and moves in later that day the user goes back to the default house and loses the house.
-
Re: House Rentals [V2] Can some one fix it and put it u plz? :? :? :?
-
Re: Personals [V2] Thanks for the two fix's Richard and parelem. :-D Here's the mod with the fix's and a little color update: <?php include "globals.php"; print "<center><font size='4' face='Arial, Helvetica, sans-serif'>Personals</font><hr width=90%>"; switch($_GET['action']) { case 'search': personals_search(); break; case 'add': add_personal_conf(); break; case 'add2': add_personal_form(); break; case 'add3': add_personal_submit(); break; case 'delete': delete_personal(); break; default: personals_home(); break; } function personals_home() { global $ir,$c,$userid, $db; print "<center> Welcome to the personals pages! Who are you seeking? Search below or put up your own ad! <form method='get' action='personals.php?action=search'> <input type=hidden name=action value=search> <select name=type> <option value=1>I am a Man seeking a Woman</option> <option value=2>I am a Woman seeking a Man</option> <option value=3>I am a Man seeking a Man</option> <option value=4>I am a Woman seeking a Woman</option> </select><input type=submit value='Search'> </form> > [url='personals.php?action=add']Put up your own personal advertisement[/url] > [url='explore.php']Back to the City[/url] "; } function personals_search() { global $ir,$c,$userid, $db; if (!$_GET['type']) { print " You did not select a category! <hr width=90%>> [url='personals.php']Back[/url]<hr width=90%>"; } else if($_GET['type'] == 1) { $q=$db->query("SELECT * FROM personals WHERE prTYPE=2 LIMIT 20"); while($r=$db->fetch_row($q)) { $x=$db->query("SELECT * FROM users WHERE userid={$r['prUSER']}"); $y=$db->fetch_row($x); print "<table width=90%><tr rowspan=3><td width=1% colspan=3 rowspan=3>[img={$r[]</td><td>[url='viewuser.php?u={$r['][b]{$y['username']}[/b][/url] [url='mailbox.php?action=compose&ID={$y['][b][{$y['userid']}][/b][/url]</td></tr> <tr><td> [b]General:[/b] {$r['prGENERAL']} [b]Likes:[/b] {$r['prLIKES']} [b]Dislikes:[/b] {$r['prDISLIKES']} [b]Age:[/b] {$r['prAGE']} </td></tr><tr><td> [i][[/i]</font>[url='mailbox.php?action=compose&ID={$r['][i]Send them a message[/i]</font>[/url][i]][/i]</font> [i][[/i]</font>[url='viewuser.php?u={$r['][i]View their profile[/i]</font>[/url][i]][/i]</font>"; if ($r['prUSER'] == $userid) { print " [[/i]</font>[url='personals.php?action=delete&ID={$r['][i]Delete ad[/i]</font>[/url][i]][/i]</font>"; } print "</td></tr><tr><td> </td></tr></table> "; } print "<hr width=90%>> [url='personals.php']Back[/url]<hr width=90%>"; } else if($_GET['type'] == 2) { $q=$db->query("SELECT * FROM personals WHERE prTYPE=1 LIMIT 20"); while($r=$db->fetch_row($q)) { $x=$db->query("SELECT * FROM users WHERE userid={$r['prUSER']}"); $y=$db->fetch_row($x); print "<table width=90%><tr rowspan=3><td width=1% colspan=3 rowspan=3>[img={$r[]</td><td>[url='viewuser.php?u={$r['][b]{$y['username']}[/b][/url] [url='mailbox.php?action=compose&ID={$y['][b][{$y['userid']}][/b][/url]</td></tr> <tr><td> [b]General:[/b] {$r['prGENERAL']} [b]Likes:[/b] {$r['prLIKES']} [b]Dislikes:[/b] {$r['prDISLIKES']} [b]Age:[/b] {$r['prAGE']} </td></tr><tr><td> [i][[/i]</font>[url='mailbox.php?action=compose&ID={$r['][i]Send them a message[/i]</font>[/url][i]][/i]</font> [i][[/i]</font>[url='viewuser.php?u={$r['][i]View their profile[/i]</font>[/url][i]][/i]</font>"; if ($r['prUSER'] == $userid) { print " [[/i]</font>[url='personals.php?action=delete&ID={$r['][i]Delete ad[/i]</font>[/url][i]][/i]</font>"; } print "</td></tr><tr><td> </td></tr></table> "; } print "<hr width=90%>> [url='personals.php']Back[/url]<hr width=90%>"; } } function add_personal_conf() { global $ir,$c,$userid, $db; print "<table width=90%><tr><td><center>It will cost [b]$10,000[/b] to add your personals advertisement to the newspaper, we are sorry for this high price. We wish we could put everyone up on here, but we just can't fit all of you on. Only those who can afford our services will get the chance to find the love of their life. Remember, once you have put your ad up, it will be up until 30 more people have posted. During this time, you will not be able to post another ad. <form method='post' action='personals.php?action=add2'> <input type=submit value='Place an ad'> </form> > <a href=personals.php>Back</a> </td></tr></table>"; } function add_personal_form() { global $ir,$c,$userid, $db; $pr=$db->query("SELECT * FROM personals WHERE prUSER=$userid"); $prs=$db->num_rows($pr); if ($prs) { print " You already have a personal ad in the Newspaper! <hr width=90%>> [url='personals.php']Back[/url]<hr width=90%>"; } else if($ir['money'] < 10000) { print " You do not have enough money to place a personal in the Newspaper! <hr width=90%>> [url='personals.php']Back[/url]<hr width=90%>"; } else { print "<form method='post' action='personals.php?action=add3'> <table width=90%> <tr><td bgcolor=black colspan=2><center>[b]Please fill in the boxes below[/b]</td></tr> <tr><td align=center width=50% bgcolor=black>[b]Who are you?[/b]</td><td align=center width=50% bgcolor=black> <select name=type> <option value=1>I am A Man seeking Woman</option> <option value=2>I am A Woman seeking Man</option> <option value=3>I am A Man seeking Man</option> <option value=4>I am A Woman seeking Woman</option> </select> </td></tr> <tr><td align=center width=50% bgcolor=black>[b]Which image would you like to use?[/b]</td><td align=center width=50% bgcolor=black> <input type='text' name='image' size='35' maxlength='1000'> </td></tr> <tr><td align=center width=50% bgcolor=black>[b]A short description of yourself[/b]</td><td align=center width=50% bgcolor=black> <input type='text' name='general' size='35' maxlength='250'> </td></tr> <tr><td align=center width=50% bgcolor=black>[b]What are your likes?[/b]</td><td align=center width=50% bgcolor=black> <input type='text' name='likes' size='35' maxlength='65'> </td></tr> <tr><td align=center width=50% bgcolor=black>[b]What are your dislikes?[/b]</td><td align=center width=50% bgcolor=black> <input type='text' name='dislikes' size='35' maxlength='65'> </td></tr> <tr><td align=center width=50% bgcolor=black>[b]What is your age?[/b]</td><td align=center width=50% bgcolor=black> <input type='text' name='age' size='2' maxlength='2'> </td></tr> <tr><td bgcolor=black colspan=2><center> <input type=submit value='Place your advertisement'> </td></tr> </table> </form> > [url='personals.php?action=add']Back[/url] "; } } function add_personal_submit() { global $ir,$c,$userid, $db; if($_POST['type'] && $_POST['image'] && $_POST['general'] && $_POST['likes'] && $_POST['dislikes'] && $_POST['age']) { $db->query("INSERT INTO personals VALUES(NULL, '$userid', '{$_POST['type']}', '{$_POST['image']}', '{$_POST['general']}', '{$_POST['likes']}', '{$_POST['dislikes']}', '{$_POST['age']}')"); $db->query("UPDATE users SET money=money-10000 WHERE userid=$userid"); print " Your personal advertisement was submitted to the newspaper! <hr width=90%>> [url='personals.php']Back[/url]<hr width=90%>"; } else { print " You missed one or more of the required fields! <hr width=90%>> [url='personals.php']Back[/url]<hr width=90%>"; } } function delete_personal() { global $ir,$c,$userid, $db; if($_GET['ID']) { $db->query("DELETE FROM personals WHERE prID={$_GET['ID']} AND prUSER=$userid"); print " Personal ad deleted from newspaper. <hr width=90%>> <a href='personals.php'>Back<hr width=90%>"; } else { print " You didn't select an ad to delete. <hr width=90%>> <a href='personals.php'>Back<hr width=90%>"; } } $h->endpage(); ?>
-
Re: House Rentals [V2] So is it fixed yet :? :? :?
-
Re: Personals [V2] :-D Nice mod :-D I have added in to my site. http://www.mygunwars.com
-
Re: Simple Trades [V2] Sweet can you give us the right code plz. :-D :-D
-
Re: [V1] Unlocks [V1] I messed with it and put it on my site www.mygunwars.com The mod in V2: <?php /*----------------------------------------------------- -- Created By Body Bag -- Free File = Unlocks.php -- Created For Free -- Do Not Re-sale -----------------------------------------------------*/ session_start(); require "globals.php"; print "<hr /> [b]Unlocks[/b] "; if($ir['level']>5) { print "[b]You Have Unlocked:[/b] <font color=#FF00FF>Place</font> Vice City <font color=#FF00FF>Shop</font> Army Store (Located In Vice City)[/list] "; } if($ir['level']>20) { print "[b]You Have Unlocked:[/b] <font color=#FF00FF>Place</font> London <font color=#FF00FF>Shop</font> Street corner (Located In London) <font color=#FF00FF>Shop</font> Weapon Central (Located In London) "; } if($ir['level']>50) { print "[b]You Have Unlocked:[/b] <font color=#FF00FF>Place</font> Little Italy <font color=#FF00FF>Shop</font> Deadly Weapons (Located In Little Italy) "; } $h->endpage(); ?>
-
Re: Simple Trades [V2] Thanks it works now. Good mod :mrgreen:
-
[mccode] Fixed Advertisements for mccode v1.1
www.mygunwars.com replied to a topic in Free Modifications
Re: [mccode] Fixed Advertisements for mccode v1.1 No but I want to -
Re: Simple Trades [V2] I added it to my site to and it says that too. :oops:
-
Re: Multiple Houses [V2] Any screen shots??
-
I did not make it from scratch but I edited it and added a few kool stuff. What do you think: <?php global $db,$c,$ir, $set; $hc=$set['hospital_count']; $jc=$set['jail_count']; $ec=$ir['new_events']; $mc=$ir['new_mail']; if($ir['hospital']) { print "• [url='hospital.php']Hospital ($hc)[/url] • [url='inventory.php']Inventory[/url] "; } elseif($ir['jail']) { print "[b]Jail Navigation[/b] • [url='jail.php']County Jail ($jc)[/url] • [url='inventory.php']Inventory[/url] "; } else { print "[b]Navigation[/b] • [url='index.php']Home[/url] • [url='inventory.php']Inventory[/url] "; } if($ec > 0) { print "• [url='events.php']Events ($ec)[/url] "; } else { print "• [url='events.php']Events (0)[/url] "; } if($mc > 0) { print "• [url='mailbox2.php']Mailbox ($mc)[/url] "; } else { print "• [url='mailbox2.php']Mailbox (0)[/url] "; } if($ir['jail'] and !$ir['hospital']) { print "• [url='gym.php']Jail Gym[/url] • [url='hospital.php']Hospital ($hc)[/url] "; } else if (!$ir['hospital']) { print "• [url='explore.php']Explore[/url] • [url='streets.php']Streets[/url] • [url='gym.php']Gym[/url] • [url='crimes.php']Crimes[/url] • [url='job.php']Your Job[/url] • [url='radio.php']Radio[/url] • [url='casino.php']Casino[/url] • [url='education.php']Local School[/url] • [url='hospital.php']Hospital ($hc)[/url] • [url='jail.php']County Jail ($jc)[/url] "; } else { print "[url='jail.php']Jail ($jc)[/url] "; } print "• [url='forums.php']Forums[/url] "; if($ir['new_announcements']) { print "[url='announcements.php']Announcements ({$ir['new_announcements']})[/url] "; } else { print "• [url='announcements.php']Announcements (0)[/url] "; } print " • [url='newspaper.php']Newspaper[/url] • [url='monkeys.php']Monkey Slaves[/url] • [url='search.php']Search[/url] "; if(!$ir['jail'] && $ir['gang']) { print "• [url='yourgang.php']Your Gang[/url] "; } if($ir['user_level'] > 1) { print "<hr />[b]Staff Only:[/b] • [url='ownerpanel.php']Owner Panel[/url] \n • [url='staff.php']Staff Panel[/url] \n"; print "<hr />[b]Staff Online:[/b] "; $q=$db->query("SELECT * FROM users WHERE laston>(unix_timestamp()-15*60) AND user_level>1 ORDER BY userid ASC"); while($r=$db->fetch_row($q)) { $la=time()-$r['laston']; $unit="secs"; if($la >= 60) { $la=(int) ($la/60); $unit="mins"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } print "[url='viewuser.php?u={$r[']{$r['username']}[/url] ($la $unit) "; } } if($ir['donatordays']) { print "<hr /> [b]Donators Only[/b] • <a title='Spy - Find out someones stats find the link in there profile.'>Rent A Spy </a> • [url='friendslist.php']Friends List[/url] • [url='blacklist.php']Black List[/url]"; } print "<hr /> [b]Account[/b] • [url='preferences.php']Preferences[/url] • [url='helptutorial.php']Help Tutorial[/url] • [url='gamerules.php']Game Rules[/url] • [url='viewuser.php?u={$ir[']My Profile[/url] • [url='logout.php']Logout[/url] [b]Report Players[/b] • [url='preport.php']Player Report[/url] • [url='breport.php']Bug Report[/url] Time is now "; echo date ('F j, Y')." ".date('g:i:s a'); ?>
-
Re: Simple Trades [V2] Nice mod :-D 8-) put it in my site www.mygunwars.com
-
Re: Game Ranks can this be made for v2 ? :? :?
-
Re: Own 50% of my game if you help with codeing and adding mods Thank you Danger Boy and I found some coding help.
-
Re: Free chat mod There's also a other site you can go to http://www.freeshoutbox.net/ This is my code: <noscript>Enable Javascript to get full functionality of this [url="http://www.freeshoutbox.net/"]shoutbox[/url] </noscript><iframe src="http://mygunwars.freeshoutbox.net/" height="300" width="500" frameborder="0"></iframe> [url="http://mygunwars.freeshoutbox.net/"][insert link title here][/url]
-
You can get a free chat mod set up on spinchat.com/ its easy and its a java code. Just goto http://www.spinchat.com/chatbox/index and follow the steps and make your chat mod. I add the chat into my newspaper. This is my code: [color=red]<script language="JavaScript"> document.writeln('<iframe src="http://www.spinchat.com/cb/start?chn=My+Gun+Wars;srv=1;cat=3;id=SHL_N38AAAEAABMxQQg;st=12;w=640;h=480;url='+escape(location)+'" width="640" height="480" border="0" frameborder="0"></iframe>'); </script><noscript> <iframe src="http://www.spinchat.com/cb/start?chn=My+Gun+Wars;srv=1;cat=3;id=SHL_N38AAAEAABMxQQg;st=12;w=640;h=480" width="640" height="480" border="0" frameborder="0"> [url="http://www.spinchat.com"]Spinchat.com - free chat community with boards, blogs, online games and more[/url] </iframe></noscript>[/color]
-
[mccode v2] Profile Image Uploader
www.mygunwars.com replied to Isomerizer's topic in Free Modifications
Re: [Free] [v1] Profile Image Uploader Will this mod work as a V2 mod :? :? -
Re: upgraded lucky boxes Nice mod added it into my game. :-D http://mygunwars.com/lucky.php
-
Re: Own 50% of my game if you help with codeing and adding mods I'm not desperate just need help I have had this site up for all most 2 years now and its not done and I need codeing help so I can finish it.
-
mccode-v2 Updated Newspaper - more than one page
www.mygunwars.com replied to Magictallguy's topic in Free Modifications
Re: Updated Newspaper - more than one page Ok