Jump to content
MakeWebGames

Halo

Members
  • Posts

    395
  • Joined

  • Last visited

    Never

Everything posted by Halo

  1. Re: FREE SERVER THAT WORKS WITH MCCODES   X10Hosting don't allow EVAL() Configuration, so if you are using Mccodes v2 then you won't be able to do crimes
  2. Re: [v2]Staff Action: Full User Details[v2] Ok, i'm currently updating this mod
  3. Halo

    Favorite TV shows

    Re: Favorite TV shows My Best 5 (Ranked In Ascending Order)   The Simpson's Heroes NCIS CSI Miami My Family   ...These are only a few...
  4. Re: [v2]Staff Action: Full User Details[v2]   True but i would like it to be open to all staff, accept IRC MOD
  5. Re: 2nd crystals What really is the point of 2nd crystals?
  6. Re: online/offline/total users Nice one Tonka
  7. Halo

    No I'S

    Re: No I'S Man-U Are The Best Football Team Ever
  8. Re: Count Backwards :D 4980
  9. Re: What game engine is... Looks like it wasn't too hard to recode from Mccodes, mail and events run on the same queries
  10. Re: [v2]Staff Action: Full User Details[v2]   To make this only for Admin, put this: In viewuser.php find:   [[url='mailban.php?userid={$r[']MailBan[/url]]";   Replace With:   [[url='mailban.php?userid={$r[']MailBan[/url]] "; if ($ir['user_level']== 2) { print"[[url='details.php?u={$r[']User Details[/url]]"; }
  11. Re: [v2]Assassin.php[v2] I never had time to test it so i couldn't check if it had any errors
  12. Create A File Called Assassin.php with:   <?php require "globals.php"; $q=$db->query("SELECT * FROM users WHERE userid={$_GET['ID']}",$c); $r=mysql_fetch_array($q); if($_GET['ID'] && $_GET['PAID']) { $cost=$r['level']*2500; if($_GET['ID']==$userid) { die("What Is The Point Of Assasinating Yourself?"); } if($_GET['PAID']!=$cost) { die("Bug Abusers Are Desperate"); } if($_GET['PAID']>$ir['money']) { die("Sorry, But You Cannot Afford An Assassin Right Now [url='index.php']Back[/url]"); } if($ir['brave']<5) {<?php require "globals.php"; $q=$db->query("SELECT * FROM users WHERE userid={$_GET['ID']}",$c); $r=mysql_fetch_array($q); if($_GET['ID'] && $_GET['PAID']) { $cost=$r['level']*2500; if($_GET['ID']==$userid) { die("What Is The Point OF Assasinating Yourself?"); } if($_GET['PAID']!=$cost) { die("Bug Abusers Are Desperate"); } if($_GET['PAID']>$ir['money']) { die("Sorry, But You Cannot Afford An Assassin Right Now [url='index.php']Back[/url]"); } if($ir['brave']<5) { die("You don't have enough brave to do this."); } $chance=(int)(rand(86,100)); $hospital=(int)(rand(125,300)); if($chance<41) { $db->query("UPDATE users SET hospital=$hospital,hospreason='Got Assassinated' WHERE userid={$_GET['ID']}",$c); event_add($r['userid'],"You were assassinated and put into the hospital for $hospital minutes.",$c,'general'); $db->query("UPDATE users SET money=money-{$_GET['PAID']},brave=brave-5 WHERE userid=$userid",$c); print "Your Assassin Successfully Assassinated {$r['username'"; } if($chance>40 && $chance<66) { $db->query("UPDATE users SET hospital=$hospital,hospreason='Assassinated by {$ir['username']}.' WHERE userid={$_GET['ID']}",$c); event_add($r['userid'],"You were assassinated by {$ir['username']} and put into the hospital for $hospital minutes.",$c,'general'); $db->query("UPDATE users SET money=money-{$_GET['PAID']},brave=brave-5 WHERE userid=$userid",$c); print ""Your target has been successfully hit, but he blabbed out your name to the target, smack him and fir him. Oh and, you better watch your back"; } if($chance>65 && $chance<86) { $db->query("UPDATE users SET money=money-{$_GET['PAID']},brave=brave-5,hospital=$hospital,hospreason='Failed Assassination.' WHERE userid=$userid",$c); die"Your Assassin Gets Into The Base The Cops Find Him Your Assassin Was Re-Hired By {$r['username'] and He Copps You On The Head"; } if($chance>85) { $newhosp=$hospital-150; $fun=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN gangs g ON g.gangID=u.gang WHERE fedjail=0 ORDER BY RAND() LIMIT 1", $c); while($f=mysql_fetch_array($fun)) { $id=$f['userid']; $db->query("UPDATE users SET hospital=$newhosp,hospreason='Assassinated by {$ir['username']}.' WHERE userid=$id",$c); event_add($id,"You were assassinated by {$ir['username']} and put into the hospital for $hospital minutes.",$c,'general'); $db->query("UPDATE users SET money=money-{$_GET['PAID']},brave=brave-5 WHERE userid=$userid",$c); print "Your Assassin Is A Bit Blind Instead of hitting {$r['username']}, they hit {$f['username']} But They Still Demand Pay"; } } } else if($_GET['ID']) { if($ir['brave']<5) { die("You don't have enough brave to do this yet."); } $cost=$r['level']*2500; print "<center>You Call Up Assassins R Us and Tell Them You Want To Assassinate [b]{$r['username']} They Agree But It Will Cost You $$cost To Assassinate Them Assassinations Aren't Always 100% Successful <form action='assassin.php' method='get'> <input type='hidden' name='ID' value='{$_GET['ID']}' /> <input type='hidden' name='PAID' value='$cost' /> <input type='submit' value='Assassinate {$r['username']}?'/></form>"; } ?> die("You don't have enough brave to do this."); } $chance=(int)(rand(86,100)); $hospital=(int)(rand(125,300)); if($chance<41) { $db->query("UPDATE users SET hospital=$hospital,hospreason='Got Assassinated' WHERE userid={$_GET['ID']}",$c); event_add($r['userid'],"You were assassinated and put into the hospital for $hospital minutes.",$c,'general'); $db->query("UPDATE users SET money=money-{$_GET['PAID']},brave=brave-5 WHERE userid=$userid",$c); print "Your Assassin Successfully Assassinated {$r['username'"; } if($chance>40 && $chance<66) { $db->query("UPDATE users SET hospital=$hospital,hospreason='Assassinated by {$ir['username']}.' WHERE userid={$_GET['ID']}",$c); event_add($r['userid'],"You were assassinated by {$ir['username']} and put into the hospital for $hospital minutes.",$c,'general'); $db->query("UPDATE users SET money=money-{$_GET['PAID']},brave=brave-5 WHERE userid=$userid",$c); print "Your target has been successfully hit {$r['username']}, but he blabbed out that {$ir['username']} paid him to assasinate him, smack him and fire him. Oh and, you better watch your back"; } if($chance>65 && $chance<86) { $db->query("UPDATE users SET money=money-{$_GET['PAID']},brave=brave-5,hospital=$hospital,hospreason='Failed Assassination.' WHERE userid=$userid",$c); print"Your Assassin Gets Into The Base The Cops Find Him Your Assassin Was Re-Hired By {$r['username'] and He Copps You On The Head"; } if($chance>85) { $newhosp=$hospital-150; $fun=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN gangs g ON g.gangID=u.gang WHERE fedjail=0 ORDER BY RAND() LIMIT 1", $c); while($f=mysql_fetch_array($fun)) { $id=$f['userid']; $db->query("UPDATE users SET hospital=$newhosp,hospreason='Assassinated by {$ir['username']}.' WHERE userid=$id",$c); event_add($id,"You were assassinated by {$ir['username']} and put into the hospital for $hospital minutes.",$c,'general'); $db->query("UPDATE users SET money=money-{$_GET['PAID']},brave=brave-5 WHERE userid=$userid",$c); print "Your Assassin Is A Bit Blind Instead of hitting {$r['username']}, they hit {$f['username']} But They Still Demand Pay"; } } } else if($_GET['ID']) { if($ir['brave']<5) { die("You don't have enough brave to do this yet."); } $cost=$r['level']*2500; print "<center>You Call Up Assassins R Us and Tell Them You Want To Assassinate [b]{$r['username']} They Agree But It Will Cost You $$cost To Assassinate Them Assassinations Aren't Always 100% Successful <form action='assassin.php' method='get'> <input type='hidden' name='ID' value='{$_GET['ID']}' /> <input type='hidden' name='PAID' value='$cost' /> <input type='submit' value='Assassinate {$r['username']}?'/></form>"; } ?>   Find in viewuser.php [Attack]   Then add [Assassinate]  
  13. Re: [v2]Forum Credits w/ exchange[v2]   Oh yeah, thanks John1 for the fix. :) UPDATED FIRST POST
  14. Halo

    No I'S

    Re: No I'S Need Help PM me *My 5th Try*
  15. Halo

    No I'S

    Simple, everybody has to give 1 sentence (THAT MAKES SENCE!) on every post and it cannot contain any I's (i) *This Post Isn't Included*
  16. Re: Which File Extension are You? That's odd, i always considered myself a .php
  17. Halo

    New game

    Re: New game ^ Is going to walk all the way around the world > Is about to go to sleep *Well Done Tezza`* V Is a pro coder
  18. Re: Counting (nr game) 1842
  19. Re: Count Backwards :D 4981
  20. Re: 3 Word Game a large laga
  21. Re: [v2]Staff Action: Full User Details[v2] Thanks all
  22. Re: Clean up cron   I agree with Spudinski, what if user went on a long relaxing holiday and came back to see their account was deleted lol, not very nice, but a good mod for overcrowded games
  23. This mod basically shows all the details of that user. NOTE: YOU MIGHT HAVE TO ADD OR REMOVE SOME SQL COLUMNS TO THE ONES YOU HAVE UPDATES: Better Gang Info Better Forum Info Clickable Display Pics and Forum Avatars   Create A File Called details.php <?php /* |------------------------------------------------| details.php Free For CE Members Copyright 2008 Ammo |------------------------------------------------| */ include "globals.php"; $_GET['u'] = abs((int) $_GET['u']); if(!$_GET['u']) { print "Invalid use of file"; } else { $wq=$db->query("SELECT * FROM gangwars where warDECLARER={$ir['gang']} or warDECLARED={$ir['gang']}"); $gq=$db->query("SELECT * FROM gangs WHERE gangID={$_GET['ID']}"); $gangdata=$db->fetch_row($gq); $gq=$db->query("SELECT g.*,oc.* FROM gangs g LEFT JOIN orgcrimes oc ON g.gangCRIME=oc.ocID WHERE g.gangID={$ir['gang']}"); $gangdata=$db->fetch_row($gq); $q=$db->query("SELECT u.*,us.*,c.*,h.*,g.*,f.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN cities c ON u.location=c.cityid LEFT JOIN houses h ON u.maxwill=h.hWILL LEFT JOIN gangs g ON g.gangID=u.gang LEFT JOIN fedjail f ON f.fed_userid=u.userid WHERE u.userid={$_GET['u']}"); if($db->num_rows($q) == 0) { print "Sorry, we could not find a user with that ID, check your source."; } else { $r=$db->fetch_row($q); global $db,$ir,$c,$h,$gangdata; if($r['user_level'] == 1) { $userl="Member"; } else if($r['user_level'] == 2) { $userl="Admin"; } else if ($r['user_level'] == 3) { $userl="Secretary"; } else if($r['user_level'] == 0) { $userl="NPC"; } else {$userl="Assistant"; } $lon=($r['laston'] > 0) ?date('F j, Y g:i:s a',$r['laston']) : "Never"; $sup=date('F j, Y g:i:s a',$r['signedup']); $ts=$r['strength']+$r['agility']+$r['guard']+$r['labour']+$r['IQ']; $d=""; if($r['laston'] > 0) { $la=time()-$r['laston']; $unit="seconds"; if($la >= 60) { $la=(int) ($la/60); $unit="minutes"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } $str="$la $unit ago"; } else { $str="--"; } if($r['last_login'] > 0) { $ll=time()-$r['last_login']; $unit2="seconds"; if($ll >= 60) { $ll=(int) ($ll/60); $unit2="minutes"; } if($ll >= 60) { $ll=(int) ($ll/60); $unit2="hours"; if($ll >= 24) { $ll=(int) ($ll/24); $unit2="days"; } } $str2="$ll $unit2 ago"; } else { $str2="--"; } if($r['laston'] >= time()-15*60) { $on="<font color=green>[b]Yes[/b]</font>"; } else { $on="<font color=red>[b]No[/b]</font>"; } $ts=$ir['strength']+$ir['agility']+$ir['guard']+$ir['labour']+$ir['IQ']; $ir['strank']=get_rank($ir['strength'],'strength'); $ir['agirank']=get_rank($ir['agility'],'agility'); $ir['guarank']=get_rank($ir['guard'],'guard'); $ir['labrank']=get_rank($ir['labour'],'labour'); $ir['IQrank']=get_rank($ir['IQ'],'IQ'); $tsrank=get_rank($ts,'strength+agility+guard+labour+IQ'); $ir['strength']=number_format($ir['strength']); $ir['agility']=number_format($ir['agility']); $ir['guard']=number_format($ir['guard']); $ir['labour']=number_format($ir['labour']); $ir['IQ']=number_format($ir['IQ']); $ts=number_format($ts); if ($ir['user_level']== 1) { print" Your Not A Staff Member"; } else { print "<h3>Details For {$r['username']}</h3> <u>General Info</u> Username: {$r['username']} Login Name: {$r['login_name']} User Level: $userl Duties: {$r['duties']} E-Mail Address: {$r['email']} IP Address: <font color=red>{$r['lastip']}</font> Signed Up IP: <font color=green>{$r['lastip_signup']}</font> Login IP: <font color=blue>{$r['lastip_login']}</font> Display Picture URL: {$r['display_pic']} [i]<font color=red>(<a href={$r['display_pic']}>View</a>)[/i]</font> Gender: {$r['gender']} Signed Up: $sup Online: $on Last Active: $lon Last Action: $str Last Login: $str2 Days Old: {$r['daysold']} Property: {$r['hNAME']} Location: {$r['cityname']} Referals: "; $rr=$db->query("SELECT * FROM referals WHERE refREFER={$r['userid']}"); print $db->num_rows($rr); print " Friends: {$r['friend_count']} Enemies: {$r['enemy_count']} <u>Finacial Info</u> Money: \${$r['money']} Crystals: {$r['crystals']} Rubys: {$r['ruby']} Bank Money: \${$r['bankmoney']} Cyber Money: \${$r['cybermoney']} Crystal Bank: {$r['cbank']} Ruby Bank: {$r['rbank']} Marketing Scheme: \${$r['mmarket']} "; if($r['gang']) { print " <u>Gang Info</u> Gang: [url='gangs.php?action=view&ID={$r[']<font color=green>{$r['gangNAME']} ({$r['gangID']})</font>[/url] Gang President ID: <a href=viewuser.php?u={$gangdata['gangPRESIDENT']}>{$gangdata['gangPRESIDENT']}</a> Gang Vice-President ID: <a href=viewuser.php?u={$gangdata['gangVICEPRES']}>{$gangdata['gangVICEPRES']}</a> Gang Wars: <font color=red>".$db->num_rows($wq)." Wars</font> Gang Respect: {$r['gangRESPECT']} Gang Current Crime ID: {$r['gangCRIME']} Gang Current Crime Name: {$gangdata['ocNAME']} Gang Crime Hours Left: {$r['gangCHOURS']} <u>Gang Financial Info</u> Gang Money: {$r['gangMONEY']} Gang Crystals: {$r['gangCRYSTALS']} "; } else { print "<u>Gang Info</u> <font color=red>No Gang</font> "; } print" <u>Forum Info</u> Forum Posts: {$r['posts']} Forum Credits: {$r['fcredits']} Forum Avatar: {$r['forums_avatar']} [i]<font color=red>(<a href={$r['forums_avatar']}>View</a>)[/i]</font> Forum Sig: {$r['forums_signature']} <u>Special Info</u> Donator Days: {$r['donatordays']} Days Left Fed Jail Days: {$r['fed_days']} Fed Reason: {$r['fed_reason']} Mail Ban Days: {$r['mailban']} Mail Ban Reason: {$r['mb_reason']} Forum Ban Days: {$r['forumban']} Forum Ban Reason: {$r['fb_reason']} <u>Weapon Infomation</u> Primary Weapon ID: {$r['equip_primary']} Secondary Weapon ID: {$r['equip_secondary']} Armour ID: {$r['equip_armor']} <u>Jail/Hospital Details</u> Jail Time: {$r['jail']} Jail Reason: {$r['jail_reason']} Hospital Time: {$r['hospital']} Hospital Reason: {$r['hospreason']} <u>Stats Infomation</u> Strength: {$r['strength']} [Ranked: {$ir['strank']}] Agilty: {$r['agility']} [Ranked: {$ir['agirank']}] Gaurd: {$r['guard']} [Ranked: {$ir['guarank']}] Labour: {$r['labour']} [Ranked: {$ir['labrank']}] IQ: {$r['IQ']} [Ranked: {$ir['IQrank']}] Total Stats: {$ts} [Ranked: $tsrank] <u>Performace Stats</u> Energy: {$r['energy']} Brave: {$r['brave']} Will: {$r['will']} Health: {$r['hp']} Max Energy: {$r['maxenergy']} Max Brave: {$r['maxbrave']} Max Will: {$r['maxwill']} Max Health: {$r['maxhp']} EXP: {$r['exp']}% Steps: {$r['turns']} Oxygen: {$r['oxygen']}/100 <u>Actions</u> [url='jailuser.php?userid={$r[']Jail User[/url] [url='mailban.php?userid={$r[']Mail Ban User[/url] [url='staff_users.php?action=edituser']Edit User[/url] [url='staff_users.php?action=deluser']Delete User[/url] "; print "<form action='staffnotes.php' method='post'> Staff Notes: <textarea rows=7 cols=40 name='staffnotes'>{$r['staffnotes']}</textarea> <input type='hidden' name='ID' value='{$_GET['u']}' /> <input type='submit' value='Change' /></form> "; } } } $h->endpage(); ?>   Save details.php In viewuser.php find:   [[url='mailban.php?userid={$r[']MailBan[/url]]";   Replace With:   [[url='mailban.php?userid={$r[']MailBan[/url]] [[url='details.php?u={$r[']User Details[/url]]";   And your done!
  24. Re: What game engine is... Yeah, front page makes you want to sign up, got e-mail validation to prevent lots of users from 1 ip a very good looking game
  25. Re: Page Tutorials [FREE] Works Fine For Me, Nice Mod Killah
×
×
  • Create New...