Jump to content
MakeWebGames

(((TOLK)))

Members
  • Posts

    179
  • Joined

  • Last visited

Everything posted by (((TOLK)))

  1. Re: upload pictures for items php [v2] thanks for this i might use it but why would u log into ur ftp to add pics, when creating and item, before the name add and u will get a picture for the item ;)
  2. Re: [Need]Sql Dump[Need] it's hard to find staff that you can trust, i've had 3 members of staff turn on me :)
  3. Does anyone here know how to lower bandwidth, i use mccodes and once before y bandwidth rocketted and my site was down for a while, its been 5 days scince it got back up and already i'm on 2000 bandwidth, yesterday it was 900 and today its 2000, any1 have any ideas on how to lower it???
  4. Re: [Mccodes V2] Horse Racing (small mod) yup, thanks guys as long as i get the credit i dont mind any1 edditing it, well it was my first mod so i need the credit
  5. Re: [Mccodes V2] Horse Racing (small mod) thats the best comment i've got on this forum, i'm a real rubbish coder and i'm learning new things everyday and i'm greatful that u think its a good idea i thought i'd get mocked for it :)
  6. this is an edit of roulette to change it into a horse racing betting thingy, here it is   <?php /* Created by ///TOLK\\\ Free for CE members Not to be Sold */ include "globals.php"; $tresder = (int) (rand(100,999)); $maxbet=$ir['level']*150; $_GET['tresde']=abs((int) $_GET['tresde']); if(($_SESSION['tresde'] == $_GET['tresde']) || $_GET['tresde']<100) $_SESSION['tresde']=$_GET['tresde']; $_GET['bet']=abs((int) $_GET['bet']); $_GET['number']=abs((int) $_GET['number']); print "<h3>Horse Racing: Pick a horse from above and type the number</h3>"; if($_GET['bet']) { if($_GET['bet'] > $ir['money']) { die("You are trying to bet more than you have. [url='hr.php?tresde=$tresder']> Back[/url]"); } else if($_GET['bet'] > $maxbet) { die("You have gone over the max bet. [url='hr.php?tresde=$tresder']> Back[/url]"); } else if ($_GET['number'] > 12 or $_GET['number'] < 0 or $_GET['bet'] < 0) { die("The horses are only 0 - 12. [url='hr.php?tresde=$tresder']> Back[/url]"); } $slot[1]=(int) rand(0,12); print "You place your \${$_GET['bet']} on your horse. You see the number of the winning horse: [b]$slot[1][/b] You bet \${$_GET['bet']} "; if($slot[1]==$_GET['number']) { $won=$_GET['bet']*37; $gain=$_GET['bet']*36; print "and won \$$won by matching the number of your horse pocketing you \$$gain extra."; } else { $won=0; $gain=-$_GET['bet']; print "and lost it."; } $db->query("UPDATE users SET money=money+({$gain}) where userid=$userid"); $tresder = (int) (rand(100,999)); print " [url='hr.php?bet={$_GET[']> Another time, same horse and bet.[/url] [url='hr.php?tresde=$tresder']> I'll continue, but I'm changing my horse and/or bet.[/url] [url='explore.php']> Enough's enough, I'm off.[/url]"; } else { print "Ready to try your luck on a horse? Play today! <img src=horse.jpg width=100 height=150> The maximum bet for your level is \$$maxbet. <form action='hr.php' method='get'> Bet: \$<input type='text' name='bet' value='5' /> Pick (0-12) from the horses above: <input type='text' name='number' value='18' /> <input type='hidden' name='tresde' value='$tresder' /> <input type='submit' value='Start Race!!' /> </form>"; } $h->endpage(); ?>     I'm struggling to find an image but u could get your own and i'll post one if i can get a decent enough one, plz post your thoughts....
  7. Re: [Help]Scrollbars exactly its a scroll bar it will make everything look alot better just becoz u didn't think of it doesn't mean u can go aroun criticising ppl's ideas and hellllllllooooooooooo scrollbars ARE cool
  8. Re: [Help]Scrollbars Actually they are and it gives a nice look to the game
  9. Re: [Help]Scrollbars yh but i want one of them cool ones that are custom made with woteva color you chose etc. how do i add them rather than having the boring old browser scroll bars
  10. Does anyone know how to add a new scrollbar to mccodes games coz i have no idea thi is wot my scrollbar colors and thing are   <head> <style type="text/css"><!-- body {scrollbar-3dlight-color:blue; scrollbar-arrow-color:red; scrollbar-track-color:gray; scrollbar-darkshadow-color:black; scrollbar-face-color:black; scrollbar-highlight-color:white; scrollbar-shadow-color:red} --></style> </head>
  11. Re: [McCodes]No right click script I ain't a half wit I'm a dim wit
  12. Re: Need an Mccodes hall of fame of referrals OK GUYS I'VE GOT IT (AT LAST) STICK THIS IN HALLOFFAME.PHP:   function hof_referals() { global $db,$ir,$c,$userid, $myf; print "Showing the 6 users with the highest number of referals <table width=75% cellspacing=1 class='table'><tr style='background:gray'> <th>User ID</th> <th>Number of referals</th> </tr>"; $p=0; $ar=$db->query("SELECT COUNT('refREFED') AS total,refREFER FROM referals GROUP BY refREFER ORDER BY COUNT('referred') DESC LIMIT 10"); while($s = $db->fetch_row($ar)) { echo '<tr style="background:brown">'; echo '<td>'.$s['refREFER'].'</td>'; echo '<td>'.$s['total'].'</td>'; echo '</tr>'; } print "</table>";   GOT SOME HELP FROM ETERNAL AND HAUNTED DAWG, GOT THEIR IDEAS ADDED SUM OF MINE AND TA-DA HERE U ARE!!!
  13. Re: Docrime.php help [Please Help] This is my docrime.php and it works fine   <?php $macropage="docrime.php?c={$_GET['c']}"; include "globals.php"; if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); } $_GET['c']=abs((int) $_GET['c']); if(!$_GET['c']) { print "Invalid crime"; } else { $q=mysql_query("SELECT * FROM crimes WHERE crimeID={$_GET['c']}",$c); $r=mysql_fetch_array($q); if($ir['brave'] < $r['crimeBRAVE']) { print "You do not have enough Brave to perform this crime."; } else { $ec="\$sucrate=".str_replace(array("LEVEL","CRIMEXP","EXP","WILL","IQ"), array($ir['level'], $ir['crimexp'], $ir['exp'], $ir['will'], $ir['IQ']),$r['crimePERCFORM']).";"; eval($ec); print $r['crimeITEXT']; $ir['brave']-=$r['crimeBRAVE']; mysql_query("UPDATE users SET brave={$ir['brave']} WHERE userid=$userid",$c); if(rand(1,100) <= $sucrate) { print str_replace("{money}",$r['crimeSUCCESSMUNY'],$r['crimeSTEXT']); $ir['money']+=$r['crimeSUCCESSMUNY']; $ir['crystals']+=$r['crimeSUCCESSCRYS']; $ir['exp']+=(int) ($r['crimeSUCCESSMUNY']/8); mysql_query("UPDATE users SET money={$ir['money']}, crystals={$ir['crystals']}, exp={$ir['exp']},crimexp=crimexp+{$r['crimeXP']} WHERE userid=$userid",$c); if($r['crimeSUCCESSITEM']) { item_add($userid, $r['crimeSUCCESSITEM'], 1); } } else { if(rand(1, 2) == 1) { print $r['crimeFTEXT']; } else { print $r['crimeJTEXT']; $db->query("UPDATE `users` SET `jail` = '$r[crimeJAILTIME]', `jail_reason` = '$r[crimeJREASON]' WHERE `userid` = '$userid'"); } } print " [url='docrime.php?c={$_GET[']Try Again[/url] [url='criminal.php']Crimes[/url]"; } } $h->endpage(); ?>
  14. Re: [Mccodes V2] How to get the users to fill up the ID's   efiin hell, that's a good one, i could use that sumtym, lol :mrgreen: :-D :lol:
  15. Re: Need an Mccodes hall of fame of referrals I know u guys are gonna think i'm completely useless, and well... I am, i keep gettin this no matter what i try Fatal error: Call to a member function query() on a non-object in /home/talkeen/public_html/new.php on line 8
  16. Re: [Need]Sql Dump[Need] Nope, I just get on with it but its better to do it on notepad so u know how much attack/defence each weopons gonna have and stuff like that, it makes it easier
  17. Re: Need an Mccodes hall of fame of referrals Thanks guys   I don't find that mean at all, i appreciate ur comments
  18. Re: [McCodes]No right click script   That's the thing, i need to learn how to code
  19. Re: [McCodes] Duplicate IP block Straight to the point replys are the best :wink:
  20. Re: Need an Mccodes hall of fame of referrals does any1 hav 1 were staff cant be on it
  21. Re: [Mccodes V2] Set Up V2 the way you want it without altering files.... I think its a great idea especially for ppl who cant edit codes very well
  22. Re: [Mccodes V2] Streets Casey, if im correct i think u posted somthing from Mccodes version 1 coz it had 'include'mysql.php'' and version2 doesn't have that file
  23. this will stop users making more than 1 account. open register.php find: After add: $iap = $_SERVER['REMOTE_ADDR']; //Please Keep This Notice //Coded By: GoldenZero //Website:GoldenZero.net //E-mail: joshisthebest1ca[AT]msn[DOT]com $gz=$db->query("SELECT * FROM `users` WHERE `lastip`='$iap'",$c); if ($db->num_rows($gz) > 0) { print "<font color=red size=-1>{$set['game_name']} has taken action against multiple accounts. If you have another party in your household wanting to play please email {$set['paypal']}"; $h->endpage(); } $gq=$db->query("SELECT * FROM `users` WHERE `lastip_login`='$iap'",$c); if ($db->num_rows($gz) > 0) { print "<font color=red size=-1>{$set['game_name']} has taken action against multiple accounts. If you have another party in your household wanting to play please email {$set['paypal']}"; $h->endpage(); } $gq=$db->query("SELECT * FROM `users` WHERE `lastip_signup`='$iap'",$c); if ($db->num_rows($gz) > 0) { print "<font color=red size=-1>{$set['game_name']} has taken action against multiple accounts. If you have another party in your household wanting to play please email {$set['paypal']}"; $h->endpage(); }   And thats it, just to let u know, I didn't make this.
  24. Re: [McCodes]No right click script 4got to mention that i haven't tested it yet
  25. I had this script lying around and i thought i'd share it with y'all, but i didn't make it i got it off a friend of mine.   <SCRIPT language=JavaScript> function disableIE() { if (document.all) {alert(msg);return false;} } function disableNS(e) { if (document.layers||(document.getElementById&&!document.all)) { if (e.which==2||e.which==3) {alert(msg);return false;} } } if (document.layers) { document.captureEvents(Event.MOUSEDOWN);document.onmousedown=disableNS; } else { document.onmouseup=disableNS;document.oncontextmenu=disableIE; } document.oncontextmenu=new Function('alert(msg);return false') </SCRIPT>
×
×
  • Create New...