Jump to content
MakeWebGames

jamboy1

Members
  • Posts

    183
  • Joined

  • Last visited

    Never

Everything posted by jamboy1

  1. Re: [V2] PJIRC Chat Mod [V2] It doesn't work, theres just a blank screen with a sheet of paper, that has a red X on it :( any ideas?
  2. Re: Gang Prices ok, thats great :D
  3. Re: Gang Prices :O you beat me to it?? sorry can i keep it here though??
  4. This isn't so much of a mod, but it's a whole lot better than the standard MCcode gang price. Instead of it cost $500,000 to buy a gang it is now $10,000 * the amount of gangs, so it's as follows: 0 Gangs = $0 1 Gang = $10,000 2 Gangs = $20,000 And so on All you need to do is open up creategang.php and replace with this file, it may need a little bit of tweaking to your liking, but i'm sure you'll enjoy:   <?php include "globals.php"; print "<h2>Creat Gang</h2>"; $q=$db->query("SELECT gangid FROM gangs"); $gangs=$db->num_rows($q); $cost=10000*$gangs; if ($ir['money'] < $cost) { die ("You havn't enough money to buy a gang, the price of a gang is $cost"); } if($ir['gang']) { die ("You're already in a gang!"); } if($_POST['submit']) { $name=htmlspecialchars($_POST['name']); $desc=htmlspecialchars($_POST['desc']); $db->query("INSERT INTO gangs VALUES('','$name','$desc','','',0,0,100,$userid,$userid,5,0,0,'')"); $i=$db->insert_id(); $db->query("UPDATE users SET gang=$i,money=money-$cost where userid=$userid"); $sql = sprintf("UPDATE `users` SET `money` = `money` - 0 WHERE `userid` = (%u)", $gangs, $userid); $db->query($sql); print "Gang created!"; } else { print "<h3> Create A Gang </h3><form action='creategang.php' method='post'><input type='hidden' name='submit' value='1' />Name:<input type='text' name='name' /> Description: <textarea name='desc' cols='40' rows='7'></textarea> <input type='submit' value='Create Gang for \$500,000' /></form>"; } $h->endpage(); ?>   Please enjoy the mod :D:D:D i made between 3am and 3:20am i work better in the mornings :L
  5. Re: Userlist Edit [V2] I like the images, although i prefer the colour on a users list i'll stick to mine though, not great but i like it ;)
  6. Re: [Free V2] Lottery I'm now about to add this hoping there are no bugs :D can someone tell me how i would make the cron run every sunday at newday???? please? also i love the mod :D it'll give a reason to play
  7. Re: Heads or Tails [V2] sounds nice :D
  8. Re: Explore your streets.php as an image   Lol, my keyboard makes weird sounds, and hates me XD but why don't you just hit it, thats what i do when i decided it doesn't wanna type :L
  9. Re: New Crime Page [V2] post in DBS support
  10. Re: Crimes give random money Thank you :D and yeah that was a point in making this, i may try working on doing it with items, but it could take a while :P
  11. Re: Different User Profile & View User Page yeah ish, i gotta agree, nice effort, but the point of having hidden stats is so players will attack eachother without knowing whats going to happen
  12. Re: Crimes give random money when i made it i didn't think it would be that much editing :L but thanks for the reply =]
  13. I'm not so good with titles, but i was messing about abit after wanting to have this on my game. So what you have to do, is delete the success money in the crimes table, and add these 2   ALTER TABLE `crimes` ADD `crimeMINMONEY` INT(11) NOT NULL DEFAULT '0'; And ALTER TABLE `crimes` ADD `crimeMAXMONEY` INT(11) NOT NULL DEFAULT '0';   Now in docrime.php add   $muny=(int) (rand($r['crimesMINMONEY'],$r['crimesMAXMONEY']));   Under: print str_replace("{money}",$r['crimeSUCCESSMUNY'],$r['crimeSTEXT']);   Now you can manually add crimes with phpmyadmin and it should work fine =) in staff_crimes.php find: Success Money: <input type='text' name='money' />   and replace with: Min Money: <input type='text' name='minmoney' /> Max Money: <input type='text' name='maxmoney' />   Later on find: $db->query("INSERT INTO crimes (crimeNAME, crimeBRAVE, crimePERCFORM, crimeSUCCESSMUNY, crimeSUCCESSCRYS, crimeSUCCESSITEM, crimeGROUP, crimeITEXT, crimeSTEXT, crimeFTEXT, crimeJTEXT, crimeJAILTIME, crimeJREASON, crimeXP) VALUES( '{$_POST['name']}', '{$_POST['brave']}', '{$_POST['percform']}', '{$_POST['money']}', {$_POST['crys']}, {$_POST['item']}, '{$_POST['group']}', '{$_POST['itext']}', '{$_POST['stext']}', '{$_POST['ftext']}', '{$_POST['jtext']}', {$_POST['jailtime']}, '{$_POST['jailreason']}', {$_POST['crimexp']})");   Replace this with: $db->query("INSERT INTO crimes (crimeNAME, crimeBRAVE, crimePERCFORM, crimeMINMONEY, crimesMAXMONEY, crimeSUCCESSCRYS, crimeSUCCESSITEM, crimeGROUP, crimeITEXT, crimeSTEXT, crimeFTEXT, crimeJTEXT, crimeJAILTIME, crimeJREASON, crimeXP) VALUES( '{$_POST['name']}', '{$_POST['brave']}', '{$_POST['percform']}', '{$_POST['minmoney']}', '{$_POST['maxmoney']}', {$_POST['crys']}, {$_POST['item']}, '{$_POST['group']}', '{$_POST['itext']}', '{$_POST['stext']}', '{$_POST['ftext']}', '{$_POST['jtext']}', {$_POST['jailtime']}, '{$_POST['jailreason']}', {$_POST['crimexp']})");   Now for editing your crime, you are still in the same page. Find Success Money: <input type='text' name='crimeSUCCESSMUNY' value='{$itemi['crimeSUCCESSMUNY']}' />   Replace that with Min Money: <input type='text' name='crimeMINMONEY' value='{$itemi['crimeMINMONEY']}' /> Min Money: <input type='text' name='crimeMAXMONEY' value='{$itemi['crimeMAXMONEY']}' />   Now find:   $db->query("UPDATE crimes SET crimeNAME='{$_POST['crimeNAME']}', crimeBRAVE='{$_POST['crimeBRAVE']}', crimePERCFORM='{$_POST['crimePERCFORM']}', crimeSUCCESSMUNY='{$_POST['crimeSUCCESSMUNY']}', crimeSUCCESSCRYS='{$_POST['crimeSUCCESSCRYS']}', crimeSUCCESSITEM='{$_POST['crimeSUCCESSITEM']}', crimeGROUP='{$_POST['crimeGROUP']}', crimeITEXT='{$_POST['crimeITEXT']}', crimeSTEXT='{$_POST['crimeSTEXT']}', crimeFTEXT='{$_POST['crimeFTEXT']}', crimeJTEXT='{$_POST['crimeJTEXT']}', crimeJAILTIME={$_POST['crimeJAILTIME']}, crimeJREASON='{$_POST['crimeJREASON']}', crimeXP={$_POST['crimeXP']} WHERE crimeID={$_POST['crimeID']}");   And replace with $db->query("UPDATE crimes SET crimeNAME='{$_POST['crimeNAME']}', crimeBRAVE='{$_POST['crimeBRAVE']}', crimePERCFORM='{$_POST['crimePERCFORM']}', crimeMINMONEY='{$_POST['crimeMINMONEY']}', crimeMAXMONEY='{$_POST['crimeMAXMONEY']}', crimeSUCCESSCRYS='{$_POST['crimeSUCCESSCRYS']}', crimeSUCCESSITEM='{$_POST['crimeSUCCESSITEM']}', crimeGROUP='{$_POST['crimeGROUP']}', crimeITEXT='{$_POST['crimeITEXT']}', crimeSTEXT='{$_POST['crimeSTEXT']}', crimeFTEXT='{$_POST['crimeFTEXT']}', crimeJTEXT='{$_POST['crimeJTEXT']}', crimeJAILTIME={$_POST['crimeJAILTIME']}, crimeJREASON='{$_POST['crimeJREASON']}', crimeXP={$_POST['crimeXP']} WHERE crimeID={$_POST['crimeID']}");   I have tested the crime and create new crime, hopefully edit crime does work, if not please post here :) :D
  14. Re: Crime Group Descriptions   i didn't know it was yours but hey it's ok, i'm always happy to try and make mini stuff like this :D and also thanks radio for the little peice of help :D also i am using DB
  15. Re: Crime Group Descriptions Thanks, i'm now doing a bit of testing it's not apearing to show :( so looking at it may make it work :D
  16. This mod is best used with Richards crime page, but i'm sure it can be added somewhere on the standard MCcode criminal.php so now here is what to do: Run this SQL:   ALTER TABLE `crimegroups` ADD `cgDESC`text NOT NULL DEFAULT '';   Now simply in crimes you add where you want it:   {$r['cgDESC']}   I thank richard for making that crime page ;) i hope you don't mind me making this little addon Also i havn't tested it yet, so if it is a little buggy please tell me I also havn't much knoledge of how to add into the staff_crimes.php file, sowwy :P
  17. Re: [mccode] voting Pimped Out   yes youdo need SQL you need something in day cron and you need to add a little extra into the voting page
  18. Re: Crimes (Players Can Go To Hospital) [V2]   Lol dosnt matter if yours is "crap" you should be proud of what you have made atleast you have made something. To be honest it isn't crap i wont be using it but it does look good keep the good work up mate.   Thanks for te compliment :D the reason i did post it was coz i did make it, but i find it may have a few bugs
  19. Re: Crimes (Players Can Go To Hospital) [V2] Well, i can't wait to see it, it will beat my crappy version :P
  20. Re: Help with CSS header.php The body isn't in the CSS part of the page, you want to change the white to black on the actual page Sorry if i'm not clear, but it will be under a table which should say about it's width being 970 then where the mainmenu is, then smenu, and it should be all good :D
  21. Re: Crimes (Players Can Go To Hospital) [V2]   ok thanks for that :)
  22. Re: Crimes (Players Can Go To Hospital) [V2]   add qeury from magictallguy i added them seperately,i'm not too good with adding to SQL so usuallydo it one by one
  23. Re: New Crime Page [V2]   your looking at the type of crime not the crime No im looking at the crime im not that high Thanks for the laugh heres the code, you may wanna edit the first bit of code aswell because i set it to be 1 set brave per crime:   <?php include "globals.php"; if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); } $_GET['ID'] = abs((int) $_GET['ID']); $getid=$_GET['ID']; if(!$getid) { $q=$db->query("SELECT * FROM crimegroups WHERE cgID>0 ORDER BY cgID ASC;",$c); print "Choose a Crime Group from the list below...<hr width=80%> <form action='crimes.php?ID={$_GET['ID']}' method='get'> <table width=80% cellspacing=1> <tr bgcolor=#500001> <th><font color=white>Crime</font></th> <th><font color=white>Brave Cost</font></th> <th><font color=white>Do</font></th></tr>"; if($db->num_rows($q) == 0) { print "<tr class='row$current_row'><td colspan=3></td></tr>"; $current_row = 1 - $current_row; } while($r=$db->fetch_row($q)) { print "<tr class='row$current_row'><td><font color=black>{$r['cgNAME']}</td><td><font color=#FF0000>-{$r['cgID']} Brave</font></td><td><center><input type='radio' name='ID' value='{$r['cgID']}' /></td></tr>"; $current_row = 1 - $current_row; } print "<tr bgcolor=#500001> <td colspan=2><div align=center><input type='submit' value='Next Step'></div></td><td></td> </tr></table></form> <hr width='80%'><align='left'>[url='index.php'] Home[/url]</align><hr width=80%>"; } else { $getid=($_GET['ID']); $q=$db->query("SELECT * FROM crimes WHERE crimeGROUP=$getid ORDER BY crimeID ASC;",$c); $r=$db->fetch_row($q); if (!$db->num_rows($q)) { print "Invalid Crime ID"; } else { $q=$db->query("SELECT * FROM crimes WHERE crimeGROUP=$getid ORDER BY crimeID ASC;",$c); print "Choose a Crime from the list below...<hr width=80%> <form action='docrime.php' method='get2'> <table width=80% cellspacing=1> <tr bgcolor=#500001> <th><font color=white>Crime</font></th> <th><font color=white>Brave Cost</font></th> <th><font color=white>Do</font></th></tr>"; if($db->num_rows($q) == 0) { print "<tr class='row$current_row'><td colspan=3></td></tr>"; $current_row = 1 - $current_row; } while($r=$db->fetch_row($q)) { print "<tr class='row$current_row'><td><font color=black>{$r['crimeNAME']}</td><td><font color=#FF0000>-{$r['crimeBRAVE']} Brave</font></td><td><center><input type='radio' name='c' value='{$r['crimeID']}' /></td></tr>"; $current_row = 1 - $current_row; } print "<tr bgcolor=#500001> <td colspan=2><div align=center><input type='submit' value='Do Crime'></div></td><td></td> </tr></table></form> <hr width='80%'>>[url='index.php'] Home[/url]<hr width=80%>"; } } $h->endpage(); ?>
  24. Re: Crimes (Players Can Go To Hospital) [V2] In the jail text if you'd like the crime to be hospital only you could leave it blank or put a tag is such as
  25. This mod explains itself, it's like having to goto jail, but you can also go to hospital too, this hasn't had much testing, so may need a little editing in docrime.php first run this query ALTER TABLE `crimes` ADD ( `crimeHTEXT` text NOT NULL DEFAULT '', `crimeHOSPTIME` int(10) NOT NULL default '0', `crimeHREASON` varchar(255) NOT NULL default '' ); now find in docrime.php if(rand(1, 2) == 2) { print $r['crimeFTEXT']; } else { print $r['crimeJTEXT']; $db->query("UPDATE `users` SET `jail` = '$r[crimeJAILTIME]', `jail_reason` = '$r[crimeJREASON]' WHERE `userid` = '$userid'"); } } Add Below if(rand(1, 2) == 1) { print $r['crimeFTEXT']; } else { print $r['crimeHTEXT']; $db->query("UPDATE `users` SET `hospital` = '$r[crimeHOSPTIME]', `hospreason` = '$r[crimeHREASON]' WHERE `userid` = '$userid'"); } I'm not good with the staff panel part so you will need to add crimes using phpmyadmin, anyway if this doesn't work please allow a better coder than me to help I'd like to thank iamwicked for helping me with this mod :)
×
×
  • Create New...