-
Posts
2,491 -
Joined
-
Last visited
-
Days Won
196
Content Type
Profiles
Forums
Events
Everything posted by Dayo
-
easily done :P and forgot to say it looks like a simple yet effective add-on and one i actually have not seen made for McCodes so even better :P maby add something to the jobs page to say if you dont turn up for work for 3 days you will get fires, im sure people would be like "WFT why do i no longer have a job"
-
Ian it automaticly sets it to 0 upon login maby chuck an if statment around it so it dosent update on each page load ie if ($ir['strikes']>0) { mysql_query("UPDATE users SET strikes = 0 WHERE userid=$userid"); } In the 4th block of code you have put f {...} and not if {...} probly just didnt copy the whole code :P
-
Just noticed, congrats KyleMassacre Always goot to have active mods and admins :)
-
if i get more time today ill implement JQuery so you dont have to keep doing page loads
-
I had a bit of time spare today so decided to make a simple hi/lo game, it only took 30 odd mins and most of that was the bloody css :P. It uses HTML/CSS + PHP. All data is stored in sessins but can be alreded for databases. <?php session_start(); $guess = $_GET['guess']; $new = mt_rand(1, 13); if (!empty($guess)) { $old = $_SESSION['card']; if (($guess == 'hi' && $old <= $new) || ($guess == 'lo' && $old >= $new)) { $_SESSION['score']=$_SESSION['score']+1; if ($_SESSION['score']>$_SESSION['hiscore']) { $_SESSION['hiscore']=$_SESSION['hiscore']+1; } $new_card = '<div style="color:#009900">You were correct!</div><div class="card n'.$new.' s'.mt_rand(1, 4).'"></div>'; } else { $_SESSION['score'] = 0; $new_card = '<div style="color:#900">You were incorrect!</div><div class="card n'.$new.' s'.mt_rand(1, 4).'"></div>'; } $_SESSION['card'] = $new; } else { $_SESSION['score'] = 0; $new_card = '<div class="card n'.$new.' s'.mt_rand(1, 4).'"></div>'; $_SESSION['card'] = $new; } ?> <html> <head> </head> <body> <style> .card { height:97px; width:72px; background:url("cards.png"); margin-bottom:10px; margin-right:10px; float:left; } .n1 {background-position-x:0px;} .n13 {background-position-x:74px;} .n12 {background-position-x:147px;} .n11 {background-position-x:220px;} .n10 {background-position-x:293px;} .n9 {background-position-x:366px;} .n8 {background-position-x:439px;} .n7 {background-position-x:512px;} .n6 {background-position-x:585px;} .n5 {background-position-x:658px;} .n4 {background-position-x:731px;} .n3 {background-position-x:804px;} .n2 {background-position-x:877px;} .s1 {background-position-y:0px;} .s2 {background-position-y:98px;} .s3 {background-position-y:196px;} .s4 {background-position-y:291ps;} </style> <?php echo $new_card; ?> Your score: <?php echo $_SESSION['score']; ?><br /> Your hi-score: <?php echo $_SESSION['hiscore']; ?><br /> <form method="get" action =""> <input type = "submit" name="guess" value = "hi" /> <input type = "submit" name="guess" value = "lo" /> </form> </body> </html> I used the image from http://www.mickybullock.com/blog/wp-content/uploads/2009/09/classic-playing-cards.png just save it as cards.png in the same directory as this file r change the CSS. Ace is classed as low if you want Ace to be the highest change the css class .n1 to .n14 then chnage $new = mt_rand(1, 13); to $new = mt_rand(2, 14);
-
Well ive completly recoded wuie at work today as i dislike bootstrap i shall upload+share it tonight
-
There is just so much you don't need, yes you may save a few mins/hours where you dont have to write the CSS/JS plus i prefer to use my own code.
-
Yea i used bootstrap sorta wished i didn't now as i now relised why ive alwaysed tried to avoid it :P
-
yea i just loaded it up on my phone :| will have a look at that :P Ive just slightly updated the ingame by adding an icon next to the unit type obv this would change to ie a missile if it was an Explosives expert etc ...
-
LOL im only joking, this is only a mess around project so if i give people ideas its all good. Hopefuly ill finish it in the coming weeks but doubt i will release this officially to the public as I'm not much of a game administrator :P
-
Ive just added a mock up of the ingame to the first post, ive removed the music as it sounds bad with multiple page reloads
-
Thanks, i didnt know if i made it too simple. I wont take credit for the BG that was a paid image from graphic river
-
hello can i get some feedback on a new login im re-designing http://thebattlefield.co.uk/new_html/login.html http://thebattlefield.co.uk/new_html/register.html http://thebattlefield.co.uk/new_html/ingame.html please not this is login only page NOT the index page, this is a page the user can book mark to gain quick access to the game ;)
-
Congrats dave, a good addition to the admin team :)
-
ever since the move from CE to MWG I've thought it has went down hill TBH i check these forums no-where as much as i use too, i use to remember coding a small modification staying up to 11/12ish to reply to any comment posted then wake up at 6 to then re-comment on any that posted while i was sleeping :P
-
Ive just took delivery of my new display so thought ild see how it is like coding up PSDs with. Just send me an EMail with what you want coded up plus a GIF/PNG of the PSD (or just the PSD if you like) and ill give you a quote of how much it will cost to code up. You can email me at [email protected] or add me on Skype my username is CDCoding.
-
try implementing the default McCodes theme to a responsive theme ... but on topic i think someone made a bootstrap theme a while ago for NWE that is responsive but would need extra work to make it suit your game
-
Obviously NWE isnt the only one but like you said competition is always good for a market :)
-
If we just kept to one game engine it will become like McCodes, games will overuse the same engine and it makes it much harder to make a 'unique' game Yes i agree, was never a fan of installing gangster legends and editing it to what you wanted.
-
After several months of inactivity what would you like to see from Gangster Legends V1? This is not as much feature request just general "what do you want" the engine to include. In not going to bother wasting time recoding V0.X.X as the time would be better spent coding the new engine
-
only coding or designed and coded?
-
Looking to Sell or for a Sponsor for a Web Browser Game
Dayo replied to Pavlos1316's topic in Auction House
can you prove this i.e. put a bit of meta data on your homepage or something similar, You would get alot more interest as atm this looks very fishy i.e. <meta name="MakeWebGames" content="showthread.php/43466"> -
thanks forgot to edit the post with the DL link ill do it now
-
Ive recently got a new job and there have been several requests for my template i made a while ago as i wont have much time to offer support nor want the hassle of sending you fles ive decided to release it for free replace header.php with this <?php /* MCCodes FREE header.php Rev 1.1.0c Re coded by Chris Day www.cdcoding.com any donations are appreciated but not required - [email protected] (paypal) McCodes V1 Copyright (C) 2005-2012 Dabomstew Header (C) Chris Day You must keep the "Theme By CDCoding" you can remove this at a small cost of $2 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. */ if (strpos($_SERVER['PHP_SELF'], "header.php") !== false) { exit; } class headers { function startheaders() { global $ir; //html to the stats echo ' <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <style type="text/css"> <!-- body { background-color: #CCCCCC; font-family:Geneva, Arial, Helvetica, sans-serif; } #container { width:900px; margin:auto !important; } #logoarea { width:900px; height:170px; margin-top:25px; background-color:#1e1e1e; border-radius: 15px 15px 0px 0px; -moz-border-radius: 15px 15px 0px 0px; -khtml-border-radius: 15px 15px 0px 0px; -webkit-border-radius: 15px 15px 0px 0px; } #logo{ font-size:105px; width:550px; height:120px; padding:25px; color:#FFFFFF; float:left; } #stats{ text-align:center; color:#CCCCCC; font-size:14px; float:right; width:300px; margin-top:8px; } .underbar{ height:10px; width:200px; background-color:#333; padding:2px; margin:auto !important; border-radius: 7px 7px 7px 7px; -moz-border-radius: 7px 7px 7px 7px; -khtml-border-radius: 7px 7px 7px 7px; -webkit-border-radius: 7px 7px 7px 7px; } .overbar{ height:10px; border-radius: 7px 7px 7px 7px; -moz-border-radius: 7px 7px 7px 7px; -khtml-border-radius: 7px 7px 7px 7px; -webkit-border-radius: 7px 7px 7px 7px; background-color:#000000; } .topbar{ font-size:10px; color:#bbb; position:relative; left:0; right:0; top:-11px; } #menu1 { width:900px; } .menu1item{ width:180px; padding-top:10px; padding-bottom:10px; font-size:18px; color:#666666; float:left; background-color:#1e1e1e; text-align:center; } .menu1item:hover { background-color:#333; color:#CCCCCC; } #main { width:898px; border:1px solid #1e1e1e; background-color:#FFFFFF; border-radius: 0px 0px 15px 15px; -moz-border-radius: 0px 0px 15px 15px; -khtml-border-radius: 0px 0px 15px 15px; -webkit-border-radius: 0px 0px 15px 15px; } #menu2{ width:200px; float:left; margin-top:10px; text-align:center; } #maincontent{ width:690px; float:right; margin-top:10px; text-align:center; } a{ color:inherit; text-decoration:none; } a:hover { text-decoration:underline; } --> </style> </head> <body> <div id="container"> <div id="logoarea"> <div id="logo"> Game Title </div> '; } function userdata($ir, $lv, $fm, $cm, $dosessh = 1) { global $c, $userid; $ip = mysql_real_escape_string($_SERVER['REMOTE_ADDR']); mysql_query( "UPDATE users SET laston=" . time() . ",lastip='$ip' WHERE userid=$userid", $c); if (!$ir['email']) { die( "<body>Your account may be broken. Please mail [email protected] stating your username and player ID."); } if ($dosessh && isset($_SESSION['attacking'])) { if ($_SESSION['attacking'] > 0) { 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)*2; $wiperc = (int) ($ir['will'] / $ir['maxwill'] * 100)*2; $experc = (int) ($ir['exp'] / $ir['exp_needed'] * 100)*2; $brperc = (int) ($ir['brave'] / $ir['maxbrave'] * 100)*2; $hpperc = (int) ($ir['hp'] / $ir['maxhp'] * 100)*2; $enopp = 100 - $enperc; $wiopp = 100 - $wiperc; $exopp = 100 - $experc; $bropp = 100 - $brperc; $hpopp = 100 - $hpperc; $d = ""; $u = $ir['username']; if ($ir['donatordays']) { $u = "<font color=red>{$ir['username']}</font>"; $d = "<img src='donator.gif' alt='Donator: {$ir['donatordays']} Days Left' title='Donator: {$ir['donatordays']} Days Left' />"; } echo '<div id="stats"> Energy <div class="underbar"> <div class="overbar" style="width:'.$enperc.'px;"></div> <div class="topbar">'.$ir['energy'].'/'.$ir['maxenergy'].'</div> </div> Will <div class="underbar"> <div class="overbar" style="width:'.$wiperc.'px;"></div> <div class="topbar">'.$ir['will'].'/'.$ir['maxwill'].'</div> </div> Brave <div class="underbar"> <div class="overbar" style="width:'.$brperc.'px;"></div> <div class="topbar">'.$ir['brave'].'/'.$ir['maxbrave'].'</div> </div> EXP <div class="underbar"> <div class="overbar" style="width:'.$experc.'px;"></div> <div class="topbar">'.($experc/2).'%</div> </div> Health <div class="underbar"> <div class="overbar" style="width:'.$hpperc.'px;"></div> <div class="topbar">'.$ir['hp'].'/'.$ir['maxhp'].'</div> </div> </div> <div style="clear:both"></div> </div>'; $q = mysql_query("SELECT * FROM ads ORDER BY rand() LIMIT 1", $c); if (mysql_num_rows($q)) { $r = mysql_fetch_array($q); print "<center><a href='ad.php?ad={$r['adID']}'><img src='{$r['adIMG']}' alt='Paid Advertisement' /></a></center><br />"; mysql_query( "UPDATE ads SET adVIEWS=adVIEWS+1 WHERE adID={$r['adID']}", $c); } 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 Testing 1 Federal Jail for {$r['fed_days']} day(s).<br /> 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() { echo ' <div id="menu1"> <div class="menu1item"> Donate </div> <div class="menu1item"> Vote </div> <div class="menu1item"> Help </div> <div class="menu1item"> Settings </div> <div class="menu1item"> Logout </div> </div> <div id="main"> <div id="menu2">'; include "mainmenu.php"; global $ir, $c; echo '</div><div id="maincontent"><div align="center">'; } function endpage() { $year = date('Y'); echo '<div style="clear:both;"></div></div></div> <div style="clear:both"></div> </div> <div align="center">Powered by codes made by Dabomstew. Copyright © '.$year.' {your game name}.<br /><a href="http://www.cdcoding.com" target="_blank">Theme By CDCoding.</a></div> </div> </body> </html> '; } } replace mainmenu.php with this <?php /* MCCodes FREE mainmenu.php Rev 1.1.0c Re coded by Chris Day www.cdcoding.com any donations are appreciated but not required - [email protected] (paypal) McCodes V1 Copyright (C) 2005-2012 Dabomstew Main Menu (C) Chris Day 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. */ if (strpos($_SERVER['PHP_SELF'], "mainmenu.php") !== false) { exit; } global $c, $ir; $u = $ir['username']; if ($ir['donatordays']) { $u = "<font color=red>{$ir['username']}</font>"; $d = "<img src='donator.gif' alt='Donator: {$ir['donatordays']} Days Left' title='Donator: {$ir['donatordays']} Days Left' />"; } print "<div align='left' style='padding-left:2px;'><strong>Name:</strong> {$u} [{$ir['userid']}] $d<br /> <strong>Money:</strong> ".money_formatter($ir['money'])."<br /> <strong>Level:</strong> {$ir['level']}<br /> <strong>Crystals:</strong> {$ir['crystals']} </div><hr />"; if (!$ir['hospital']) { print "<a href='index.php'>Home</a><br /> <a href='inventory.php'>Items</a><br /> <a href='explore.php'>Explore</a><br /> <a href='events.php'>"; $d = mysql_query( "SELECT COUNT(*) as cnt FROM events WHERE evUSER={$ir['userid']} AND evREAD=0", $c) or die(mysql_error()); $r = mysql_fetch_array($d); if ($r['cnt'] > 0) { print "<strong>Events ({$r['cnt']})</strong>"; } else { print "Events (0)"; } print "</a><br /> <a href='mailbox.php'>"; $d2 = mysql_query( "SELECT COUNT(*) as cnt FROM mail WHERE mail_to={$ir['userid']} AND mail_read=0", $c) or die(mysql_error()); $r = mysql_fetch_array($d2); if ($r['cnt'] > 0) { print "<strong>Mail ({$r['cnt']})</strong>"; } else { print "Mail (0)"; } print "</a><br /> <a href='gym.php'>Gym</a><br /> <a href='criminal.php'>Crimes</a><br /> <a href='education.php'>Local School</a><br /> <a href='monopaper.php'>Announcements</a><br /> <a href='search.php'>Search</a><br /> <a href='advsearch.php'>Advanced Search</a><br />"; if ($ir['user_level'] > 1) { print "<hr /> <strong>Staff Only</strong><br />\n"; if ($ir['user_level'] < 6 and $ir['user_level'] != 4) { print "<a href='new_staff.php'>Staff Panel</a><br />\n"; } } if ($ir['user_level'] > 1) { print "<hr /><strong>Staff Online:</strong><br />"; $q = mysql_query( "SELECT * FROM users WHERE laston > " . (time() - 900) . " AND user_level>1 ORDER BY userid ASC", $c); while ($r = mysql_fetch_array($q)) { $la = time() - $r['laston']; $unit = "secs"; if ($la >= 60) { $la = (int) ($la / 60); $unit = "mins"; } if ($la >= 60) { $la = (int) ($la / 60); $unit = "hours"; if ($la >= 24) { $la = (int) ($la / 24); $unit = "days"; } } print "<a href='viewuser.php?u={$r['userid']}'>{$r['username']}</a> ($la $unit)<br />"; } } if ($ir['donatordays']) { print "<hr /> <strong>Donators Only</strong><br /> <a href='friendslist.php'>Friends List</a><br /> <a href='blacklist.php'>Black List</a>"; } print "<hr /> <a href='preferences.php'>Preferences</a><br /> <a href='preport.php'>Player Report</a><br /> <a href='helptutorial.php'>Help Tutorial</a><br /> <a href='gamerules.php'>Game Rules</a><br /> <a href='viewuser.php?u={$ir['userid']}'>My Profile</a><br /> <a href='logout.php'>Logout</a><br /><br /> Time is now<br /> "; echo date('F j, Y') . "<br />" . date('g:i:s a'); } else { print "<a href='index.php'>Home</a><br /> <a href='inventory.php'>Items</a><br /> <a href='events.php'>"; $d = mysql_query( "SELECT COUNT(*) as cnt FROM events WHERE evUSER={$ir['userid']} AND evREAD=0", $c) or die(mysql_error()); $r = mysql_fetch_array($d); if ($r['cnt'] > 0) { print "<strong>Events ({$r['cnt']})</strong>"; } else { print "Events (0)"; } print "</a><br /> <a href='mailbox.php'>"; $d2 = mysql_query( "SELECT COUNT(*) as cnt FROM mail WHERE mail_to={$ir['userid']} AND mail_read=0", $c) or die(mysql_error()); $r = mysql_fetch_array($d2); if ($r['cnt'] > 0) { print "<strong>Mail ({$r['cnt']})</strong>"; } else { print "Mail (0)"; } print "</a><br /> <a href='monopaper.php'>Announcements</a><br /> <a href='search.php'>Search</a><br />"; if ($ir['user_level'] > 1) { print "<hr /> <strong>Staff Only</strong><br />"; if ($ir['user_level'] < 6 and $ir['user_level'] != 4) { print "<a href='new_staff.php'>Staff Panel</a><br />\n"; } } if ($ir['user_level'] > 1) { print "<hr /><strong>Staff Online:</strong><br />"; $q = mysql_query( "SELECT * FROM users WHERE laston>(" . time() . "-15*60) AND user_level>1 ORDER BY userid ASC", $c); while ($r = mysql_fetch_array($q)) { $la = time() - $r['laston']; $unit = "secs"; if ($la >= 60) { $la = (int) ($la / 60); $unit = "mins"; } if ($la >= 60) { $la = (int) ($la / 60); $unit = "hours"; if ($la >= 24) { $la = (int) ($la / 24); $unit = "days"; } } print "<a href='viewuser.php?u={$r['userid']}'>{$r['username']}</a> ($la $unit)<br />"; } } if ($ir['donatordays']) { print "<hr /> <strong>Donators Only</strong><br /> <a href='friendslist.php'>Friends List</a><br /> <a href='blacklist.php'>Black List</a>"; } print "<hr /> <a href='preferences.php'>Preferences</a><br /> <a href='preport.php'>Player Report</a><br /> <a href='helptutorial.php'>Help Tutorial</a><br /> <a href='gamerules.php'>Game Rules</a><br /> <a href='viewuser.php?u={$ir['userid']}'>My Profile</a><br /> <a href='logout.php'>Logout</a><br /><br /> Time is now<br /> "; echo date('F j, Y') . "<br />" . date('g:i:s a'); } A screen shoot can be found here http://www.cdcoding.com/screenshoots/ingamev1.png
-
http://makewebgames.io/showthread.php/36153-Advert-experiences-and-feeback