Jump to content
MakeWebGames

Tonka

Members
  • Posts

    450
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Tonka

  1. Re: [request][mccodes v2] attack mode it the same
  2. Re: wamp server in the original config of WAMP the root mysql user has no password
  3. Re: Alot of help needed   MC Codes v2 is not open source $Bull$$ EYE$ what was the point in posting in a topic that hadn't been posted in since April 20, 2007
  4. Tonka

    Time

    Re: Time get a VPS or dedicated server and your able to change your timezone, other than that you'll need to go to the link Luke posted www.php.net/date and change the format before it's outputted to the user as for a clock set to the users time it's better to have a game clock that is set to the server time so that way people know when the new day is
  5. Re: Change password $Bull$$ EYE$ it's easy to spot the difference between v1 v2 v1 has mysql_query v2 has $db->query there are a lot of other differences but that is on of the basics for script add-ons
  6. Re: [mccodes v1 & v2] Click Count which parts of your site isnt being used ? i'll make this into a mod than, look forward to it
  7. Tonka

    New MSN Virus

    Re: New MSN Virus the last site i posted has now been shutdown down
  8. Re: [mccodes v1 & v2] Click Count which parts of your site isnt being used ? you could even use something along the lines of this instead of using a 3rd party script open header.php and find function userdata($ir,$lv,$fm,$cm,$dosessh=1) { global $db,$c,$userid,$logs,$set;   add below $pagename=$_SERVER['REQUEST_URI']; $sql = sprintf(("UPDATE `clicklogs` count=count+1 WHERE pagename = '%s'"), $pagename); $db->query($sql);   the sql `ID` INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY , `pagename` VARCHAR( 255 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL , `count` INT( 11 ) NOT NULL ) ENGINE = MYISAM ;   if people like this i'll make this into a proper mod with a adder/viewer in the staff panel
  9. Re: [requests] Bot online 24hours can you elaborate more on what you want
  10. Tonka

    New MSN Virus

    Re: New MSN Virus new website for the virus http://videospace.funpic.org/view.php?V ... SN_ADDRESS
  11. Re: Please review My Game I can't even register, I tried 2-5 times and failed the captcha test each time
  12. Re: Not much of a MOD more of a great addon.. Private Messenger didn't realized they charged
  13. Re: Not much of a MOD more of a great addon.. Private Messenger you need to go to the link that was provided, but for those to lazy to scroll up here it is, http://www.php121.com
  14. Re: Add or Edit new item error or you can just edit your insert query
  15. Re: Add or Edit new item error radio_active are you serious, the error is "QUERY ERROR: Column count doesn't match value count at row 1" he added an extra column for something an that is causing the problems. also if you look at the queries you can see that there are 0's there for weapon/armor
  16. Re: Basic Forums [LITE / V1] looks good richard
  17. Re: [mccode v2] Another New Mailbox you probably removed his copyright
  18. Re: (Request) Gang wars - attacking - respect   By the look of that query its going to give 0.05 respect per how much the level of the opponent is so if they are level 20 you will get 1 respect. I want it so that if a level 1 attacks a level 10 they will get 1.5 respect, if they attack a level 5 and win, they get 1.25 respect. if you notice i did change what i posted when i had a 2nd look at it but what felron just posted looks like it would work
  19. Re: (Request) Gang wars - attacking - respect give this a shot and let me know if($ir['level'] < $r['level'] or $ir['level'] > $r['level']) { $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT+$r['level']*0.05 WHERE gangID={$ir['gang']}"); } else if($ir['level'] == $r['level']) { $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT+1 WHERE gangID={$ir['gang']}"); }
  20. Tonka

    New MSN Virus

    Re: New MSN Virus   all viruses can be removed, some just take more time than others, or are to hard for the average user without the proper knowledge.   not a problem BlueDevil23
  21. Tonka

    New MSN Virus

    Hey guys, A few of my friends have gotten this so i figured i would warn everyone there is a new msn virus going around, i will post the message but do not go to the link haha yeah !! :-P flashvids.obxhost.net/video.php?=YOUR_MSN_ADDRESS What it does is it asks you to install a program from them and that contains the virus. I've already contacted the webhost letting them know aswell
  22. Re: [mccode v2] Games Centre looks good war hero
  23. Re: [mccode v2] Jail All in one here fixed <?php include "globals.php"; if($ir['hospital']) { die("This page cannot be accessed while in hospital."); } if($_GET['action']=="escape") { if($ir['jail']==0) { die("You arent in jail! > [url='jail.php']Back[/url]"); } $cost=5; $stat='brave'; if($ir['brave']<5) { die("You need $cost $stat to escape from jail! > [url='jail.php']Back[/url]"); } $db->query("update users set $stat=$stat-$cost where userid=$userid"); if(rand(1,100) <= 50) { print "You successfully broke out of the {$set['game_name']} Jail! > [url='jail.php']Back[/url]"; $db->query("UPDATE users SET jail=0 WHERE userid=$userid"); die(""); } else { $jailtime=(int) rand(1,30); print "You were caught attempting to break out of the {$set['game_name']} Jail. The officers beat you for a while and added $jailtime minutes to your sentence! > [url='jail.php']Back[/url]"; $db->query("UPDATE users SET jail=jail+$jailtime, busted=busted+1, jail_reason='Caught attempting to escape' WHERE userid=$userid"); die(""); } } if($_GET['action']=="bail") { if($ir['jail']) { die("You cannot bail out people while in jail! > [url='jail.php']Back[/url]"); } $_GET['ID']=abs((int) $_GET['ID']); $r=$db->fetch_row($db->query("SELECT * FROM users WHERE userid={$_GET['ID']}")); if(!$r['userid']) { die("Invalid user"); } if(!$r['jail']) { die("That user is not in jail! > [url='jail.php']Back[/url]"); } $cost=$r['level']*2000; $cf=number_format($cost); if($ir['money'] < $cost) { die("Sorry, you do not have enough money to bail out {$r['username']}. You need \$$cf. > [url='jail.php']Back[/url]"); } print "You successfully bailed {$r['username']} out of jail for \$$cf. > [url='jail.php']Back[/url]"; $db->query("UPDATE users SET busts=bails+1, money=money-{$cost} WHERE userid=$userid"); $db->query("UPDATE users SET jail=0 WHERE userid={$r['userid']}"); event_add($r['userid'], "[url='viewuser.php?u={$ir[']{$ir['username']}[/url] bailed you out of jail.", $c); } if($_GET['action']=="bust") { if($ir['energy'] <= 9) { die("Sorry, it costs 10 energy to bust someone. You only have {$ir['energy']} energy. Come back later."); } if($ir['jail']) { die("You cannot bust out people while in jail."); } $_GET['ID']=abs((int) $_GET['ID']); $r=$db->fetch_row($db->query("SELECT * FROM users WHERE userid={$_GET['ID']}")); if(!$r['userid']) { die("Invalid user"); } if(!$r['jail']) { die("That user is not in jail!"); } $mult=$r['level']*$r['level']; $chance=min(($ir['crimexp']/$mult)*50+1, 95); if(rand(1,100) < $chance) { $gain=$r['level']*5; print "You successfully busted {$r['username']} out of jail. > [url='jail.php']Back[/url]"; $db->query("UPDATE users SET crimexp=crimexp+{$gain} WHERE userid=$userid"); $db->query("UPDATE users SET jail=0 WHERE userid={$r['userid']}"); event_add($r['userid'], "[url='viewuser.php?u={$ir[']{$ir['username']}[/url] busted you out of jail.", $c); } else { print "While trying to bust out your friend, a guard spotted you and dragged you into jail yourself. Unlucky! > [url='jail.php']Back[/url]"; $time=min($mult, 100); $db->query("UPDATE users SET jail=$time, jail_reason='Caught trying to bust out {$r['username']}' WHERE userid=$userid"); event_add($r['userid'], "[url='viewuser.php?u={$ir[']{$ir['username']}[/url] was caught trying to bust you out of jail.", $c); } } print "<h3>{$set['game_name']} Jail</h3> "; if($ir['jail']) { print "[url='jail.php?action=escape']Escape[/url] | [url='jail.php?action=court']<strike>Goto Court</strike>[/url]"; } print " <table width='100%' class=\"table\" border=\"0\" cellspacing=\"1\"><tr bgcolor=gray><th>Name</th> <th>Level</th> <th>Time</th><th>Reason</th> <th>Actions</th></tr>"; $q=$db->query("SELECT u.*,c.* FROM users u LEFT JOIN gangs c ON u.gang=c.gangID WHERE u.jail > 0 ORDER BY u.jail DESC"); while($r=$db->fetch_row($q)) { print "<tr><td>{$r['gangPREFIX']} [url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]</td><td>{$r['level']}</td><td>{$r['jail']} minutes</td><td>{$r['jail_reason']}</td> <td>[[url='jail.php?action=bust&?ID={$r[']Bust[/url]][[url='jail.php?action=bail&ID={$r[']Bail[/url]]</td></tr>"; } print "</table>"; $h->endpage(); ?>
  24. Re: [review]www.lost-warzone.net go into your cpanel and disable image hotlinking
  25. Re: [mccode v2] Jail All in one try this, i havn't tested it <?php include "globals.php"; if($ir['hospital']) { die("This page cannot be accessed while in hospital."); } if($_GET['action']=="escape") { if($ir['jail']==0) { die("You arent in jail! > [url='jail.php']Back[/url]"); } $cost=5; $stat='brave'; if($ir['brave']<5) { die("You need $cost $stat to escape from jail! > [url='jail.php']Back[/url]"); } $db->query("update users set $stat=$stat-$cost where userid=$userid"); if(rand(1,100) <= 50) { print "You successfully broke out of the {$set['game_name']} Jail! > [url='jail.php']Back[/url]"; $db->query("UPDATE users SET jail=0 WHERE userid=$userid"); die(""); } else { $jailtime=(int) rand(1,30); print "You were caught attempting to break out of the {$set['game_name']} Jail. The officers beat you for a while and added $jailtime minutes to your sentence! > [url='jail.php']Back[/url]"; $db->query("UPDATE users SET jail=jail+$jailtime, busted=busted+1, jail_reason='Caught attempting to escape' WHERE userid=$userid"); die(""); } } if($_GET['action']=="bail") { if($ir['jail']) { die("You cannot bail out people while in jail! > [url='jail.php']Back[/url]"); } $_GET['ID']=abs((int) $_GET['ID']); $r=$db->fetch_row($db->query("SELECT * FROM users WHERE userid={$_GET['ID']}")); if(!$r['userid']) { die("Invalid user"); } if(!$r['jail']) { die("That user is not in jail! > [url='jail.php']Back[/url]"); } $cost=$r['level']*2000; $cf=number_format($cost); if($ir['money'] < $cost) { die("Sorry, you do not have enough money to bail out {$r['username']}. You need \$$cf. > [url='jail.php']Back[/url]"); } print "You successfully bailed {$r['username']} out of jail for \$$cf. > [url='jail.php']Back[/url]"; $db->query("UPDATE users SET busts=bails+1, money=money-{$cost} WHERE userid=$userid"); $db->query("UPDATE users SET jail=0 WHERE userid={$r['userid']}"); event_add($r['userid'], "[url='viewuser.php?u={$ir[']{$ir['username']}[/url] bailed you out of jail.", $c); } if($_GET['action']=="bust") { if($ir['energy'] <= 9); { die("Sorry, it costs 10 energy to bust someone. You only have {$ir['energy']} energy. Come back later."); } if($ir['jail']) { die("You cannot bust out people while in jail."); } $_GET['ID']=abs((int) $_GET['ID']); $r=$db->fetch_row($db->query("SELECT * FROM users WHERE userid={$_GET['ID']}")); if(!$r['userid']) { die("Invalid user"); } if(!$r['jail']) { die("That user is not in jail!"); } $mult=$r['level']*$r['level']; $chance=min(($ir['crimexp']/$mult)*50+1, 95); if(rand(1,100) < $chance) { $gain=$r['level']*5; print "You successfully busted {$r['username']} out of jail. > [url='jail.php']Back[/url]"; $db->query("UPDATE users SET crimexp=crimexp+{$gain} WHERE userid=$userid"); $db->query("UPDATE users SET jail=0 WHERE userid={$r['userid']}"); event_add($r['userid'], "[url='viewuser.php?u={$ir[']{$ir['username']}[/url] busted you out of jail.", $c); } else { print "While trying to bust out your friend, a guard spotted you and dragged you into jail yourself. Unlucky! > [url='jail.php']Back[/url]"; $time=min($mult, 100); $db->query("UPDATE users SET jail=$time, jail_reason='Caught trying to bust out {$r['username']}' WHERE userid=$userid"); event_add($r['userid'], "[url='viewuser.php?u={$ir[']{$ir['username']}[/url] was caught trying to bust you out of jail.", $c); } } print "<h3>{$set['game_name']} Jail</h3> "; if($ir['jail']) { print "[url='jail.php?action=escape']Escape[/url] | [url='jail.php?action=court']<strike>Goto Court</strike>[/url]"; } print " <table width='100%' class=\"table\" border=\"0\" cellspacing=\"1\"><tr bgcolor=gray><th>Name</th> <th>Level</th> <th>Time</th><th>Reason</th> <th>Actions</th></tr>"; $q=$db->query("SELECT u.*,c.* FROM users u LEFT JOIN gangs c ON u.gang=c.gangID WHERE u.jail > 0 ORDER BY u.jail DESC"); while($r=$db->fetch_row($q)) { print "<tr><td>{$r['gangPREFIX']} [url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]</td><td>{$r['level']}</td><td>{$r['jail']} minutes</td><td>{$r['jail_reason']}</td> <td>[[url='jail.php?action=bust&?ID={$r[']Bust[/url]][[url='jail.php?action=bail&ID={$r[']Bail[/url]]</td></tr>"; } print "</table>"; $h->endpage(); ?>
×
×
  • Create New...