Jump to content
MakeWebGames

Godfather

Members
  • Posts

    74
  • Joined

  • Last visited

    Never

Everything posted by Godfather

  1. Re: [mccode] Profile Signatures ok i know this is an old thread but i was wondering if anyone knows how to put bbcode in viewuser.php i have the engine just dunno how to put it in :|
  2. Re: [v2]Attack Ban[v2] does anyone have this in V1 im not to good at converting things this complex as file names dont even exist on V1
  3. Re: 3 Word Game decided to have
  4. Re: 3 Word Game a bowl of
  5. Godfather

    No I'S

    Re: No I'S   the old boy walked home to see the dog all tangled up.
  6. Re: 3 Word Game at the dog
  7. Re: [MCcode V1.1] New Search/Locate i love it thanks mate +1
  8. what should mysql.php be if my name is dan my password is dan2 and my database is dan_game these aren't my real things but it would be a great help plus 2 for anyone who can tell me
  9. Re: better hall of fame whats your game and let me take a look
  10. Re: 2nd crystals lol your v2 version of this is wrong lmao and you call yourself a mod converter pfft
  11. Re: better hall of fame no sorry i dont have a game as i stated so no screenshot
  12. ok so say you wanted something else to earn other than crystals like diamonds or whatever you can name it just follow these steps: "ALTER TABLE users ADD `2ndcrystals` bigint(15) NOT NULL DEFAULT 0; if you want to add how many of the 2nd crystals in your header: Open Header: Find Crystals: {$ir['crystals']} Add below Name Here: {$ir['2ndcrystals']}   now for a second crystal tradement center like the crystla temple make a file called crystaltemple2.php and add this into it:   <?php /*----------------------------------------------------- -- 2nd crystal temple -- made by dan(gtagangsta) -- for mccodes v1.1 -----------------------------------------------------*/ session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); 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(); ?>   remember if you change the name of the 2nd crystals you will have to do it for the temple aswell thanks Dan not tested give me your views
  13. this is a little mod for v1 thought you might like it: in halloffame.php find: print "<h3>Hall Of Fame</h3> <table width=75%> <tr> <td>[url='halloffame.php?action=level']LEVEL[/url]</td> <td>[url='halloffame.php?action=money']MONEY[/url]</td> <td>[url='halloffame.php?action=respect']RESPECT[/url]</td> <td>[url='halloffame.php?action=crystals']CRYSTALS[/url]</td> <td>[url='halloffame.php?action=total']TOTAL STATS[/url]</td> </tr> <tr> <td>[url='halloffame.php?action=strength']STRENGTH[/url]</td> <td>[url='halloffame.php?action=agility']AGILITY[/url]</td> <td>[url='halloffame.php?action=guard']GUARD[/url]</td> <td>[url='halloffame.php?action=labour']LABOUR[/url]</td> <td>[url='halloffame.php?action=iq']IQ[/url]</td> </tr> </table>"; switch($_GET['action'])   delete and replace with: print "<h3>Hall Of Fame</h3> [b]showing the best 20 users of these section[/b] to go to the best 100 users [url='halloffame2.php'][b]Click Here[/b][/url] <table width=75%> <tr> <td>[url='halloffame.php?action=level']LEVEL[/url]</td> <td>[url='halloffame.php?action=money']MONEY[/url]</td> <td>[url='halloffame.php?action=respect']RESPECT[/url]</td> <td>[url='halloffame.php?action=crystals']CRYSTALS[/url]</td> <td>[url='halloffame.php?action=total']TOTAL STATS[/url]</td> </tr> <tr> <td>[url='halloffame.php?action=strength']STRENGTH[/url]</td> <td>[url='halloffame.php?action=agility']AGILITY[/url]</td> <td>[url='halloffame.php?action=guard']GUARD[/url]</td> <td>[url='halloffame.php?action=labour']LABOUR[/url]</td> <td>[url='halloffame.php?action=iq']IQ[/url]</td> </tr> </table>"; switch($_GET['action'])   save that file and do the next step: make a file called halloffame2.php <?php /*----------------------------------------------------- --mccode V1.1 --hall of fame 100 users --made by dan (gtagangsta) -----------------------------------------------------*/ session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); print "<h3>Hall Of Fame</h3> [b]showing the 100 best users of these sections:[/b] to go to only top 20 users [url='halloffame.php'][b]click here[/b][/url] <table width=75%> <tr> <td>[url='halloffame.php?action=level']LEVEL[/url]</td> <td>[url='halloffame.php?action=money']MONEY[/url]</td> <td>[url='halloffame.php?action=respect']RESPECT[/url]</td> <td>[url='halloffame.php?action=crystals']CRYSTALS[/url]</td> <td>[url='halloffame.php?action=total']TOTAL STATS[/url]</td> </tr> <tr> <td>[url='halloffame.php?action=strength']STRENGTH[/url]</td> <td>[url='halloffame.php?action=agility']AGILITY[/url]</td> <td>[url='halloffame.php?action=guard']GUARD[/url]</td> <td>[url='halloffame.php?action=labour']LABOUR[/url]</td> <td>[url='halloffame.php?action=iq']IQ[/url]</td> </tr> </table>"; switch($_GET['action']) { case "level": hof_level(); break; case "money": hof_money(); break; case "crystals": hof_crystals(); break; case "respect": hof_respect(); break; case "total": hof_total(); break; case "strength": hof_strength(); break; case "agility": hof_agility(); break; case "guard": hof_guard(); break; case "labour": hof_labour(); break; case "iq": hof_iq(); break; } function hof_level() { global $ir,$c,$userid; print "Showing the 100 users with the highest levels <table width=75%><tr style='background:gray'> <th>Pos</th> <th>User</th> <th>Level</th> </tr>"; $q=mysql_query("SELECT u.*,g.* FROM users u LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 ORDER BY level DESC,userid ASC LIMIT 100", $c); $p=0; while($r=mysql_fetch_array($q)) { $p++; if($r['userid'] == $userid) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> <td>$t{$r['level']}$et</td> </tr>"; } print "</table>"; } function hof_money() { global $ir,$c,$userid; print "Showing the 100 users with the highest amount of money <table width=75%><tr style='background:gray'> <th>Pos</th> <th>User</th> <th>Money</th> </tr>"; $q=mysql_query("SELECT u.*,g.* FROM users u LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 ORDER BY money DESC,userid ASC LIMIT 100", $c); $p=0; while($r=mysql_fetch_array($q)) { $p++; if($r['userid'] == $userid) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> <td>$t\$".money_formatter($r['money'],'')."$et</td> </tr>"; } print "</table>"; } function hof_crystals() { global $ir,$c,$userid; print "Showing the 100 users with the highest amount of crystals <table width=75%><tr style='background:gray'> <th>Pos</th> <th>User</th> <th>Crystals</th> </tr>"; $q=mysql_query("SELECT u.*,g.* FROM users u LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 ORDER BY crystals DESC,userid ASC LIMIT 100", $c); $p=0; while($r=mysql_fetch_array($q)) { $p++; if($r['userid'] == $userid) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> <td>$t".money_formatter($r['crystals'],'')."$et</td> </tr>"; } print "</table>"; } function hof_respect() { global $ir,$c,$userid; print "Showing the 100 gangs with the highest amount of respect <table width=75%><tr style='background:gray'> <th>Pos</th> <th>Gang</th> <th>Respect</th> </tr>"; $q=mysql_query("SELECT * FROM gangs ORDER BY gangRESPECT DESC,gangID ASC LIMIT 100", $c); $p=0; while($r=mysql_fetch_array($q)) { $p++; if($r['gangID'] == $ir['gang']) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangNAME']} [{$r['gangID']}]$et</td> <td>$t".money_formatter($r['gangRESPECT'],'')."$et</td> </tr>"; } print "</table>"; } function hof_total() { global $ir,$c,$userid; print "Showing the 100 users with the highest total stats <table width=75%><tr style='background:gray'> <th>Pos</th> <th>User</th> </tr>"; $q=mysql_query("SELECT u.*,g.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 ORDER BY (us.strength+us.agility+us.guard+us.labour+us.IQ) DESC,u.userid ASC LIMIT 100", $c); $p=0; while($r=mysql_fetch_array($q)) { $p++; if($r['userid'] == $ir['userid']) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> </tr>"; } print "</table>"; } function hof_strength() { global $ir,$c,$userid; print "Showing the 100 users with the highest strength <table width=75%><tr style='background:gray'> <th>Pos</th> <th>User</th> </tr>"; $q=mysql_query("SELECT u.*,g.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 ORDER BY us.strength DESC,u.userid ASC LIMIT 100", $c); $p=0; while($r=mysql_fetch_array($q)) { $p++; if($r['userid'] == $ir['userid']) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> </tr>"; } print "</table>"; } function hof_agility() { global $ir,$c,$userid; print "Showing the 100 users with the highest agility <table width=75%><tr style='background:gray'> <th>Pos</th> <th>User</th> </tr>"; $q=mysql_query("SELECT u.*,g.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 ORDER BY us.agility DESC,u.userid ASC LIMIT 100", $c); $p=0; while($r=mysql_fetch_array($q)) { $p++; if($r['userid'] == $ir['userid']) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> </tr>"; } print "</table>"; } function hof_guard() { global $ir,$c,$userid; print "Showing the 100 users with the highest guard <table width=75%><tr style='background:gray'> <th>Pos</th> <th>User</th> </tr>"; $q=mysql_query("SELECT u.*,g.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 ORDER BY us.guard DESC,u.userid ASC LIMIT 100", $c); $p=0; while($r=mysql_fetch_array($q)) { $p++; if($r['userid'] == $ir['userid']) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> </tr>"; } print "</table>"; } function hof_labour() { global $ir,$c,$userid; print "Showing the 100 users with the highest labour <table width=75%><tr style='background:gray'> <th>Pos</th> <th>User</th> </tr>"; $q=mysql_query("SELECT u.*,g.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 ORDER BY us.labour DESC,u.userid ASC LIMIT 100", $c); $p=0; while($r=mysql_fetch_array($q)) { $p++; if($r['userid'] == $ir['userid']) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> </tr>"; } print "</table>"; } function hof_iq() { global $ir,$c,$userid; print "Showing the 100 users with the highest IQ <table width=75%><tr style='background:gray'> <th>Pos</th> <th>User</th> </tr>"; $q=mysql_query("SELECT u.*,g.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 ORDER BY us.IQ DESC,u.userid ASC LIMIT 100", $c); $p=0; while($r=mysql_fetch_array($q)) { $p++; if($r['userid'] == $ir['userid']) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> </tr>"; } print "</table>"; } $h->endpage(); ?>   please give me your views on it and if you want it in v2 and i can be bothered il make it for you thanks Dan i haven't tested so tell me if it works
  14. Re: [V1][MCCODE]Avatars For Pics[MCCODE][V1] yeah i know im changing domain aswell
  15. Re: [v1]User Text Style[v1] lol iseeyou make the right decision
  16. Re: [V1][MCCODE]Avatars For Pics[MCCODE][V1] course i know lol it aint hard
  17. Re: [Free] [v1] Quests (One Free Quest!) same and it didn't work?
  18. Re: [Free] [v1] Quests (One Free Quest!) i had the same problem :s Cut down on smileys
  19. Re: [V1][MCCODE]Avatars For Pics[MCCODE][V1] or he couldn't be arsed lol
  20. Re: [v1]User Text Style[v1]   lol he'll find a way to fix it :)
  21. Re: delete gang after respect hit 0 well his works so stop critising his work
  22. Re: Proxy Check yeah
  23. Re: FREE Bug Tracker Mod i don't think you can mate sorry
  24. Re: FREE Bug Tracker Mod lol good on him if he gets it sold lol he made money through someone else :evil:
  25. Re: [Free] [v1] User Verification [Captcha] my game got hacked "again" doesn't matter.
×
×
  • Create New...