-
Posts
708 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Events
Everything posted by CrazyT
-
Re: [mccode V2] Index.php Did you really have to use that font. It's hard to read. idiot. lol
-
Re: jobpoints bug <?php function quit_job() { global $db, $ir, $h; if(!$ir['job']) { echo 'You don\'t have a job to quit!'; exit(headers::endpage()); } else { $db->query('UPDATE `users SET `job` = 0, `jobrank` = 0, `jobpay` = 0 WHERE `userid` = ', $ir['userid']); echo 'You have quit your job! [url="job.php"]Back[/url]'; } } That should be better than your other one lmao
-
Re: help installing mccodes v1 Yeah right. lmao!
-
Re: MCcode V2 user DB hack Dude YOU DID NOT HIRE ME. Your the one who brought "someones", sql injection stopper. Like that is going to stop you getting sql injected. it wont. Yeah i mess some game's up i admit it, but i don't care really. You should secure your website/game what ever it is.
-
Re: [v2] Create a Crystal <?php include_once('globals.php'); $money = 20000; # cost to make crystals if(!$ir['cmake']) { echo 'I\'m sorry but you need $', number_format($money) ,' to make crystal\'s'; headers::endpage(); exit; } else { echo '<h3>Buy materials for making crystals</h3>'; echo ' If you already have the materials, create a crystal [<u><a href="makecrystal.php">Here</u>] '; echo '<table border="2" width="80%">', '<tr style="background-color: gray;">', '<th>Material</th>', '<th>Price</th>', '<th>Purchase</th>', '</tr>', '<tr style="text-align: center;">', '<td>Crystal Material\'s</td>', '<td>$175</td>', '<td>[url="makecrystalbuy.php?spend=materials"]Buy[/url]</td>', '</table>'; $_GET['spend'] = isset($_GET['spend']) && is_string($_GET['spend']) ? $_GET['spend'] : false; if($_GET['spend'] == 'materials') { if($ir['money'] < 175) { echo 'You don\'t have enough money!'; headers::endpage(); exit; } else { if($ir['money'] > 174) { echo 'You bought the materials! ', '[url="index.php"]Go Home[/url] ', '[url="makecrystal.php"]Make a crystal[/url]'; $db->query('UPDATE `users` SET `money` = `money` - 175, `makecrystal` = 1 WHERE `userid` = ', $ir['userid']); } } } headers::endpage(); ?> Made it easy to read. lol.
-
Re: phpjobscheduler Opps, my bad. :P
-
Re: phpjobscheduler If your using Mc Code V2.. Your crons will be like for example:.. curl http://url.com/cron_fivemins.php?code=SomeCodeHere curl http://url.com/cron_minute.php?code=SomeCodeHere curl http://url.com/cron_hour.php?code=SomeCodeHere ect
-
Re: bbcode problem Wasn't hard was it?.. just needed to global $bbc;
-
Re: hour_cron.php HELP!!! Well, run the cron from the url, and see what error(s) you get.
-
Re: [V2]Basic Referal mod. <?php include_once 'globals.php'; $sql = $db->query ( 'SELECT u.`userid`, u.`username`, u.`laston`, r.`refTIME` '. 'FROM `users` AS `u` '. 'LEFT JOIN `referals` AS `r` ON (u.`userid` = r.`refREFED`) '. 'WHERE r.`refREFER` = '. $ir['userid'] ); echo '<h3>You have referred ', number_format($db->num_rows($sql)) ,' people.</h3>'; echo '<h3>Referred Users</h3>'; echo '<table border="0" cellspacing="0" cellpadding="0" width="100%" class="table">', '<tr height="18">', '<th>User</th>', '<th>Time refered</th>', '<th>Last Online</th>', '<th>Contact</th>', '<th>Status</th>', '</tr>'; while($row = mysql_fetch_object($sql)) { echo '<tr style="text-align: center;">'; echo '<td>[url="viewuser.php?u=', $row->userid ,'"]', stripslashes($row->username) ,'[/url] [', $row->userid ,']</td>'; echo '<td>', $row->refTIME ,'</td>'; echo '<td>', date("F j, Y, g:i:s a", $row->laston), '</td>'; echo '<td>[url="mailbox.php?action=compose&ID=', $row->userid ,'"]Contact[/url]</td>'; echo '<td>', (($row->laston >= time() - 15 * 60) ? '<span style="color: green; font-weight: bold;">Online</span>' : '<span style="color: red; font-weight: bold;">Offline</span>') ,'</td>'; echo '</tr>'; } echo '</table>'; headers::endpage(); ?> Recoded it. Note: Not tested!
-
Looking for a In House Coder (30% Rev Share From Game)
CrazyT replied to spiky1471's topic in Engine Support
Re: Looking for a In House Coder (30% Rev Share From Game) Yeah. It's just basic, V2 codes o.o -
Re: THIS OR THAT? mouse //because can use the on screen keyboard :P Car or super bike
-
Re: [v1][mccodes] Gang Decline Message Could be. event_add($appdata['appUSER'], $gangdata['gangDMSG'], $c);
-
Looking for a In House Coder (30% Rev Share From Game)
CrazyT replied to spiky1471's topic in Engine Support
Re: Looking for a In House Coder (30% Rev Share From Game) There is a V3, yes. Is it for sale, No. There isn't a V3. Although i do speak to dab's he said he 'might' make a new source. 'might'. -
Re: Free secure forums? Why not just secure the forum's you already have on your game. Will save you time installing the other one :). XD
-
Re: Illegalife and his GFX @illegalife awesome work as always! :)
-
Re: Name bug $_POST['newname'] = preg_replace('/[^a-zA-Z-_\s]/', '', $db->escape($_POST['newname'])); Whats so hard about it.. that will remove anythink that AINT A-Za-z - _ and spaces.
-
Re: Name bug Mc codes don't come with name checking from Preferences.php
-
Re: Google Speed (No it's not a drug) Thanks! shedh. :)
-
Re: Loop Error - Please Help! Is this your's looks like that paid mod O.O
-
Re: [mccode v2] Site lockdown No problem that's what I'm here for to help :D lol.
-
Re: Finding items Ok could i ask what was so hard about this?.. <?php //for colors of course :D $a = (int) rand(10000, 50000); $b = (int) rand(10000, 50000); if($a == $b) { $row = $db->fetch_row($db->query('SELECT `itmid`, `itmname` FROM `items` WHERE `itmbuyable` = 1 ORDER BY RAND() LIMIT 1')); item_add($ir['userid'], $row['itmid'], 1); event_add($ir['userid'], 'You found a '. $row['itmname'] .' While Walking Around the city.', $c); } There that should work.
-
Re: [mccode v2] Site lockdown Where did you add it in header.php, but were about in header? i would add in under the mainarea/mainmenu bit in header. do u know how to change the colour to white i tryed but keep getting errors Ok here. if($set['site_lockdown']) { if($ir['user_level'] == 2) { echo '<span style="color: white; font-weight: bold;">Site is on lockdown, remmember to remove lockdown</span>'; } else { echo '<span style="color: white; font-weight: bold;">Site is on lockdown, thus, no user is able to access the site except for admins.</span>'; exit($this->endpage()); } } There you go that should work.
-
Re: [mccode v2] Site lockdown Where did you add it in header.php, but were about in header? i would add in under the mainarea/mainmenu bit in header.