
ddupuis
Members-
Posts
51 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by ddupuis
-
Re: [mccode v2] Strip Club just be sure to double check this part.. this is a mistake in the amount removed for cost from the player.. else if($_GET['spend'] == 'Lucious') { if($ir['money'] <9999) { print "You don't have enough money to hire a Lucious!"; } else { mysql_query("UPDATE users SET will=will+3,energy=0,money=money-1000 WHERE userid=$userid",$c); mysql_query("UPDATE users SET will=maxwill WHERE will > maxwill",$c); print "<center>[img=cop.jpg] </center> You payed a Lucious $10,000, She slowly starts dancing in front of you, removing her top and exposing her breasts. She rubs your face all over them, then proceeds to turn around. Next she lifts up her tiny Police Woman Skirt, and wiggles her ass in front of you. <br / > You are breathless, and gain some will back [url='stripper.php']>Back to the Club[/url]</center>"; }
-
Re: v2 Mine Mod again I am not claiming this is a new mod. not much different then any other mine mod on CE, major change is NO PAGE REFRESHING.. thats all folks.. there has to be 10 other mine posts with the sql sorry it's not posted here.. if anyone really wants it just say the words and i am sure it will get posted again..
-
Re: v2 Mine Mod sorry about that.. something implemented in the game. pulled the code out to post.. if you would like it. i will repost it..
-
Re: [mccode V2] Index.php Good Job...
-
Here is just a little addition to the mining mod. you may want to change to suite your game, but it does not allow the page to be refreshed. users much click mine again. and not too quickly.. <?php $macropage="mine.php"; $tresde = (int) (rand(100,999)); include 'globals.php'; if($ir['hospital']) { die("This page cannot be accessed while in hospital."); } if($ir['jail']) { die("This page cannot be accessed while in jail."); }global $db,$ir,$c,$userid; get_mine(); switch($_GET['action']) { case 'mine': mine_1(); break; case 'minesub': mine_1_sub(); break; case 'mine2': mine_2(); break; case 'mine2sub': mine_2_sub(); break; case 'mine3': mine_3(); break; case 'mine3sub': mine_3_sub(); break; case 'mine4': mine_4(); break; case 'mine4sub': mine_4_sub(); break; case 'mine5': mine_5(); break; case 'mine5sub': mine_5_sub(); break; case 'mine6': mine_6(); break; case 'mine6sub': mine_6_sub(); break; case 'mine7': mine_7(); break; case 'mine7sub': mine_7_sub(); break; case 'mine8': mine_8(); break; case 'mine8sub': mine_8_sub(); break; case 'mine9': mine_9(); break; case 'mine9sub': mine_9_sub(); break; case 'mine10': mine_10(); break; case 'mine10sub': mine_10_sub(); break; case 'mine11': mine_11(); break; case 'mine11sub': mine_11_sub(); break; case 'mine12': mine_12(); break; case 'mine12sub': mine_12_sub(); break; default: mine_index(); break; } function mine_index() { global $db,$ir,$c,$userid,$tresde; print "<center>Welcome to the mine shaft. There are 12 spots to go mining but they are restricted depending on your mine level. NEW! [b]Mining will now require use of <font color=yellow>Energy(5)</font>,<font color=blue>Will(5)</font>,<font color=brown>Brave(2)</font>, and Power.[/b] Your mining level is {$ir['mine_level']} and you have {$ir['mine_exp']}/{$ir['mine_needed']} mining experience </center> <table width=55% cellpadding=4 cellspacing=1 class='table'> <tr> <th colspan=3>Money Mines</th> </tr> <tr> <th>Mine Level Req</th> <th>Power Req</th> <th>Links</th> </tr> <tr> <td>Level 1</td> <td>10 Power</td> <td>[url='mine.php?action=mine&tresde=$tresde']Mine[/url]</td> </tr> <tr> <td>Level 10</td> <td>15 Power</td> <td>[url='mine.php?action=mine2&tresde=$tresde']Mine[/url]</td> </tr> <tr> <td>Level 20</td> <td>20 Power</td> <td>[url='mine.php?action=mine3&tresde=$tresde']Mine[/url]</td> </tr> <tr> <td>Level 30</td> <td>25 Power</td> <td>[url='mine.php?action=mine4&tresde=$tresde']Mine[/url]</td> </tr> <tr> <td>Level 40</td> <td>30 Power</td> <td>[url='mine.php?action=mine5&tresde=$tresde']Mine[/url]</td> </tr> <tr> <td>Level 50</td> <td>35 Power</td> <td>[url='mine.php?action=mine6&tresde=$tresde']Mine[/url]</td> </tr> </table> <table width=55% cellpadding=4 cellspacing=1 class='table'> <tr> <th colspan=3>Crystal Mines</th> </tr> <tr> <th>Mine Level Req</th> <th>Power Req</th> <th>Links</th> </tr> <tr> <td>Level 5</td> <td>10 Power</td> <td>[url='mine.php?action=mine7&tresde=$tresde']Mine[/url]</td> </tr> <tr> <td>Level 15</td> <td>15 Power</td> <td>[url='mine.php?action=mine8&tresde=$tresde']Mine[/url]</td> </tr> <tr> <td>Level 25</td> <td>20 Power</td> <td>[url='mine.php?action=mine9&tresde=$tresde']Mine[/url]</td> </tr> <tr> <td>Level 35</td> <td>25 Power</td> <td>[url='mine.php?action=mine10&tresde=$tresde']Mine[/url]</td> </tr> <tr> <td>Level 45</td> <td>30 Power</td> <td>[url='mine.php?action=mine11&tresde=$tresde']Mine[/url]</td> </tr> <tr> <td>Level 55</td> <td>35 Power</td> <td>[url='mine.php?action=mine12&tresde=$tresde']Mine[/url]</td> </tr> </table>"; } if ($ir['jail']) { die ("The mine is closed to jail birds come back when they release you"); } if ($ir['hospital']) { die ("This page cannot be accessed while in hospital."); } function mine_1() { global $db,$ir,$c,$userid,$tresde; if($ir['power'] < 10){ print "<center>You need 10 power to mine here, you have {$ir['power']}</center>"; exit; } mysql_query("UPDATE users SET power=power-10 WHERE userid=$userid",$c); $rand_money = rand(100,800); $rand_exp = rand(10,100); echo "<center>You begin mining in the level 1 money mine and find $$rand_money .</center> "; mysql_query("UPDATE users SET money=money+'$rand_money',mine_exp=mine_exp+'$rand_exp' WHERE userid=$userid",$c); //--NO REFRESH $_GET['tresde']=abs((int) $_GET['tresde']); if(($_SESSION['tresder'] == $_GET['tresde']) || $_GET['tresde']<100) { die ("Error, you cannot refresh , please use a link to mine. [url='mine.php']> Back[/url]"); } $_SESSION['tresder']=$_GET['tresde']; //-- print "<center>[[url='mine.php?action=mine&tresde=$tresde']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } function mine_2() { global $db,$ir,$c,$userid,$tresde; if($ir['power'] < 15){ print "<center>You need 15 power to mine here you have {$ir['power']}</center>"; exit; } if($ir['mine_level'] < 10){ print "<center>You need to be mining level 10 to mine here, you are mining level {$ir['mine_level']}</center>"; exit; } mysql_query("UPDATE users SET power=power-15 WHERE userid=$userid",$c); $rand_money = rand(300,2000); $rand_exp = rand(10,150); echo "<center>You begin mining in the level 10 money mine and find $$rand_money .</center> "; mysql_query("UPDATE users SET money=money+'$rand_money',mine_exp=mine_exp+'$rand_exp' WHERE userid=$userid",$c); //--NO REFRESH $_GET['tresde']=abs((int) $_GET['tresde']); if(($_SESSION['tresder'] == $_GET['tresde']) || $_GET['tresde']<100) { die ("Error, you cannot refresh , please use a link to mine. [url='mine.php']> Back[/url]"); } $_SESSION['tresder']=$_GET['tresde']; //-- print "<center>[[url='mine.php?action=mine2&tresde=$tresde']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } function mine_3() { global $db,$ir,$c,$userid,$tresde; if($ir['power'] < 20){ print "<center>You need 20 power to mine here you have {$ir['power']}</center>"; exit; } if($ir['mine_level'] < 20){ print "<center>You need to be mining level 20 to mine here, you are mining level {$ir['mine_level']}</center>"; exit; } mysql_query("UPDATE users SET power=power-20 WHERE userid=$userid",$c); $rand_money = rand(400,3000); $rand_exp = rand(40,200); echo "<center>You begin mining in the level 20 money mine and find $$rand_money .</center> "; mysql_query("UPDATE users SET money=money+'$rand_money',mine_exp=mine_exp+'$rand_exp' WHERE userid=$userid",$c); //--NO REFRESH $_GET['tresde']=abs((int) $_GET['tresde']); if(($_SESSION['tresder'] == $_GET['tresde']) || $_GET['tresde']<100) { die ("Error, you cannot refresh , please use a link to mine. [url='mine.php']> Back[/url]"); } $_SESSION['tresder']=$_GET['tresde']; //-- print "<center>[[url='mine.php?action=mine3&tresde=$tresde']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } function mine_4() { global $db,$ir,$c,$userid,$tresde; if($ir['power'] < 25){ print "<center>You need 25 power to mine here you have {$ir['power']}</center>"; exit; } if($ir['mine_level'] < 30){ print "<center>You need to be mining level 30 to mine here, you are mining level {$ir['mine_level']}</center>"; exit; } mysql_query("UPDATE users SET power=power-25 WHERE userid=$userid",$c); $rand_money = rand(500,4500); $rand_exp = rand(80,300); echo "<center>You begin mining in the level 30 money mine and find $$rand_money .</center> "; mysql_query("UPDATE users SET money=money+'$rand_money',mine_exp=mine_exp+'$rand_exp' WHERE userid=$userid",$c); //--NO REFRESH $_GET['tresde']=abs((int) $_GET['tresde']); if(($_SESSION['tresder'] == $_GET['tresde']) || $_GET['tresde']<100) { die ("Error, you cannot refresh , please use a link to mine. [url='mine.php']> Back[/url]"); } $_SESSION['tresder']=$_GET['tresde']; //-- print "<center>[[url='mine.php?action=mine4&tresde=$tresde']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } function mine_5() { global $db,$ir,$c,$userid,$tresde; if($ir['power'] < 30){ print "<center>You need 30 power to mine here you have {$ir['power']}</center>"; exit; } if($ir['mine_level'] < 40){ print "<center>You need to be mining level 40 to mine here, you are mining level {$ir['mine_level']}</center>"; exit; } mysql_query("UPDATE users SET power=power-30 WHERE userid=$userid",$c); $rand_money = rand(900,6000); $rand_exp = rand(150,450); echo "<center>You begin mining in the level 40 money mine and find $$rand_money .</center> "; mysql_query("UPDATE users SET money=money+'$rand_money',mine_exp=mine_exp+'$rand_exp' WHERE userid=$userid",$c); //--NO REFRESH $_GET['tresde']=abs((int) $_GET['tresde']); if(($_SESSION['tresder'] == $_GET['tresde']) || $_GET['tresde']<100) { die ("Error, you cannot refresh , please use a link to mine. [url='mine.php']> Back[/url]"); } $_SESSION['tresder']=$_GET['tresde']; //-- print "<center>[[url='mine.php?action=mine5&tresde=$tresde']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } function mine_6() { global $db,$ir,$c,$userid,$tresde; if($ir['power'] < 35){ print "<center>You need 35 power to mine here you have {$ir['power']}</center>"; exit; } if($ir['mine_level'] < 50){ print "<center>You need to be mining level 50 to mine here, you are mining level {$ir['mine_level']}</center>"; exit; } mysql_query("UPDATE users SET power=power-35 WHERE userid=$userid",$c); $rand_money = rand(1000,9000); $rand_exp = rand(210,560); echo "<center>You begin mining in the level 50 money mine and find $$rand_money .</center> "; mysql_query("UPDATE users SET money=money+'$rand_money',mine_exp=mine_exp+'$rand_exp' WHERE userid=$userid",$c); //--NO REFRESH $_GET['tresde']=abs((int) $_GET['tresde']); if(($_SESSION['tresder'] == $_GET['tresde']) || $_GET['tresde']<100) { die ("Error, you cannot refresh , please use a link to mine. [url='mine.php']> Back[/url]"); } $_SESSION['tresder']=$_GET['tresde']; //-- print "<center>[[url='mine.php?action=mine6&tresde=$tresde']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } function mine_7() { global $db,$ir,$c,$userid,$tresde; if($ir['power'] < 10){ print "<center>You need 10 power to mine here, you have {$ir['power']}</center>"; exit; } if($ir['mine_level'] < 5){ print "<center>You need to be mining level 5 to mine here, you are mining level {$ir['mine_level']}</center>"; exit; } mysql_query("UPDATE users SET power=power-10 WHERE userid=$userid",$c); $rand_gems = rand(1,2); $rand_exp = rand(10,100); echo "<center>You begin mining in the level 5 crystal mine and find $rand_gems crystal(s).</center> "; mysql_query("UPDATE users SET crystals=crystals+'$rand_gems',mine_exp=mine_exp+'$rand_exp' WHERE userid=$userid",$c); //--NO REFRESH $_GET['tresde']=abs((int) $_GET['tresde']); if(($_SESSION['tresder'] == $_GET['tresde']) || $_GET['tresde']<100) { die ("Error, you cannot refresh , please use a link to mine. [url='mine.php']> Back[/url]"); } $_SESSION['tresder']=$_GET['tresde']; //-- print "<center>[[url='mine.php?action=mine7&tresde=$tresde']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } function mine_8() { global $db,$ir,$c,$userid,$tresde; if($ir['power'] < 15){ print "<center>You need 15 power to mine here, you have {$ir['power']}</center>"; exit; } if($ir['mine_level'] < 15){ print "<center>You need to be mining level 15 to mine here, you are mining level {$ir['mine_level']}</center>"; exit; } mysql_query("UPDATE users SET power=power-15 WHERE userid=$userid",$c); $rand_gems = rand(1,4); $rand_exp = rand(10,155); echo "<center>You begin mining in the level 15 crystal mine and find $rand_gems crystal(s).</center> "; mysql_query("UPDATE users SET crystals=crystals+'$rand_gems',mine_exp=mine_exp+'$rand_exp' WHERE userid=$userid",$c); //--NO REFRESH $_GET['tresde']=abs((int) $_GET['tresde']); if(($_SESSION['tresder'] == $_GET['tresde']) || $_GET['tresde']<100) { die ("Error, you cannot refresh , please use a link to mine. [url='mine.php']> Back[/url]"); } $_SESSION['tresder']=$_GET['tresde']; //-- print "<center>[[url='mine.php?action=mine8&tresde=$tresde']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } function mine_9() { global $db,$ir,$c,$userid,$tresde; if($ir['power'] < 20){ print "<center>You need 20 power to mine here, you have {$ir['power']}</center>"; exit; } if($ir['mine_level'] < 25){ print "<center>You need to be mining level 25 to mine here, you are mining level {$ir['mine_level']}</center>"; exit; } mysql_query("UPDATE users SET power=power-20 WHERE userid=$userid",$c); $rand_gems = rand(2,6); $rand_exp = rand(40,200); echo "<center>You begin mining in the level 25 crystal mine and find $rand_gems crystal(s).</center> "; mysql_query("UPDATE users SET crystals=crystals+'$rand_gems',mine_exp=mine_exp+'$rand_exp' WHERE userid=$userid",$c); //--NO REFRESH $_GET['tresde']=abs((int) $_GET['tresde']); if(($_SESSION['tresder'] == $_GET['tresde']) || $_GET['tresde']<100) { die ("Error, you cannot refresh , please use a link to mine. [url='mine.php']> Back[/url]"); } $_SESSION['tresder']=$_GET['tresde']; //-- print "<center>[[url='mine.php?action=mine9&tresde=$tresde']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } function mine_10() { global $db,$ir,$c,$userid,$tresde; if($ir['power'] < 25){ print "<center>You need 25 power to mine here, you have {$ir['power']}</center>"; exit; } if($ir['mine_level'] < 35){ print "<center>You need to be mining level 35 to mine here, you are mining level {$ir['mine_level']}</center>"; exit; } mysql_query("UPDATE users SET power=power-25 WHERE userid=$userid",$c); $rand_gems = rand(3,8); $rand_exp = rand(80,310); echo "<center>You begin mining in the level 35 crystal mine and find $rand_gems crystal(s).</center> "; mysql_query("UPDATE users SET crystals=crystals+'$rand_gems',mine_exp=mine_exp+'$rand_exp' WHERE userid=$userid",$c); //--NO REFRESH $_GET['tresde']=abs((int) $_GET['tresde']); if(($_SESSION['tresder'] == $_GET['tresde']) || $_GET['tresde']<100) { die ("Error, you cannot refresh , please use a link to mine. [url='mine.php']> Back[/url]"); } $_SESSION['tresder']=$_GET['tresde']; //-- print "<center>[[url='mine.php?action=mine10&tresde=$tresde']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } function mine_11() { global $db,$ir,$c,$userid,$tresde; if($ir['power'] < 30){ print "<center>You need 30 power to mine here, you have {$ir['power']}</center>"; exit; } if($ir['mine_level'] < 45){ print "<center>You need to be mining level 45 to mine here, you are mining level {$ir['mine_level']}</center>"; exit; } mysql_query("UPDATE users SET power=power-30 WHERE userid=$userid",$c); $rand_gems = rand(4,11); $rand_exp = rand(150,450); echo "<center>You begin mining in the level 45 crystal mine and find $rand_gems crystal(s).</center> "; mysql_query("UPDATE users SET crystals=crystals+'$rand_gems',mine_exp=mine_exp+'$rand_exp' WHERE userid=$userid",$c); //--NO REFRESH $_GET['tresde']=abs((int) $_GET['tresde']); if(($_SESSION['tresder'] == $_GET['tresde']) || $_GET['tresde']<100) { die ("Error, you cannot refresh , please use a link to mine. [url='mine.php']> Back[/url]"); } $_SESSION['tresder']=$_GET['tresde']; //-- print "<center>[[url='mine.php?action=mine11&tresde=$tresde']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } function mine_12() { global $db,$ir,$c,$userid,$tresde; if($ir['power'] < 35){ print "<center>You need 35 power to mine here, you have {$ir['power']}</center>"; exit; } if($ir['mine_level'] < 55){ print "<center>You need to be mining level 55 to mine here, you are mining level {$ir['mine_level']}</center>"; exit; } mysql_query("UPDATE users SET power=power-35 WHERE userid=$userid",$c); $rand_gems = rand(6,15); $rand_exp = rand(210,560); echo "<center>You begin mining in the level 55 crystal mine and find $rand_gems crystal(s).</center> "; mysql_query("UPDATE users SET crystals=crystals+'$rand_gems',mine_exp=mine_exp+'$rand_exp' WHERE userid=$userid",$c); //--NO REFRESH $_GET['tresde']=abs((int) $_GET['tresde']); if(($_SESSION['tresder'] == $_GET['tresde']) || $_GET['tresde']<100) { die ("Error, you cannot refresh , please use a link to mine. [url='mine.php']> Back[/url]"); } $_SESSION['tresder']=$_GET['tresde']; //-- print "<center>[[url='mine.php?action=mine12&tresde=$tresde']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } $h->endpage(); ?> hope someone can find a use..
-
Re: [mccode] donator day market for v2 you could always add the extra code to your day cron as well to remove a day (-1) from the listings in the donator market...
-
[mccode] 1st AS/CE MCCODE Modification [AutoTrainer] [$40.00]
ddupuis replied to mdshare's topic in Paid Modifications
Re: [mccode] 1st AS/CE MCCODE Modification [AutoTrainer] [$40.00] Awsome job guys, however this is implemented in other games.. but none the less great job, excellent price too.. 10/10 from myself.... -
Re: Free Jail feature Bribe The guard either way you look at it this mod has been used in other games before this post..
-
Re: Proxy Check if your not interested in the topic why waste you time reading and replying.. Most people that need to hide them selves are probly up to no good.....
-
Re: Proxy Check That's true you probly can. Most others probly don't know how to spoof headers.. and the part i didn't finnish yet is going to be a check that makes sure you IP is matching your account.. so spoofing will not work..
-
Re: Proxy Check and then i would be publicly tell people what proxies we are blocking.. sorry about that... can't do it.. and our page load time didn't increase at all so you should talk to your host.. I've added some proxies to the first post to help get you list started..
-
Re: No Attack It was posted cause someone asked for it and the other one posted does NOT work.. It was also so players can't attack staff... I don't just repost the same things from the site.. In fact i don't use anything from here.. Most things are full of bugs and much simpler to write myself.. just trying to contibute to people who need it..
-
Re: Proxy Check no not at the moment, I will be adding some things..
-
This is a little bit of code you can add in you header.php. It will check the users IP each time the header is loaded.. Works every time.. Unless proxy is not in the list... I have provided the SQL, but for our reasons I will not be diclosing what proxies are in our DB.. <?php $ip=$_SERVER['REMOTE_ADDR']; $q=$db->query("SELECT * FROM proxylist"); while($r=$db->fetch_row($q)) {$ipcheck = $r['ip']; if($ip == $ipcheck) { $db->query("UPDATE users SET fedjail=1 WHERE userid=$userid"); if($ip != $ipcheck) {}}}$h->endpage(); ?> RUN SQL: CREATE TABLE `proxylist` ( `id` int(11) NOT NULL auto_increment, `ip` text NOT NULL, `domain` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; INSERT INTO `proxylist` VALUES (1, '208.113.154.25', 'wiggum.dreamhost.com'); INSERT INTO `proxylist` VALUES (2, '209.17.190.78', '209.17.190.78'); INSERT INTO `proxylist` VALUES (3, '67.159.44.20', 'sunny.cirtexhosting.com'); INSERT INTO `proxylist` VALUES (4, '72.36.145.138', '138.145.36.72.static.reverse.ltdomains.com'); INSERT INTO `proxylist` VALUES (6, '69.60.118.35', '35-118-60-69.serverpronto.com'); INSERT INTO `proxylist` VALUES (7, '75.126.146.18', 'prx9.com'); INSERT INTO `proxylist` VALUES (8, '67.159.44.206', ''); INSERT INTO `proxylist` VALUES (9, '67.192.60.213', 'gold.jumponlinewith.us'); INSERT INTO `proxylist` VALUES (10, '66.232.113.128', '66.232.113.128'); INSERT INTO `proxylist` VALUES (11, '74.86.122.186', 'lian.com'); INSERT INTO `proxylist` VALUES (12, '66.90.73.227', 'ip227.dedicatedracks.COM'); INSERT INTO `proxylist` VALUES (13, '69.80.224.68', 'hosted.by.alphared.com'); INSERT INTO `proxylist` VALUES (14, '198.54.202.82', '198.54.202.82'); INSERT INTO `proxylist` VALUES (15, '67.159.41.122', '67.159.41.122'); INSERT INTO `proxylist` VALUES (16, '72.21.53.90', 'ip0.wuhosting.com'); INSERT INTO `proxylist` VALUES (17, '67.159.45.52', 'LimitKiller.com'); INSERT INTO `proxylist` VALUES (18, '66.37.153.74', 'web1.nsai.net'); INSERT INTO `proxylist` VALUES (19, '74.208.73.158', 's15262791.onlinehome-server.com'); INSERT INTO `proxylist` VALUES (20, '68.178.197.203', 'ip-68-178-197-203.ip.secureserver.net'); INSERT INTO `proxylist` VALUES (23, '66.90.118.45', 'luvdex.com'); INSERT INTO `proxylist` VALUES (21, '66.37.153.74', 'web1.nsai.net'); INSERT INTO `proxylist` VALUES (22, '67.159.41.232', '.'); INSERT INTO `proxylist` VALUES (24, '66.90.77.2', 'server.megaupload.us'); INSERT INTO `proxylist` VALUES (25, '208.53.138.150', 'stealth.shell-mx.net');
-
Re: No Attack sorry guys a am a noob on you forum.. I will try remember that stuff as some people might not know where to place the code and yess it's for the attack.php
-
Ok here is a little bit of code just to stop attacks on staff and players till the reach a specific level. //--- Can't attack staff else if ($odata['user_level'] > 1) { print "You can't attack Staff"; $db->query("UPDATE users SET hp=0 WHERE userid=$userid"); $db->query("UPDATE users SET hospital=5 WHERE userid=$userid"); $h->endpage(); exit; } //--- Can't attack level 1 player. you can change the level if($odata['level'] <= 1) { print "This player is Level one. Give them time to learn. > Back"; $h->endpage(); $_SESSION['attacking']=0; $ir['attacking']=0; $db->query("UPDATE users SET attacking=0 WHERE userid=$userid"); exit; }
-
Re: Attacks limit for Mccode V2. Here you can see where ours is.. hope this helps else if($_GET['ID'] == $userid) { print "Only the crazy attack themselves."; $h->endpage(); exit; } elseif($_GET['nextstep'] and $_SESSION['nextstep_nc'] == $_GET['nextstep']) { print "Do not cheat! If you are going to use a easy trick, dont!."; $db->query("update users set cheating=cheating+1 where userid=$userid"); $h->endpage(); exit; } elseif($_GET['nextstep'] > 103) { print "You have stalemated! You cannot attack this user for the remaining day! Back "; event_add($_GET['ID'],"{$ir['username']} [{$ir['userid']}] attacked you and stalemated.",$c); $_SESSION['stalemated']=$_GET['ID']; $h->endpage(); exit; }
-
Re: Password change if ($_POST['oldpw'] != $ir['userpass']) might help if that's what you had in your script ------------------------------------------------- this changes password on ours.. function pass_change() { global $ir,$c,$userid,$h; print "<h3><u>Password Change</u></h3><form action='preferences.php?action=passchange2' method='post'> Current Password: <input type='password' name='oldpw' /> New Password: <input type='password' name='newpw' /> Confirm: <input type='password' name='newpw2' /> <input type='submit' value='Change Password' /></form> > Back"; } function do_pass_change() { global $ir,$c,$userid,$h; if($_POST['oldpw'] != $ir['userpass']) { print "The current password you entered was wrong. > Back"; } else if($_POST['newpw'] !== $_POST['newpw2']) { print "The new passwords you entered did not match! > Back"; } else { mysql_query("UPDATE users SET userpass='{$_POST['newpw']}' WHERE userid=$userid"); print "Password changed! > Back"; }