
M0B2
Members-
Posts
60 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by M0B2
-
Very true. This is a sweet mod so nice one CJ - Twitch :)
-
Where would i add this?, i mean should i add it in parts of just copy and paste the whole thing in? (Sorry for the noobish question :))
-
I've been trying to secure the register page on the lite version of MCCodes. The bit im interested in is making sure that when people register a new user they can only have numbers or letters in the username, but I to be honest I just dont know how to do it. The lite versions allows I think all characters including special ones (e.g. * , ; @). Any help would be appreciated thanks.
-
mccode-v2 [EDUCATION MOD] Totally Re-worked with many additional Options.
M0B2 replied to Uridium's topic in Free Modifications
Once again a great mod, i will be looking at how it works and see if i can learn a thing or two which im sure i'll learn a ton. Thanks illusions -
Could you possibly add all the fixes to mod and post it again, there where alot of changes and i got confused myself as to what to add and what to change. Thanks, lol still a bit noobish and again great work Richard
-
Nice mod, going to try it out soon
-
Re: Criminal Wars [me=M0B2]pokes the site[/me]
-
Re: Military Nation Yep the game is dead
-
Re: Heroes City True I cant seem to login, I get a message saying the server is down or something, it was kind of useless to post it now if the game is down.
-
Re: [mccode v2] Multiple Houses You have been putting up some nice mods lately Richard, I like this mod, but wont be putting it up, too glitchy, but great work anyway :)
-
Re: [mccode v2] Humans vs. Zombies EVENT mod Lol, yes endo the whole code is in the fist page and ifyou cant get all of it try click on seanybobs pm link "(My Mods For Sale)" you can get it there :)
-
Re: Earn More From your game - A Must Read I would also like to know whether it is legit or not, might be interrested and might not be depending on the proof provided. I think the best way to get people off your back and not reveal your method is to give us proof of how it has worked in the past or present time. :)
-
Re: [mccode v2] Humans vs. Zombies EVENT mod This is a great mod, that I will be using, +1 seanybob
-
Re: Complete new gang system... This sounds great, hoping to see the finished product soon
-
Re: [showcase] CriminalImpulse.com Released! Cronus the game looks great; really like your login page. I like the features inside and the layout is nice. Great job :-)
-
Re: Gang surrender I have tried alot to fix it. This is the surrender function that i am using: global $db,$ir,$c,$userid,$gangdata; if(!isset($_POST['subm'])) { print "<form action='yourgang.php?action=staff&act2=viewsurrenders' method='post'> Choose who to accept the surrender from. <input type='hidden' name='subm' value='submit' /> Gang: <select name='sur' type='dropdown'>"; $wq=$db->query("SELECT s.*,w.* FROM surrenders s LEFT JOIN gangwars w ON s.surWAR=w.warID WHERE surTO={$ir['gang']}"); while($r=$db->fetch_row($wq)) { if($gangdata['gangID'] == $r['warDECLARER']) { $w="You";$f="warDECLARED"; } else { $w="Them";$f="warDECLARER"; } $ggq=$db->query("SELECT * FROM gangs WHERE gangID=".$r[$f]); $them=$db->fetch_row($ggq); print "<option value='{$r['surID']}'>War vs. {$them['gangNAME']} (Msg: {$r['surMSG']})</option>"; } print "</select> <input type='submit' value='Accept Surrender' /></form>"; } else { $_POST['sur'] = abs((int) $_POST['sur']); $q=$db->query("SELECT surWAR FROM surrenders WHERE surID={$_POST['sur']}"); list($_POST['war']) = $db->fetch_row($q); $wq=$db->query("SELECT * FROM gangwars where warID={$_POST['war']}"); $r=$db->fetch_row($wq); if($gangdata['gangID'] == $r['warDECLARER']) { $w="You";$f="warDECLARED"; } else { $w="Them";$f="warDECLARER"; } $db->query("DELETE FROM surrenders WHERE surID={$_POST['sur']}"); $db->query("DELETE FROM gangwars WHERE warID={$_POST['war']}"); $ggq=$db->query("SELECT * FROM gangs WHERE gangID=".$r[$f]); $them=$db->fetch_row($ggq); $event=str_replace("'","''","[url='gangs.php?action=view&ID={$ir[']{$gangdata['gangNAME']}[/url] have accepted the surrender from [url='gangs.php?action=view&ID={$them[']{$them['gangNAME']}[/url], the war is over!"); $db->query("INSERT INTO gangevents VALUES('',{$ir['gang']},unix_timestamp(),'$event') , ('',".$r[$f].",unix_timestamp(),'$event')"); print "You have accepted surrender, the war is over."; } } when someone tries to accept the surrender the error message i posted above shows up, can someone please help?
-
Re: [V1] Stray Missile Its supposed to choose someone in the game at random and the person that has been chosen ends up in hospital. It should happen everyday with the cron that I gave. does it not? can you fix it?
-
I didn't make this code, I simlpy eddited the raffle mod cron; I thought it would be funny. I have not tested it yet though. give me a +1 if you like, hope everyone see's the funny side of this. create a file called stray.php and add this in it: <?php /*----------------------------------------------------- --- M0B2 --- Free For CE Members -----------------------------------------------------*/ require "global_func.php"; include "mysql.php"; global $ir,$c,$h,$userid; $u=mysql_query("SELECT COUNT(*) as cnt FROM users",$c) or die(mysql_error()); $ro=mysql_fetch_array($u); $hit=rand(1,$ro['cnt']); $q=mysql_query("SELECT * FROM users WHERE userid=$hit",$c); $r=mysql_fetch_array($q); mysql_query("UPDATE users SET hp=1,hospital=hospital+80+(rand()*230),hospreason='Killed By A Stray Missile!' WHERE userid={$r['userid']}",$c); mysql_query("INSERT INTO mail VALUES('', 0, 0, {$r['userid']}, unix_timestamp(),'Local News!','Hello, This is special repoter Tracy From Channel M0B2. {$r['username']} how does it feel to be hit by a stray missile!')",$c); $stik=mysql_query("SELECT * FROM users ",$c); while($use=mysql_fetch_array($stik)) { mysql_query("INSERT INTO mail VALUES('', 0, 0, {$use['userid']}, unix_timestamp(),'Local News!','[url='veiwuser.php?u={$r['][b]{$r['username']}[/b][/url] Got Hit By A Stray Missile, Beware You May Be At Risk Too!')",$c); } ?> add in the cron jobs: 0 0 * * * curl http://yourgameurl.com/stray.php obviously change the yourgameurl to your accutal game url. post what you think and if there are any problems, remember I have NOT tested it.
-
Re: [mccode v2] Annoucements Upgrade! This is looks good, :-D
-
Re: Gang surrender Thats the one I'm using. I also have tried your one, incase my code was messed up, but still no luck, can some please help? :?
-
the surrender code does not work, when you try and surrender this comes up: QUERY ERROR: 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 '' at line 1 Query was SELECT * FROM gangwars where warID= can some one please help?
-
Re: [V2] Distrubed City im am going to