AlabamaHit
Members-
Posts
1,308 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by AlabamaHit
-
Re: Cron Hour Gang Crimes yes tis works on v2 and No i wont send to in pm There is this super top secert option on this site called SEARCH. I say its super top secert cause no one uses it....Wel no you know... Word of advice if you want to learn. And get any respect. Put some work it yourself
-
Re: Cron Hour Gang Crimes Yes, i have posted it at least 5 times on here. .lol
-
Re: [Mccodes v2] Voting System ($15) My complete Apologizes then. I took that the wrong way. The way i took it was you was downing my level. Again. I'm sorry man, I misunderstood.
-
Re: wont run? make sure your link to global_func.php is right. that will make events work. and your mysql.php as well..
-
Re: [mccode V2]Loan Office $5 Thanks both of you :-D
-
This is a simple mod. Basically what it does is gives the Player 10 times the amount they make each day on their job. Now they do not have to repay this because it is repayed Automatically. If a player takes out a loan they do not get job pay for 10 days. I usually put screen shots up but for something like this. I don't think ya'll really need them. And if your thinking crazy, lol.....No they can not get a loan if they do not have a job. And no they can not get a loan and quit their job, lol...So don't worry about the security of it. Its safe. My IM is - [email protected] My Pay Pal is - [email protected] My email is - [email protected] If you want it just send money to pay pal. If you want it sent to email other than pay pal email you Must email me at [email protected] to let me know. If not I will Send it to your pay pal email. If you feel better getting it though IM thats cool, Just hit me up on IM and we can talk and I will send it that way. No big deal.
-
Re: [Mccodes v2] Voting System ($15) Well this Moron can't read.[quote author=killah -------------------------------------------------------------------------------- I know... I know..... But please man..This don't help me out any.
-
Re: [Mccodes v2] Voting System ($15) Yall take that crap somewhere else this topic is not for that.
-
Re: I need help with estate.php Cool, just keep in mind..the bigger the house the bigger the will needs to be.. If you do not increase the will it will not show the houses. Because the page only shows houses with Will higher than yours.
-
Re: [mccode]Multi alert Never mind...My bad man.. I just now realized what you meant.... ======================= sorry everyone that header code for v1 i posted before i will not work. This is it. header code for v1 $select_multis = mysql_query("SELECT userid, username FROM users WHERE lastip='{$ip}' AND lastip_login='{$ip}'") or die(mysql_error()); if(mysql_num_rows($select_multis) > 1) { session_start(); if($_SESSION['detected_multi'] != 1) { event_add(1,"ID <a href=\"viewuser.php?u=".$ir['userid']."\">".$ir['username']."</a> has another account check it out.",$c); $_SESSION['detected_multi'] = 1; } } Other stuff was right.
-
Re: [mccode]Multi alert I been told this don't work for v1... This should work for v1. Run this SQL alter table users add lastip_login VARCHAR(255) NOT NULL DEFAULT '127.0.0.1'; Now. Open authenticate.php Find header("Location: loggedin.php"); add before that. $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; mysql_query("UPDATE users SET lastip_login='$IP' WHERE userid={$mem['userid']}"); Now use this code instead. $select_multis = mysql_query("SELECT userid, username FROM users WHERE lastip='{$IP}' AND lastip_login='{$IP}'") or die(mysql_error()); if(mysql_num_rows($select_multis) > 1) { session_start(); if($_SESSION['detected_multi'] != 1) { event_add(1,"ID <a href=\"viewuser.php?u=".$ir['userid']."\">".$ir['username']."</a> has another account check it out."); } }
-
Re: I need help with estate.php There is nothing wrong. The page is right. It orders the houses by WILL.. You have the first house at 100. So the page thinks you have the Best house. Because all th other houses are Lower in Will. You need to edit the the other houses. The will has to Increase iwth the houses.
-
Re: I need help with estate.php check the house you made in the database. Make sure you didnt make a typo and make the will very high by adding a 0 at the end or something.
-
Yes I know this has been done. But I made it also so I'm posting it. With this you can add sites without having to go through the hassel of making new files and all that crap. This is done easily in the staff panel now. Screen shots: (On a test site so not to pretty.); http://i153.photobucket.com/albums/s208 ... 110411.png http://i153.photobucket.com/albums/s208 ... 110436.png http://i153.photobucket.com/albums/s208 ... 110711.png http://i153.photobucket.com/albums/s208 ... 110802.png http://i153.photobucket.com/albums/s208 ... 110818.png http://i153.photobucket.com/albums/s208 ... 111119.png http://i153.photobucket.com/albums/s208 ... 111255.png http://i153.photobucket.com/albums/s208 ... 111323.png The price is $15. My IM is [email protected] My Pay pal is [email protected] My email is [email protected] If you want this. 2 ways to go about it. Get a hold of me on IM and we can talk you pay and I send like that. Or. You can send the money to my pay pal. Then SEND me an email with the email address you want it sent to....If I get payment, and You do NOT email me...I will assume that your pay pal is the email you want it sent to...So I will send the mod to the email address on the pay pal. Now that all that is said. I want to say this. Cause I don't want a lot of BS on this topic. If you have made this and selling it. Oh well. Don't come on here trashing me for it. I'm just trying to make some money to. If you don't like the price keep it to yourself. Basically if you don't like this and want to say something bad just get the hell off the topic.
-
Changing Whole Header when in hospital
AlabamaHit replied to illegalife's topic in General Discussion
Re: Changing Whole Header when in hospital This works have tested on local server. In globals.php Find: <?php /*--------------------------------- -- MCCodes 2.0 -- By Dabomstew ---------------------------------*/ session_start(); ob_start(); if(get_magic_quotes_gpc() == 0) { die("Fatal error: MCCode cannot function without MagicQuotes GPC being turned on in PHP.INI."); } require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; include "config.php"; global $_CONFIG; define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; Chanage to this.. <?php /*--------------------------------- -- MCCodes 2.0 -- By Dabomstew ---------------------------------*/ session_start(); ob_start(); if(get_magic_quotes_gpc() == 0) { die("Fatal error: MCCode cannot function without MagicQuotes GPC being turned on in PHP.INI."); } require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; include "config.php"; global $_CONFIG; define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $hospital_check = sprintf("SELECT hospital FROM users WHERE userid = %u",($userid)); $check = mysql_query($hospital_check); $hc = mysql_fetch_array($check); if($hc['hospital'] == 0) { require "header.php"; } else { require "header2.php"; } Tested and working. -
Re: [v1/v2] Redirect Before Login (tested) ok people...this is pointless... header("Location: loggedin.php "); Works perfect in v2......AND you can have more header redirects No conflictions I know for a fact. I use them I have dozens of them. Now for v1 If you add a header redirect on the page.. just add ob_start(); to the top of the page just after session_start....And that allows you to run more than one header redirect again, i know that works....I have used it on a friends game. when helping them. Now need to go changing stuff up. no need for @ in front... http://us3.php.net/header http://us3.php.net/ob_start The reason there is no problem in version 2....look at the globals.php about line 6. I never understand why people make things more complicated than necessary.. This is not ment to offend anyone so please don't take it that way....
-
Re: [mccode]Multi alert i think they mean the 1 event each time they log in....... I guess......cause its obvious by reading that once the event is sent there is a session made so while logged in you will NOT get anymore events...So....I don't know what they mean...
-
Re: Quantify Mod for V2! v2 Does have an auto qualify in it..... why don't people use it...yes if you send items they are not qualified thats cuase you have not FIXED the code.. item_add function does all that for you. YOU have to change it yourself. All places where items are givin change to taht.. If you think thats to much work, your lazy as hell.
-
Changing Whole Header when in hospital
AlabamaHit replied to illegalife's topic in General Discussion
Re: Changing Whole Header when in hospital May try this? Open globals.php find: require "header.php"; change to this... if($ir['hospital']) { require "header2.php"; } else { require "header.php"; } -
Re: [V2] Add item query No Problem :-D
-
Re: Dropdown box. lol not explained good for me, lol I don't understand what you want...Floydian gave you a dropdown option code........ If your pulling it from a table in the database........and you made something different...Wouldn't easiest way for you to learn is Look at the code for the one you just named...Then copy it and make it work for the table that your workin with.? And don't worrry....I suck at explaining to, lol
-
Re: [V2] Add item query ummm.....don't use that.....use item_add.. item_add(userfor,itemid,quanity); Example.....For you item id 99 and 1 of it. item_add($ir['userid'],99,1); Simple.....This auto qualifies the items.
-
Re: [mccode]Multi alert Just to clean it up some for you.. $select_multis = mysql_query("SELECT userid, username FROM users WHERE lastip='{$IP}' AND lastip_login='{$IP}' AND lastip_signup='{$IP}'") or die(mysql_error()); if(mysql_num_rows($select_multis) > 1) { session_start(); if($_SESSION['detected_multi'] != 1) { event_add(1,"ID <a href=\"viewuser.php?u=".$ir['userid']."\">".$ir['username']."</a> has another account check it out."); } }
-
Re: McCodes v2.0.2 attack v2 the file names are wrong...Just look in all of them.
-
Re: edit new user items...Money,crystals its in the register.php