
yaz123
Members-
Posts
68 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by yaz123
-
Re: Referals Logs I dont understand one thing :| i which files credits the person when the refer is level 3 :S it doesnt make sense :S
-
Re: [mccode V2] Search Islands this looks like search the streets but a pirate version is there any point?
-
Re: [mccode v2] Pollution I got fairly bored.. and added some extra parts..Enjoy.. and do NOT critisies Also, if you click on explore.php after you get the message it sends you into hospital for 10 minutes. Save this file as staff_pollute.php I am not the best with Sprintf, if you find any errors your more than welcome to post again. <?php require "globals.php"; if($ir['user_level'] < 2) { die("You cannot be here."); } if(!$_GET['pollute']) { echo(" [url='staff_pollute.php?pollute=1']Pollute[/url] [url='staff_pollute.php?pollute=2']Unpollute[/url] "); } else { if($_GET['pollute'] == 1) { $pollute = sprintf("UPDATE pollution SET pollute = 1"); $db->query($pollute); echo("You have polluted the city."); } } else if($_GET['pollute'] == 2) { $pollute1 = sprintf("UPDATE pollution SET pollute = 2"); $db->query($pollute1); echo("You have unpolluted the city."); } } } $h->endpage(); ?> Open Explore.php if($ir['pollute'] > 1) { $hosp = sprintf("UPDATE users SET hospital = hospital + 10 WHERE (userid = %u)", $ir['userid']); $db->query($hosp); } $pollute=rand(1,20); echo("This City Is Polluted Very Bad You Cannot Enter For Another 5 Minuets Due To Saftey Reasons"); $pollute = sprintf("UPDATE users SET pollute + 1 WHERE (userid = %u)", $ir['userid']); $db->query($pollute); Make a file called pollutedpeople.php <?php require "globals.php"; $sql = sprintf("SELECT username, userid FROM users WHERE (pollute > 0)"); $sql = $db->query($sql); echo("<h3>People in here have to wait for 5 minutes before they can explore again.</h3> "); echo(" <table border='1' width='75%'> <tr> <Th>Username</th> <th>Userid</th></tr>"); while($r=$db->fetch_row($sql)) { echo(" <tr> <td>{$ir['username']}</td> <td>{$ir['userid']}</td> </tr>"); } echo("</table>"); $h->endpage(); ?> Open cron_fivemins.php $db->query("UPDATE users SET pollute=0 WHERE pollute > 0"); SQL! CREATE TABLE `pollution` ( `pollute` int(11) NOT NULL DEFAULT'0'; ) TYPE=MyISAM ; ALTER TABLE users ADD pollution INT(11) DEFAULT 0; I have not tested this yet. i will later when i get some time.. I am not very good with SQL but i am sure that someone will be able to do it :)
-
Re: [mccode] Send Crystals I am sure that this comes with MCCODES..
-
New!! Free!! Staff can change any users back ground
yaz123 replied to John99's topic in Free Modifications
Re: New!! Free!! Staff can change any users back ground There is NO NO WAY it will work for a Mccodes v2 game. seen as though you havnt even posted the Sql queries, And put some header code. -
Re: [requests] V2 Mod Moaz.. if i am correct.. you had loads of mods.. and one was rehab lol
-
Re: How do i add images on to events well, it is quiet simple.. this is the way iv done it... if($ir['event_count'] > 0) { echo("") } if($ir['mail_count'] > 0) { echo(""); } It works Perfect for my game have a look www.bloody-life.com!
-
Re: Cookie Shop My Second MOD!! WOOT <?p<?php include (DIRNAME(__FILE__) . "/globals.php"); print "<h2>Cookie Store</h2> [i]Walking in to the Cookie Shop..you decide whether or not to buy a cookie.. <table width='70%' border='1'> <th height=8%>Cookie</th><th height=8%>Cost</th> <tr> <td>Chocolate Chip Cookie</td> <td>$10 [url='cookieshop.php?spend=1']Buy 10 cookie[/url] </td></tr> <tr> </td> <td> $20 [url='cookieshop.php?spend=20']Buy 20 cookie[/url] <td> </tr> </table>"; if ($_GET['spend'] == '1') { if ($ir['money'] < 9) { print "You don't have enough money to buy the cookie..Best leave now.."; } else { if ($ir ['money'] > 10) { print "You buy the cookie! You feel happier inside! [url='explore.php']Back to City[/url] "; $db->("UPDATE users SET money=money-10, brave=brave+1 WHERE userid=$userid",$c); } if($_GET['spend'] = 2) { if($ir['money'] < 19) { die(""); } else { print"you bought 20 cookies"; $db->query("UPDATE users SET money=money-20, brave=brave+2 where userid=$userid",$c); } } } $h->endpage(); ?><?php include (DIRNAME(__FILE__) . "/globals.php"); print "<h2>Cookie Store</h2> [i]Walking in to the Cookie Shop..you decide whether or not to buy a cookie.. <table width='70%' border='1'> <th height=8%>Cookie</th><th height=8%>Cost</th> <tr> <td>Chocolate Chip Cookie</td> <td>$10 [url='cookieshop.php?spend=1']Buy 10 cookie[/url] </td></tr> <tr> </td> <td> $20 [url='cookieshop.php?spend=20']Buy 20 cookie[/url] <td> </tr> </table>"; if ($_GET['spend'] == '1') { if ($ir['money'] < 9) { print "You don't have enough money to buy the cookie..Best leave now.."; } else { if ($ir ['money'] > 10) { print "You buy the cookie! You feel happier inside! [url='explore.php']Back to City[/url] "; $db->("UPDATE users SET money=money-10, brave=brave+1 WHERE userid=$userid",$c); } if($_GET['spend'] = 2) { if($ir['money'] < 19) { die(""); } else { print"you bought 20 cookies"; $db->query("UPDATE users SET money=money-20, brave=brave+2 where userid=$userid",$c); } } } $h->endpage(); ?> A little edited you can buy 20 instead [code]...[/code] tags added (Nyna)
-
Re: Is this correct? I seriously dont know what the fuck this code is about ($db->) its ment to be ($db->query) What is this ment to be doing anyway.. :S, how stupid why would sum1 want to know there will if in most game there is a freakin will bar!!..
-
Re: random.php Not alot.. Gives you crystals + money AND ALSO puts you in jail AND hospital :D more chances in sticking you in jail + hospital!
-
Re: Login [Free] Humm, Iv seen this @ www.torn-county.net :| i dont think you made this because if you did it wont be exactly the same + this is MTG's site.. and he codes most of his things himself... + it was made before you put it here :|.
-
<?php require "globals.php"; /* coded by [email][email protected][/email] I used echo(""); instead of print ""; You may change! */ if($ir['money'] > 99) { die ("Sorry.. you cant be here if youve got $100+"); } if ($ir['crystals'] > 249) { die ("Sorry.. you cnat be here if youve got 250+ crystals"); } echo ("<h3>Random Place</h3> You can only be here if you have less than $100 and less than 250 crystals"); $gain = rand(2,20); if(chance == 1) { $chance = rand(1,19); echo("You win $gain dolars"); $db->query("UPDATE users SET money=money+$gain WHERE userid=$userid"); event_add($ir['userid'],"You Won $gain"); $h->endpage(); exit; $gain = rand(5,20); if ($chance == 2) { $chance = rand (8,40); echo ("You get $gain crystals"); $db->query("UPDATE users SET crystals=crystals+$gain WHERE userid=$userid"); event_add($ir['userid'],"You get $gain crystals"); $h->endpage(); exit; if($chance == 5) { $hospital = (INT) rand (10,30); $reasonhosp = 'You got chocked on some food you baught'; echo("You saw a young gentleman at a shop you baught some food and you chocked on it"); $db->query("UPDATE users SET hospital=hosital WHERE userid=$userid"); $db->query("UPDATE users SET hospreason='$reasonhosp' WHERE userid=$userid"); event_add($ir['userid'],"$reasonhosp"); $h->endpage(); exit; $gain = rand(20,30) if ($chance == 10) { $jail = (INT); $reasonjail = 'You was at the wrong place at the wrong time'; echo("$reasonjail for $jail"); $db->query("UPDATE users SET jail=jail+$jail WHERE userid=$userid"); $db->query("UPDATE users SET jailreason='$reasonjail' WHERE userid=$userid"); event_add($ir['userid'],"$reasonjail"); } $h->endpage(); exit; ?>
-
Re: credit.php Well, am going to make a random mod.. like streets but my version :D .. am a newb at this stuff so am not the best! and not the Worst! please dont give me abuse of my mods.. if you dont like them your not at the Right place XD! anyway if you guys got any ideas of any mods.. Il code them for you for FREE! just to get me better! :D.. so any ideas e-mail me @ [email protected]! Well.. have a good day :)!
-
Re: credit.php Thats what I received.
-
<?php require "globals.php"; /* Coded By [email][email protected][/email] if you wont the v1 just change $db->query to mysql_query QUERYS you need.. ALTER TABLE users ADD `dc` INT( 11 ) NOT NULL DEFAULT '0'; ALTER TABLE users ADD `credit` INT( 11 ) NOT NULL DEFAULT '0'; */ if ($ir['donator_days'] < 0 AND $ir['level'] > 3 AND $ir ['dc'] > 0) // You can change the 2 to any number of level { die("Sorry you either have donator days of your level 4+"); // put whatever you wont here in the "" } else { $db->query("UPDATE users SET donatordays=donatordays+3 WHERE userid=$userid");// change the 3 to any number $db->query("UPDATE users SET dc=dc+1 WHERE userid=$userid"); echo("You have been credit your donator days"); } if ($ir['credit'] > 0) { die("Youve Oredy been credited.."); } else { $db->query("UPDATE users SET money=money+1000 WHERE userid=$userid");//change the 1000 to any number you wont.. $db->query("UPDATE users SET crystals=crystals+10 WHERE userid=$userid"); $db->query("UPDATE users SET bankmoney=bankmoney+100 WHERE userid=$userid"); $db->query("UPDATE users SET credit=credit+1 WHERE userid=$userid"); echo("Youve been creded 1000 cash 10 crystals 20 cash in bank ");// change the message here also } ?> This should Work!
-
Re: New Crime Page [V2] Isnt This Ment To Be a Up to date criminal.php ?!??!?
-
Re: Free 2 - Icons Where da hell are the icons :P!!