Jump to content
MakeWebGames

Nicholas

Members
  • Posts

    467
  • Joined

  • Last visited

Everything posted by Nicholas

  1. Crystals:   <?php include "globals.php"; $_GET['ID'] = abs(intval($_GET['ID'])); if(!$set['sendcrys_on']) { die("Sorry, the game owner has disabled this feature."); } $_GET['ID'] = abs((int) $_GET['ID']); $_POST['crystals'] = abs((int) $_POST['crystals']); if(!((int)$_GET['ID'])) { print "<font color=white>Invalid User ID"; } else if($_GET['ID'] == $userid) { print "<font color=white>Haha, what does sending knifes to yourself do anyway?"; } else { if((int) $_POST['crystals']) { if($_POST['crystals'] > $ir['crystals']) { print "<censored>ing die abuser."; } else { $db->query("UPDATE users SET crystals=crystals-{$_POST['crystals']} WHERE userid=$userid"); $db->query("UPDATE users SET crystals=crystals+{$_POST['crystals']} WHERE userid={$_GET['ID']}"); print "You sent {$_POST['crystals']} knifes to ID {$_GET['ID']}."; event_add($_GET['ID'],"You received {$_POST['crystals']} knifes from {$ir['username']}.",$c); $it=$db->query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid={$_GET['ID']}"); $er=$db->fetch_row($it); $db->query("INSERT INTO crystalxferlogs VALUES ('', $userid, {$_GET['ID']}, {$_POST['crystals']}, unix_timestamp(), '{$ir['lastip']}', '{$er['lastip']}')"); } } else { print "<h1> <font color=white>Sending Knifes</h1> <font color=white>You are sending knifes to ID: [b]{$_GET['ID']}[/b]. <font color=white>You have [b]".number_format($ir['crystals'])."[/b] knifes you can send. <form action='sendknifes.php?ID={$_GET['ID']}' method='post'> <font color=white>Knifes: <input type='text' name='crystals' /> <input type='submit' value='Send' /></form>"; print "<h1><font color=white>Latest 5 Transfers</h1> <table width=75% border=2> <tr style='background:gray'> <th>Time</th> <th>User From</th> <th>User To</th> <th>Amount</th> </tr>"; $q=$db->query("SELECT cx.*,u1.username as sender, u2.username as sent FROM crystalxferlogs cx LEFT JOIN users u1 ON cx.cxFROM=u1.userid LEFT JOIN users u2 ON cx.cxTO=u2.userid WHERE cx.cxFROM=$userid ORDER BY cx.cxTIME DESC LIMIT 5"); while($r=$db->fetch_row($q)) { if($r['cxFROMIP'] == $r['cxTOIP']) { $m="<span style='color:red;font-weight:800'>MULTI</span>"; } else { $m=""; } print "<tr> <td>" . date("F j, Y, g:i:s a",$r['cxTIME']) . "</td><td>{$r['sender']} [{$r['cxFROM']}] </td><td>{$r['sent']} [{$r['cxTO']}] </td> <td> {$r['cxAMOUNT']} knifes</td> </tr>"; } print "</table>"; } } $h->endpage(); ?>   Cash:   <?php include "globals.php"; $_GET['ID'] = abs(intval($_GET['ID'])); $_GET['ID'] = abs((int) $_GET['ID']); $_POST['money'] = abs((int) $_POST['money']); if(!((int)$_GET['ID'])) { print "<font color=white>Invalid User ID</font>"; } else if($_GET['ID'] == $userid) { print "<font color=white>Haha, what does sending money to yourself do anyway?</font>"; } else { if((int) $_POST['money']) { if($_POST['money'] > $ir['money']) { print "<font color=white><censored>ing die abuser.</font>"; } else { $db->query("UPDATE users SET money=money-{$_POST['money']} WHERE userid=$userid"); $db->query("UPDATE users SET money=money+{$_POST['money']} WHERE userid={$_GET['ID']}"); print "You sent \${$_POST['money']} to ID {$_GET['ID']}."; event_add($_GET['ID'],"You received \${$_POST['money']} from {$ir['username']}.",$c); $it=$db->query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid={$_GET['ID']}"); $er=$db->fetch_row($it); $db->query("INSERT INTO cashxferlogs VALUES ('', $userid, {$_GET['ID']}, {$_POST['money']}, unix_timestamp(), '{$ir['lastip']}', '{$er['lastip']}')"); } } else { print "<h1><font color=white>Sending Money</h1> You are sending money to ID: [b]{$_GET['ID']}[/b]. You have [b]\$".number_format($ir['money'])."[/b] you can send. <form action='sendcash.php?ID={$_GET['ID']}' method='post'> Amnt: <input type='text' name='money' /> <input type='submit' value='Send' /></form>"; print "<h3>Latest 5 Transfers</h3> <table width=75% border=2> <tr style='background:gray'> <th>Time</th> <th>User From</th> <th>User To</th> <th>Amount</th> </tr>"; $q=$db->query("SELECT cx.*,u1.username as sender, u2.username as sent FROM cashxferlogs cx LEFT JOIN users u1 ON cx.cxFROM=u1.userid LEFT JOIN users u2 ON cx.cxTO=u2.userid WHERE cx.cxFROM=$userid ORDER BY cx.cxTIME DESC LIMIT 5"); while($r=$db->fetch_row($q)) { if($r['cxFROMIP'] == $r['cxTOIP']) { $m="<span style='color:red;font-weight:800'>MULTI</span>"; } else { $m=""; } print "<tr> <td>" . date("F j, Y, g:i:s a",$r['cxTIME']) . "</td><td>{$r['sender']} [{$r['cxFROM']}] </td><td>{$r['sent']} [{$r['cxTO']}] </td> <td> \${$r['cxAMOUNT']}</td> </tr>"; } print "</table>"; } } $h->endpage(); ?>   can anyone please recode them so it would send out a event of how much u got? thanks Nicholas
  2. Re: can anyone help please? thx
  3. hi, my member is having a problem, he cant read messages but he can send them? and on his profile it says Mailbox (2) but when he clicks it, it has no messages in there, can anyone give me a fix.php file please well the information in it? so he can reset it to (0) by clicking on the fix button.
  4. Re: little help plz? i looked around on the internet for about 20 minutes to find out how to change it, but i just cant figure it out... or find out how to do it. i always research on the internet before asking for help.
  5. hi, im wondering if anyone can convert this time into england time at all? echo date ('F j, Y')." ".date('g:i:s a'); because this shows 5am when its 11am at england and well i live at england lol, can anyone change it to england time at all please? thanks Nicholas.
  6. Re: why doesnt it work? i dont get that lol, im just wondering what do u change in the $power height, parts in that coding so that the bar acturally shows the energy bar is like <img src=greenbar.png width=$enperc height=10><img src=redbar.png width=$enopp height=10>
  7. Re: why isnt it refilling? got it to work, thx.
  8. Re: can anyone help me on this please? oh found out what u mean! yes its for incentive voting. why?
  9. hi, i finally figured out why my mining power was refilling but now im trying to put a bar under it on my game but i cant figure out why its not working can anyone recode the lines please? <img src=greenbar.png width=$power height=10><img src=redbar.png width=$power height=10>
  10. Re: help! lol.
  11. Re: help! ok i put a CAPTCHA on my register page now, oh do u know how that person registered over 2000 users within minutes? at all?
  12. Re: can anyone help me on this please? whats "incentive" voting mean? but this is for voting, yes.
  13. Re: can anyone help me on this please? so like this? and it should work and give out a reward for voting?   <?php session_start(); include_once("config.php"); include_once("class/class_db_".$_CONFIG['driver'].".php"); $db = new database; $db->configure($_CONFIG['hostname'],$_CONFIG['username'],$_CONFIG['password'],$_CONFIG['database'],$_CONFIG['persistent']); $db->connect(); $playertable = "users"; $rewardtype = "money"; $reward = "100"; ///////////////////////// $userid = mysql_real_escape_string($_POST['user']); $userinfo=mysql_query("SELECT * FROM $playertable WHERE userid=$userid",$c) or die(mysql_error()); if(!mysql_num_rows($userinfo)) { exit; } $q=mysql_query("SELECT * FROM votes WHERE userid=$userid AND list='GB'",$c); if(mysql_num_rows($q)) { } else { mysql_query("INSERT INTO votes values ($userid,'GB')",$c); mysql_query("UPDATE $playertable SET $rewardtype=$rewardtype+$reward WHERE userid=$userid",$c); } ?>   and yes i am using v2
  14. Re: help! u think a CAPTCHA would stop it?
  15. hi, i just woke up and went on my game and found out someone registered over 2000 usernames, i reset my game back 2 days so all them users are gone... can anyone please help me, im wondering if anyone can tell me how to secure my register.php file so only 1 person can register once per IP address. can anyone help me please? there was a post on here about how to do it, but i cant find it anyone :(
  16. hi, im kinda confused, can anyone help me on how to fill this in please?   <?php session_start(); //Include your mysql connection here //your database variables $playertable = "users"; $rewardtype = "money"; $reward = "100"; ///////////////////////// $userid = mysql_real_escape_string($_POST['user']); $userinfo=mysql_query("SELECT * FROM $playertable WHERE userid=$userid",$c) or die(mysql_error()); if(!mysql_num_rows($userinfo)) { exit; } $q=mysql_query("SELECT * FROM votes WHERE userid=$userid AND list='GB'",$c); if(mysql_num_rows($q)) { } else { mysql_query("INSERT INTO votes values ($userid,'GB')",$c); mysql_query("UPDATE $playertable SET $rewardtype=$rewardtype+$reward WHERE userid=$userid",$c); } ?>   i got this code from a voting site called Gamingbytes, and im wondering how do i fill it in and what should i call the file? can anyone help me please?
  17. Re: why isnt it refilling? not of what i know of, do u know what query information i need to put in cron_fivemins.php?
  18. Re: new game i changed the header/mainmenu back to normal, and the reason why the register.php took me while is because the other page i done to show game rules before registering, took me while to make because i kept on getting errors lol.
  19. hi, im wondering does anyone know why my Mining Power isnt refilling at all? my energy, will, brave, and etc are refilling and decreasing in time. but my Mining Power Isnt going up. any ideas why?
  20. Re: new game there! changed my register page! took me about 1 hour lol. now im gonna try and make a new layout for inside game. also aaron n, nearly every single game out there has a free login lol. most people usually use the mccodes v2 setup, which is techically free since u can download mccodes v2 quite easierly lol.
  21. Re: new game errors in header? when i go on header.php its goes on a blank page? only errors i got is on mainmenu.php which is the $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); $power=(int) ($ir['power']/$ir['max_power']*100); $minexp=(int) ( $ir['mine_exp']/$ir['mine_needed']*100); part, and i dont wanna remove them lol. also im changing my register soon, just need to make a good as the register.php i got at moment doesnt let players register twice, unless u use the back door (proxys) lol, but i find that out quickly.
  22. Nicholas

    new game

    hi, i finally made my first text-based game, its called www.criminals-nightmare.co.cc can anyone please go on it, and review my game please? rate it out of 10 if u want :) you can also carry on playing if u want?
  23. Re: where and how do u change the vaules? ahh right yes why didnt i think it be in cron_fivemins lol. thx for the help :)
  24. hi, im just wondering where and how do u change the vaules of energy refil. as i want it so: if non-donator, you get = 10% energy every 5 mins if donator, you get = 20% energy every 5 mins. can anyone help me on where i can find it? what file? also what do i have to type?
  25. Re: New Game yes i do now lol, but i dont have that sort of money lol.
×
×
  • Create New...