Jump to content
MakeWebGames

Ben-Nasha

Members
  • Posts

    149
  • Joined

  • Last visited

Everything posted by Ben-Nasha

  1. My host allows them and am installing them normally on the Cron Jobs option on my cpanel.
  2. Finally my mother bouht me mccodes so i can run a game but i cant install the crons.... it keeps saying bad command, in crontab file... cant install Please reply back if u no the problem.
  3. Iv got this jquery countdown it should say Redirecting 10,9 and go on and then redirect but it wont i dont know whats wrong with it....     <html> <head> <title> Redirecting... </title> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(document).ready(function() { var number = 10; var url = 'http://www.google.co.uk'; function redirect(number,url) { number = number; url = url; countdown(); } function countdown () { setTimeout(countdown,1000); $('#redricting').html("Redirecting in " + number + " seconds"); number --; if (number<0) { window.location = url; number = 0; } } </script> </head> <body> <div id="redirecting"> Redirecting box </div> </body> </html>
  4. delete please
  5. will anyone do this?
  6. Lol
  7. I dont want it for Mccodes i want it for Gangster Legends...
  8. Hey, can someone make a simple bank robbery mod with sql for gl please?
  9. Hey guys when i convert mccodes v2 to lite do i have to make the mysql.php file?
  10. Header problem i just uploaded the header and this happned... http://www.cod-forum.com/game/
  11. Header? Hey wrx,   can you make the matching header for the war template?   pm me back...   thanks ben
  12. Can you secure it please?
  13. Hey MWG, i need a easy job done here: i want this lite header to look abit like torn     <?php /* MCCodes Lite header.php Rev 1.0.1 Copyright (C) 2006 Dabomstew This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ class headers { function startheaders() { global $ir; echo <<<EOF <html> <head> <title>Your Game Name</title> <style> body { font-family:helvetica, arial, geneva, sans-serif;font-size:12;color: black; scrollbar-base-color: #005B70; scrollbar-arrow-color: #F3960B; scrollbar-DarkShadow-Color: #000000; } a:visited,a:active,a:hover,a:link { color: black;text-decoration: none; } table,tr,td { font-family:helvetica, arial, geneva, sans-serif;font-size: 12; } img { border:none; } textarea { font-family:helvetica, arial, geneva, sans-serif;font-size:12;color: black; } </style> </head> EOF; } function userdata($ir,$lv,$fm,$dosessh=1) { global $c,$userid; $ip = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; mysql_query("UPDATE users SET laston=unix_timestamp(),lastip='$ip' WHERE userid=$userid",$c); if(!$ir['email']) { die ("<body>Your account may be broken. Please mail [email][email protected][/email] stating your username and player ID."); } if($dosessh && $_SESSION['attacking']) { print "You lost all your EXP for running from the fight."; mysql_query("UPDATE users SET exp=0 WHERE userid=$userid",$c); $_SESSION['attacking']=0; } $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $wiperc=(int) ($ir['will']/$ir['maxwill']*100); $experc=(int) ( $ir['exp']/$ir['exp_needed']*100); $brperc=(int) ($ir['brave']/$ir['maxbrave']*100); $hpperc=(int) ($ir['hp']/$ir['maxhp']*100); $enopp=100-$enperc; $wiopp=100-$wiperc; $exopp=100-$experc; $bropp=100-$brperc; $hpopp=100-$hpperc; $d=""; $u=$ir['username']; print "<body bgcolor='#C3C3C3'> <table width=100%><tr><td>[img=logo.png]</td> <td>[b]Name:[/b] {$u} [{$ir['userid']}] [b]Money:[/b] {$fm} [b]Level:[/b] {$ir['level']} [b]Crystals:[/b] {$ir['crystals']} [[url='logout.php']Emergency Logout[/url]]</td><td> [b]Energy:[/b] {$enperc}% <img src=bargreen.gif width=$enperc height=10><img src=barred.gif width=$enopp height=10> [b]Will:[/b] {$wiperc}% <img src=bargreen.gif width=$wiperc height=10><img src=barred.gif width=$wiopp height=10> [b]Brave:[/b] {$ir['brave']}/{$ir['maxbrave']} <img src=bargreen.gif width=$brperc height=10><img src=barred.gif width=$bropp height=10> [b]EXP:[/b] {$experc}% <img src=bargreen.gif width=$experc height=10><img src=barred.gif width=$exopp height=10> [b]Health:[/b] {$hpperc}% <img src=bargreen.gif width=$hpperc height=10><img src=barred.gif width=$hpopp height=10></td></tr></table></div> "; print "<table width=100%><tr><td width=20% valign='top'> "; if($ir['fedjail']) { $q=mysql_query("SELECT * FROM fedjail WHERE fed_userid=$userid",$c); $r=mysql_fetch_array($q); die("[b]<font color=red size=+1>You have been put in the Your Game Name Federal Jail for {$r['fed_days']} day(s). Reason: {$r['fed_reason']}</font>[/b]</body></html>"); } if(file_exists('ipbans/'.$ip)) { die("[b]<font color=red size=+1>Your IP has been banned, there is no way around this.</font>[/b]</body></html>"); } } function menuarea() { include "mainmenu.php"; global $ir,$c; print "</td><td valign='top'> "; } function endpage() { print "</td></tr></table></body> </html>"; } } ?>
  14. Ben-Nasha

    CSS update

    Can someone please help me spice my website css sheet because it is very plain (for free its a small job) message me back thanks ben
  15. Can someone make a login and register page for mccodes lite i just want it to look simple abit like the normal login you get with mccodes lite. Thanks post here :D
  16. i cant seem to fix this error...   Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/ccity/public_html/foodshop.php:1) in /home/ccity/public_html/globals.php on line 6   please help me
  17. 2 lines so is this right?   <?php include "globals.php"; if(!$_GET['action']) { case 'bread' : bread (); break; case 'chicken' : chicken (); break; case 'ham' : ham (); break; case 'crisps' : crisps (); break; ?>
  18. code ok dayo ill try to finish it all tommrow
  19. i am learning the switch statment... pleaet tell me if this is right...   <?php include "globals.php"; $_GET['x'] = isset($_GET['x']) && ctype_alpha($_GET['x']) ? strtolower(trim($_GET['x'])): false; switch($_GET['x']) { case 'lexus' : lexus (); break; case 'mustang' : mustang (); break; case 'fordgt': fordgt (); break; case 'fait' : fait (); break; default : index (); break; } function index() { echo '<h3>GTA</h3> '; echo' [url="?x=lexus"]Break into a lexus[/url] '; echo ' <a hrerf="?x=mustang">Break into a mustang</a> '; echo ' [url="?x=fordgt"]Break into a ford gt[/url] '; echo ' [url="?x=fait"]Break into a fait[/url] '; } function lexus() { echo'lol'; } ?>   NOTE:its not finished!
  20. <?php /////Mod made by Ben-Nasha\\\\\ ////Do not remove this copyright!\\\\\ ////Date coded: 2/1/2010\\\\ include "globals.php"; if (!isset($_GET['ben'])) { print"<h3>Disco</h3> Choose a preson to dance with... <u>[b]For the lady's</u>[/b] [url='disco.php?ben=dance']Paul[/url] [url='disco.php?ben=dance2']Carl[/url] [url='disco.php?ben=dance3']Jonh[/url] [url='disco.php?ben=dance4']Tom[/url] <hr></hr> [b]<u>For the lad's</u>[/b] [url='disco.php?ben=dance5']Sarah[/url] [url='disco.php?ben=dance6']Charlotte[/url] [url='disco.php?ben=dance7']Sophie[/url] [url='disco.php?ben=dance8']Meghan[/url] <hr></hr> [url='index.php']Home[/url]"; } else { if ($_GET['ben'] == 'dance') { print"You danced with paul and had a great time"; $db->query("UPDATE users SET money=money+ 3 WHERE userid=$userid"); } if ($_GET['ben'] == 'dance2') { print"You danced with carl and had a great time"; $db->query("UPDATE users SET money=money+ 5 WHERE userid=$userid"); } if ($_GET['ben'] == 'dance3') { print"You danced with jonh and had a great time"; $db->query("UPDATE users SET money=money+ 8 WHERE userid=$userid"); } if ($_GET['ben'] == 'dance4') { print"You danced with tom and had a great time"; $db->query("UPDATE users SET money=money+ 1 WHERE userid=$userid"); } if ($_GET['ben'] == 'dance5' ) { print"You danced with sarah and had a great time"; $db->query("UPDATE users SET money=money+ 2 WHERE userid=$userid"); } if ($_GET['ben'] == 'dance6') { print"You danced with charlotte and had a great time"; $db->query("UPDATE users SET money=money+ 10 WHERE userid=$userid"); } if ($_GET['ben'] == 'dance7') { print"You danced with sophie and had a great time"; $db->query("UPDATE users SET money=money+ 4 WHERE userid=$userid"); } if ($_GET['ben'] == 'dance8') { print"You danced with meghan and had a great time"; $db->query("UPDATE users SET money=money+ 9 WHERE userid=$userid"); } } ?>
  21. I need a new mod to make because i havnt made one for a long time so post ideas please...
  22. Bored Im just really bored and want to make a game with someone. Also im better at php from before now.
  23. Game Ill help make a game with you for free.
  24. Where do i add that code? where do i add the code below? or if someone would do it please?
  25. adding the code Dayo where do i add the bits of code?
×
×
  • Create New...