Jump to content
MakeWebGames

(((TOLK)))

Members
  • Posts

    179
  • Joined

  • Last visited

Everything posted by (((TOLK)))

  1. Re: Creat Crime and City You get the problem with the crimes if u don't fill in the boxes and the original add city code was missing a (') somewhere in the code Karlos has posted the fix.
  2. Re: userlist.php (correctly) shows huge number of pages I think this is right i couldn't be bothered testing it :lol:   $db->query("SELECT u.*,g.* FROM users u LEFT JOIN gangs g ON u.gang=g.gangID ORDER BY $by $ord LIMIT $st,100")   Change the "LIMIT $st,100" to something like "LIMIT $st,500" hope this helps, hope it's right :lol:
  3. Re: [V2] New Small Accuracy Mod [V2] nice idea mate
  4. This mod will be used to try to get someone out of hospital. If you're in hospital and want to get out you click emergency surgery. If the surgery goes well then you're out, if it goes wrong, well then you're gonna be stuck in hospital for longer. It's and edit of jailbail.php with things added on Call this file surgery.php   <?php include "globals.php"; if(!$ir['hospital']) { die("You are not in the hospital!"); } $cost=($ir ['level'])*300; $fail=($ir ['level'])*2; $rand=rand(1,3); $cf=number_format($cost); if($ir ['money'] < $cost) { die("Sorry, you do not have enough money to pay for your surgery. You need \$$cf."); } if ($rand == '1') { print "your surgery was a success you are out of the hospital, the surgery cost \$$cf. > [url='hospital.php']Back[/url]"; $db->query("UPDATE users SET money=money-$cost WHERE userid=$userid"); $db->query("UPDATE users SET hospital=0 WHERE userid=$userid"); } else { print "Your surgery was unsuccessful because the doctors mucked up your operation and used the wrong equipment and materials you are left in hospital for a longer amount of time, luckily, the doctors choose not to charge you for that failed operation. "; $db->query("UPDATE users SET hospital=hospital+$fail WHERE userid=$userid"); } $h->endpage(); ?>   Now add this in mainmenu.php:   [url='surgery.php']Emergency Surgery[/url]   Under:   if($ir['hospital']) { print "[url='hospital.php']Hospital ($hc)[/url]   Please comment on what you think :-D
  5. Re: [McCodes V2] Intimidate Witness (Donator Only) Great mod +1
  6. Re: [V2]item pics easy way to add pics to items. Before you put the item name put this <img src=xxxx> Change the xxxx with the url of the chosen image :-)
  7. Re: Problem with making crimes ok here's the fix open staff_cities.php Find: Minimum Level: <input type='text' name=minlevel' />   It's on line 40   Replace it with:   Minimum Level: <input type='text' name='minlevel' />   A (') had been missed out all it does is adds the (')
  8. Re: [mccode v2] Lucky Boxes Maybe for Pwetty Cowours
  9. Re: [McCodes V2]Race Mod I hate them keyboards, i'm so used to querty that i always go for the wrong keys and end up taking years to type my own name :lol:
  10. Re: Problem with making crimes The code for create a city on Mccodes V2 does't work, so you could do it through phpMyAdmin. I might have a look at it and create a fix for it :-)
  11. Re: Problem with making crimes I used to get an error on crimes, not too sure wot it used to say but i think it's because i didnt fill everything in, so try to fill everything in and see what happens
  12. Re: [McCodes V2]Race Mod Aaah...I SEE IT!!! :lol: Thanks MTG :-)
  13. Re: [McCodes V2]Race Mod pwetty cowours---pwetty cowours :-P right i use (') instead of the other one but i don't know where that is on the keyboard :lol: :?
  14. Re: [McCodes V2]Race Mod   FAIL! -.-   <?php $sql = sprintf("UPDATE users SET race = race - 1 WHERE (userid = %u)", $userid); $db->query($sql); ?>   <?php $db->query("UPDATE users SET race = 5 WHERE (race < 5)"); ?>     What failed, i think i'm missing something here, is it that i didn't put <?php ?> :? :? :?
  15. Re: [McCodes V2]Race Mod   I realised that and that's why i have it so that you can only have 5 races everyday. this takes 1 race aloud away   $db->query("update users set race=race-1 where userid=$userid",$c);   This refills the amount of races you can have everyday.   $db->query("UPDATE 'users' SET race=5 WHERE race <5);
  16. Re: Cpanel File Manager V2 from game   Some servers are set up to go by port only (2082, 2083, whatever). Others are set up without cPanel :P   I like this mod, it's a great addon but u do have to be lazy if u can't be assed typing www.domain.com:2082 www.domain.com:2083 www.domain.com/cpanel But it's upto what you wanna do Are you happy now MTG?? :-P
  17. Re: Cpanel File Manager V2 from game I like this mod, it's a great addon but u do have to be lazy if u can't be assed typing www.domain.com/cpanel But it's upto what you wanna do
  18. Re: [McCodes V2]Race Mod I love die because i can't use anything else :lol:
  19. Re: [McCodes V2]Race Mod Thanks Crazy-T will learn from that. You use a real different coding style to me, u do if($ir['jail']) { echo 'While in jail you cant access this page dude'; $h->endpage(); exit; } I do if($ir['jail'] or $ir['hospital']) { die("<font color=red>This page cannot be accessed while in jail or hospital</font>."); }
  20. Re: Cpanel File Manager V2 from game   Nope not at all unless you want the code i put in there lol without ur code wouldn't just any1 be able to get into the file manager, they'd need a password but it's better to put the code in that Crazy-T gave us
  21. Re: Cpanel File Manager V2 from game Slap me if i'm wrong, but does the file.php really need the '<?php/?>' tags because it's all in HTML   <?php /*+++++++++++++++++++++++++++++++++++++*/ /* File Manager V2 */ /* Made By The Phenomenal Ishz */ /* Free Mod */ /* Do Not Remove */ /*+++++++++++++++++++++++++++++++++++++*/ print <<<EOF <link rel="stylesheet" href="../css/files.css"> <html> <title>>>>File Manager v2<<<<</title> <script language="Javascript"> if (document.all || document.layers) { self.moveTo(0,0); self.resizeTo(screen.availWidth,screen.availHeight); } </script> ///Change YOURGAMENAME.COM to your actual domain name ///Change YOURCPANELUSERNAME to your actual cpanel username ///Made By The Phenomenal Ishz <frameset cols="*,270" border="0" frameborder="0"> <frame src="http://YOURGAMENAME.COM:2082/frontend/x3/files/dir.html?dir=%2fhome%2fYOURCPANELUSERNAME%2fpublic_html&showhidden=1" scrolling="auto" border="0" frameborder="0" name="dirwindow"> <frame src="http://YOURGAMENAME.COM:2082/frontend/x3/files/dirstuff.html" scrolling="auto" border="0" frameborder="0" name="filewindow" class="topright"> <frame src="YOURGAMENAME.COM:2082/frontend/x3/files/trash.html" scrolling="auto" name="trashframe" border="1" frameborder="0"> </frameset> </frameset> <noframes> </noframes> </html> EOF; $h->endpage(); ?>
  22. Re: [McCodes V2]Race Mod   I think it's because i'm not a very good coder and i don't know how to make it in one file. I tried using cases but that didn't go that well lol :lol: If you can fix it up that'd be good. I just need to see a mod like this in one file and then after looking at it i will be able to make codes in one file.
  23. Re: [McCodes V2]Race Mod I might extend this at some point so people can buy cars and race against each other, it's already been made but it's a paid mod but i would like to try it after i have more experience in coding
  24. Re: Cpanel File Manager V2 from game   put this if statement: if ($ir ['userid==1']) { print "File Manager"; } Add this after <?php: if ($ir ['userid!=1']) { die ("You are not the coder, therefore you cannot view this page."); }   Hope that helps tell me if i did sumthin wrong
  25. Re: [mccode v2] Tag Mod (Complete) Great Mod +1
×
×
  • Create New...