Jump to content
MakeWebGames

HITMAN 17

Members
  • Posts

    1,145
  • Joined

  • Last visited

Everything posted by HITMAN 17

  1. Re: 2nd crystals v2 its all the same <?php include "globals.php"; if(!$_GET['spend']) { print "Welcome to the 2nd crystal temple! You have [b]{$ir['crystals']}[/b] crystals. What would you like to spend your 2nd crystals on? [url='crystaltemple2.php?spend=refill']Energy Refill - 12 2nd Crystals[/url] [url='crystaltemple2.php?spend=IQ']IQ - 5 IQ per 2nd crystal[/url] [url='crystaltemple2.php?spend=money']Money - \$200 per 2nd crystal[/url] "; } else { if($_GET['spend'] == 'refill') { if($ir['2ndcrystals'] <12) { print "You don't have enough crystals!"; } else if($ir['energy'] == $ir['maxenergy']) { print "You already have full energy."; } else { mysql_query("UPDATE users SET energy=maxenergy,2ndcrystals=2ndcrystals-12 WHERE userid=$userid",$c); print "You have paid 12 2nd crystals to refill your energy bar."; } } else if($_GET['spend'] == 'IQ') { print "Type in the amount of crystals you want to swap for IQ. You have [b]{$ir['2ndcrystals']}[/b] crystals. One 2nd crystal = 5 IQ.<form action='crystaltemple2.php?spend=IQ2' method='post'><input type='text' name='2ndcrystals' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'IQ2') { $_POST['2ndcrystals']=(int) $_POST['2ndcrystals']; if($_POST['2ndcrystals'] <= 0 || $_POST['2ndcrystals'] > $ir['2ndcrystals']) { print "Error, you either do not have enough crystals or did not fill out the form. [url='crystaltemple2.php?spend=IQ']Back[/url]"; } else { $iqgain=$_POST['2ndcrystals']*5; mysql_query("UPDATE users SET 2ndcrystals=2ndcrystals-{$_POST['2ndcrystals']} WHERE userid=$userid",$c); mysql_query("UPDATE userstats SET IQ=IQ+$iqgain WHERE userid=$userid",$c); print "You traded {$_POST['2ndcrystals']} 2nd crystals for $iqgain IQ."; } } else if($_GET['spend'] == 'money') { print "Type in the amount of crystals you want to swap for \$\$\$. You have [b]{$ir['2ndcrystals']}[/b] 2nd crystals. One 2nd crystal = \$200.<form action='crystaltemple2.php?spend=money2' method='post'><input type='text' name='2ndcrystals' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'money2') { $_POST['2ndcrystals']=(int) $_POST['crystals']; if($_POST['2ndcrystals'] <= 0 || $_POST['crystals'] > $ir['crystals']) { print "Error, you either do not have enough crystals or did not fill out the form. [url='crystaltemple2.php?spend=money']Back[/url]"; } else { $iqgain=$_POST['2ndcrystals']*200; mysql_query("UPDATE users SET 2ndcrystals=2ndcrystals-{$_POST['2ndcrystals']},money=money+$iqgain WHERE userid=$userid",$c); print "You traded {$_POST['2ndcrystals']} 2nd crystals for \$$iqgain."; } } } $h->endpage(); ?>
  2. Re: better hall of fame whats the first bit for v2 and what do i look for
  3. Re: [mccode] voting Pimped Out dont u need crons to update the voting thing
  4. Re: [v1][FREE] DONATION PACKS TO ITEMS i cant get it to work i made an item called pack1 and it wont work still and done everything wat said
  5. Re: [v1][FREE] DONATION PACKS TO ITEMS   $db->query("DELETE FROM inventory WHERE inv_id={$_GET['ID']}"); $db->query("UPDATE users SET money=money+[b]MONEY[/b] WHERE userid=$userid"); $db->query("UPDATE users SET donatordays=donatordays+[b]DDAYS[/b] WHERE userid=$userid"); $db->query("UPDATE users SET crystals=crystals+[b]CRYSTALS[/b] WHERE userid=$userid"); $db->query("UPDATE userstats SET IQ=IQ+[b]IQ[/b] WHERE userid=$userid"); that bit do i change on there to put amount in on each one
  6. Re: quantify items automatically this also works for v2 just post it after include "globals.php";   $id=ITEMIDHERE; $lol2=mysql_query("SELECT * FROM inventory WHERE inv_userid=$userid AND inv_itemid=$id",$c); $gotitem = mysql_num_rows($lol2); if($gotitem == 0) { mysql_query("INSERT INTO inventory VALUES('',$itemidexplore,$userid,1)",$c); } else { $item=mysql_query("SELECT * FROM inventory WHERE inv_userid=$userid AND inv_itemid=$id",$c); $z=0; while ($i=mysql_fetch_array($item)) { $z=$z+$i['inv_qty']; } $z = $z+1; mysql_query("DELETE FROM inventory WHERE inv_userid=$userid AND inv_itemid=$id",$c); mysql_query("INSERT INTO inventory VALUES ('', '$id', '$userid', '$z')",$c); }
  7. Re: [mccode] staff applications ok wat shall i type in google then
  8. Re: [mccode] staff applications wats the case and all that can someone tell me plz its worth +1 if someone tells where to go and wat to do plzV2
  9. Re: BANK cap V2 also this applies for cyber bank
  10. Re: [V1][MCCODE]Avatars For Pics[MCCODE][V1] ino mate anyway your game is down
  11. Re: [V1][MCCODE]Avatars For Pics[MCCODE][V1] if u did not now i have converted it
  12. Re: [mccode] quantify items automatically v2 heres a simple script that quantifies a users items everytime they look at their inventory, so for all intents and purposes, there items are always quantified :) inventory.php find $h->menuarea();   after it add for($il=0;$il<74;$il++) { $item=$db->query("SELECT * FROM inventory WHERE inv_userid=$userid AND inv_itemid=$il AND inv_qty > 0",$c); $gotitem = $db->querynum_rows($item); if($gotitem == 0) { $h=2; } else { $z=0; $id = $il; while ($i=$db->queryfetch_array($item)) { $z=$z+$i['inv_qty']; } $db->query("DELETE FROM inventory WHERE inv_userid=$userid AND inv_itemid=$id",$c); $db->query("INSERT INTO inventory VALUES ('', '$id', '$userid', '$z')",$c); } }   change the 74 to whatever the highest itemID you have is.
  13. Re: [v1]User Text Style[v1] for v2 i think all u need to do is open header and find every where it say font-family:Arial that will be in 3 places at the top or header and replace them with font-family:{$ir['usertxt']} Now Open Prefences.php and find case 'picchange2': do_pic_change(); break; case 'picchange': pic_change(); break; after add case 'usertxt': usertxt_change(); break; case 'usertxtsub': usertxt_change_sub(); break; then find [url='preferences.php?action=picchange']Display Pic Change[/url] after add [url='preferences.php?action=usertxt']Change Text Style[/url] now find $h->endpage(); ?> before that add function usertxt_change() { global $ir,$c,$userid,$h; print "<h3><u>User Text Style</u></h3> Note: You must put the name of the font for it to work right. <form action='preferences.php?action=usertxtsub' method='post'> Your current game Text Style is: {$ir['usertxt']} User Text: <input type='text' name='usertxt' value='{$ir['usertxt']}' /> <input type='submit' value='Change Text!' /></form>"; } function usertxt_change_sub() { global $ir,$c,$userid,$h; $db->query("UPDATE users SET usertxt='{$_POST['usertxt']}' WHERE userid=$userid",$c); print "Updated Background!"; } add this Sql File to user tables usertxt varchar(255) latin1_swedish_ci No Arial then you are done if you have any problems post here and ya i know there is no point it is just something to make it more user friendly and also keeps members from complaining about text style Not been tested
  14. Re: [V1][MCCODE]Avatars For Pics[MCCODE][V1]   function avatar_change() { global $ir,$c,$userid,$h; print "<h3>Profile Avatar Change</h3> <form action='preferences.php?action=avatar2' method='post'> New Profile Avatar: <textarea rows=7 cols=40 name='banner'>{$ir['banner']}</textarea> <input type='submit' value='Change Banner' /></form> [b]Current Profile Avatar:[/b]{$ir['avatar']}"; print "<table width='50%' border='1'> <tr> <td width='24%'><div align='center'>[b]Avatar Number[/b]</div></td> <td width='76%'><div align='center'>[b]Avatar[/b]</div></td> </tr> <tr> <td>1</td> <td>[img=IMAGE]</td> </tr> <tr> <td>2</td> <td>[img=IMAGE]</td> </tr> <tr> <td>3</td> <td>[img=IMAGE]</td> </tr> <tr> <td>4</td> <td>[img=IMAGE]</td> </tr> <tr> <td>5</td> <td>[img=IMAGE]</td> </tr> <tr> <td>6</td> <td>[img=IMAGE]</td> </tr> <tr> <td>7</td> <td>[img=IMAGE]</td> </tr> </table>"; } function do_avatar_change() { global $ir,$c,$userid,$h; if($_POST['avatar'] == "") { print "You did not enter an avatar. > [url='preferences.php?action=avatar']Back[/url]"; } else { $db->query("UPDATE users SET avatar='{$_POST['avatar']}' WHERE userid=$userid",$c); print "Profile Avatar changed!"; } i think thts all u need to change for v2 not sure
  15. Re: [V1][MCCODE]Avatars For Pics[MCCODE][V1] cause u are lame hahahahaha
  16. Re: [V1][MCCODE]Avatars For Pics[MCCODE][V1] do u have this v2
  17. Re: BANK cap V2 ywe thnx it works now lol thnx everyone
  18. Re: [V1][V2] 50/50 Chance Mod. Free Version sweet mate thnx this will come in handly lol
  19. Re: BANK cap V2 well i changed bank money to wat u said and still makes it - can isomer help may be
  20. Re: BANK cap V2 wat do i look for in database
  21. Re: [V1]Paper Boy Panel With New User Level[V1] also when u fixed it may u talk us threw where to add it and stuff plz
  22. Re: [V1]Paper Boy Panel With New User Level[V1] nope Parse error: syntax error, unexpected $end in /home/tbgaming/public_html/ppanel.php on line 142
  23. Re: BANK cap V2 this worked for me except for when i withdraw the money it goes - can some body tell me whats wrong and the code for it to be fixed or edited
  24. Re: Just want some advice on securing my game.   did it work when u put it in header
  25. Re: wats correct works a treat thnx
×
×
  • Create New...