
halo2master
Members-
Posts
39 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by halo2master
-
Re: ReadRules Thanks.
-
Re: ReadRules Yea i see the problem now ";" lol. Thanks.
-
Well this is just something i made very very basic so don't go saying whats the point its here if people want it. Its just to say if you have read the rules or not and if someone brakes a rule you can at least go check in the database if they have even read the rules page then maybe the punishment can be bigger for not taking notice :D SQL: ALTER TABLE `users` ADD `readrules` int(11) NOT NULL default '0' Add in header.php where you want it to show up i added near the donate to your game bit: if($ir['rulesread']<1) { print "You have not read the [url='gamerules.php']game rules[/url] yet. "; } Now go to gamerules.php and add this below "$h->menuarea();" mysql_query("UPDATE users SET rulesread=2 WHERE userid=$userid",$c); So when someone goes onto the rules page it will count it as them reading the rules and the notice at the top of the page will go. This can be used for v1 or v2 anyway i don't want no arguments i just done this because I'm board :-D. enjoy.
-
Re: Count Users Clicks Well im on Kyles side. And i see his point, Its so annoying when you make a modification and spend time (Your own time) making this for free. Then all you get is Uneeded posts and BS. Anyway nice one Kyle :-)
-
Re: [$25] Treasure Map! Iso Speak on MSN tomorow i may buy this.
-
Re: [$20] Hide & Seek Ok will do. Can you go on MSN to talk?
-
Re: [$20] Hide & Seek ?
-
Re: [$20] Hide & Seek Isomerizer. Am i able to purchase this? *HOPES* I have bought a mod before from you.
-
Re: Contact Staff Form [FREE] This is what it should be this works tested on my game. as Jesse60905 did not convert it propaly i think :roll: <?php include "globals.php"; if($_POST['go']) { $to = (int) $_POST['staff']; $_POST['text'] = strip_tags($_POST['text']); $msg = str_replace(array("\n"),array(" "),htmlentities($_POST['text'])); $db->query("INSERT INTO mail VALUES ('',0,$userid,$to,unix_timestamp(),'Staff contact form','$msg')") or die($db->error()); print "Your mail to the selected staff member has been sent. Please allow 24 hours for a response to be returned. Thank You. "; } else { $q=$db->query("SELECT * FROM users WHERE user_level > 1 ORDER BY user_level"); print "[b]Contact Staff[/b] <form action='cstaff.php' method='post'> Staff Member: <select name='staff'>"; while($z=$db->fetch_row($q)) { print "<option value='{$z['userid']}'>{$z['username']}</option>"; } print "</select> Message to staff member: <textarea name='text' rows='7' cols='40'>Send a mail to the selected staff member</textarea> <input type='hidden' name='go' value='true'> <input type='submit' value='Send' /> </form>"; } $h->endpage(); ?>
-
Re: Simple user rating system v2 when people click on give rating + or - it does not give :? any ideas
-
Re: [MCCODE]Revamped login.php[V1] so did mine lol
-
Re: [MCCODE]Revamped login.php[V1] how do i change th :? :?
-
Re: [mccode] View Donators nice one +1
-
[mccode v2] Crystal Reserve Mod FREE VERSION [/mccode v2]
halo2master replied to stryker's topic in Free Modifications
Re: [mccode v2] Crystal Reserve Mod FREE VERSION [/mccode v2] whats the normal cron?? -
Re: [Lite] Hack Users PC i did it looks right i posted it just up there a bit but i didernt change 1 or 2 of these # but i changes all of them bsicly into ;
-
Re: [Lite] Hack Users PC hackpc.php <?php /* ----------------------------------------------------------------------- -- Hack User's Computer -- (C) 2006 Dabomstew ----------------------------------------------------------------------- -- This script is distributed in the hope that -- it will be useful, but WITHOUT A WARRANTY -- OF ANY KIND. ----------------------------------------------------------------------- -- Dabomstew, Criminalexistence.com, and -- everyone else involved with this script do not -- take any liability for damage done to your game -- by the use of this script. ----------------------------------------------------------------------- */ session_start&;40;&;41;; require "global_func.php"; if&;40;$_SESSION&;91;'loggedin'&;93;==0&;41; &;123; header&;40;"Location&;58; login.php"&;41;;exit; &;125; $userid=$_SESSION&;91;'userid'&;93;; require "header.php"; $h = new headers; $h->startheaders&;40;&;41;; include "mysql.php"; global $c; $is=mysql_query&;40;"SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c&;41; or die&;40;mysql_error&;40;&;41;&;41;; $ir=mysql_fetch_array&;40;$is&;41;; check_level&;40;&;41;; $fm=money_formatter&;40;$ir&;91;'money'&;93;&;41;; $lv=date&;40;'F j, Y, g&;58;i a',$ir&;91;'laston'&;93;&;41;; $h->userdata&;40;$ir,$lv,$fm&;41;; $h->menuarea&;40;&;41;; include "hackpc.config.php"; global $db_config; $in = abs&;40;&;40;int&;41; $_GET&;91;'ID'&;93;&;41;; if&;40;!$in&;41; &;123; print "Error - no valid player ID to hack specified."; $h->endpage(&;41;; exit; &;125; $q = mysql_query&;40;"SELECT * FROM `users` WHERE userid = &;123;$in&;125;", $c&;41;; if&;40;!mysql_num_rows&;40;$q)) &;123; print "Error - player ID specified does not exist."; $h->endpage&;40;&;41;; exit; &;125; $r = mysql_fetch_array&;40;$q&;41;; if&;40;in_array&;40;$in, $db_config&;91;'prohibited'&;93;&;41;&;41; &;123; print "Error - this player cannot be hacked."; $h->endpage&;40;); exit; &;125; if&;40;$r&;91;'user_level'&;93; == 0 && $db_config&;91;'nohacknpc'&;93;&;41; &;123; print "Error - NPCs cannot be hacked."; $h->endpage&;40;&;41;; exit; &;125; if&;40;$in == $userid&;41; &;123; print "Error - you cannot hack yourself!"; $h->endpage&;40;&;41;; exit; &;125; if&;40;$r&;91;'fedjail'&;93;&;41; &;123; print "Error - people in fedjail cannot be hacked"; $h->endpage&;40;&;41;; exit; &;125; if&;40;$ir&;91;'brave'&;93; < $db_config&;91;'bravecost'&;93;&;41; &;123; print "Error - you need &;123;$db_config&;91;'bravecost'&;93;&;125; Brave to hack someone's PC."; $h->endpage&;40;&;41;; exit; &;125; $rsf = rand&;40;1,100); $exga = rand&;40;$db_config&;91;'minexp'&;93;,$db_config&;91;'maxexp'&;93;&;41;; if&;40;$rsf <= $db_config&;91;'chance'&;93;&;41; &;123; mysql_query&;40;"UPDATE users SET exp=exp+&;123;$exga&;125;, brave=brave-&;123;$db_config&;91;'bravecost'&;93;&;125; WHERE userid=&;123;$userid&;125;", $c&;41;; $stole=&;40;int&;41; &;40;rand&;40;$r&;91;'money'&;93;/500,$r&;91;'money'&;93;/200&;41;&;41;; if &;40;$stole<0&;41; &;123;$stole=0;&;125; if &;40;$stole>0&;41; &;123; mysql_query&;40;"UPDATE users SET money=money+&;123;$stole&;125; WHERE userid=&;123;$userid&;125;", $c&;41;; mysql_query&;40;"UPDATE users SET money=money-&;123;$stole&;125; WHERE userid=&;123;$in&;125;", $c&;41;; &;125; event_add&;40;$in, "[url='viewuser.php?u=$userid']&;123;$ir&;91;'username'&;93;&;125;[/url] hacked your computer and stole \$$stole! Click [url='hackpc.php?ID=&;123;$userid}']here[/url] to try to take your revenge!", $c&;41;; print "You succesfully hacked &;123;$r&;91;'username'&;93;&;125; and stole \$$stole."; &;125; else &;123; mysql_query&;40;"UPDATE users SET brave=brave-&;123;$db_config&;91;'bravecost'&;93;&;125; WHERE userid=&;123;$userid&;125;", $c&;41;; event_add&;40;$in, "[url='viewuser.php?u=$userid']&;123;$ir&;91;'username'&;93;&;125;[/url] attempted to hack your computer but was stopped by your firewall.", $c&;41;; print "Unfortunately, &;123;$r&;91;'username'&;93;&;125;'s firewall was too good for you to hack past."; &;125; $h->endpage&;40;&;41;; ?> takes long time putting them in lol dont no if its right but i add second bit when done hackpc.confiq.php <?php /* ----------------------------------------------------------------------- -- Hack User's Computer : Config File -- (C) 2006 Dabomstew ----------------------------------------------------------------------- -- This script is distributed in the hope that -- it will be useful, but WITHOUT A WARRANTY -- OF ANY KIND. ----------------------------------------------------------------------- -- Dabomstew, Criminalexistence.com, and -- everyone else involved with this script do not -- take any liability for damage done to your game -- by the use of this script. ----------------------------------------------------------------------- */ $db_config = array &;40; 'prohibited' => array&;40;&;41;, //Add player IDs to this array who you want to be protected from hacking. 'nohacknpc' => TRUE, //Set this to true to block NPC's from being hacked. 'bravecost' => 5, //Set this to the amount of brave you want hacking a PC to cost. 'minexp' => 10, //Set this to the minimum EXP &;40;figure, not %age&;41; that you want a user to gain from a successful hack. 'maxexp' => 2000, //Set this to the maximum EXP &;40;figure, not %age&;41; that you want a user to gain from a successful hack. 'chance' => 30, //Set this to the % chance of a successful hack. Must be a positive integer >= 1. &;41;; ?> does that look right?
-
Re: [Lite] Hack Users PC im getting the same Parse error: syntax error, unexpected '&', expecting '(' in /home/www/doomcity.awardspace.com/hackpc.php on line 19
-
Re: [Lite] Jail i dont understand where to put this?? lol im new to all this lol run this mysql query Code: ALTER TABLE `users` ADD `jail` INT( 11 ) NOT NULL , ADD `jailreason` VARCHAR( 255 ) NOT NULL ;