Kaotic
Members-
Posts
58 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Kaotic
-
Re: [Request]Business Mod Well unless that very secure coder is from here on CE and has this mod running then maybe i would buy... But im not going to pay $300 for a script that I havn't seen run and don't know who it's from... So some information on it would be nice.. If there isn't one Im willling to pay somebody to code a nice one up for me.. Price will be negotialable
-
Not sure if this is where this goes but couldn't find anywhere else it might.. So here it goes: Looking for a business mod that is like TC's business' Willing to pay good money($50-100) depending on many circumstances It doesn't need to be exactly like TC's but with that concept
-
Re: [mccodes v2] Tournement PvP [$10.00] Screenshot please.... By the looks of it it seems like this is a rip off of Cronus's Attack Ladder System
-
Re: can someone convert this to v2 on index.php find $exp=(int)($ir['exp']/$ir['exp_needed']*100); after add if ( !$ir['married'] ) { $marital="<font color='red'>No</font>"; } else { $k=$db->query("SELECT username FROM users WHERE userid={$ir['married']}", $c); $marital="[url='viewuser.php?u={$ir[']".mysql_result($k,0,0)."[/url] "; $marital.="[[url='partner.php']Manage[/url]]"; $mair=$db->query("SELECT u.*, h.* FROM users u LEFT JOIN houses h ON h.hWILL=u.maxwill WHERE userid={$ir['married']}",$c); $ms=mysql_fetch_row($mair); } if ($ir['married']>0) { $marr=$db->query("SELECT * FROM users WHERE userid={$ir['married']}",$c); $ma=mysql_fetch_row($marr); if ($ma['willmax']>$ir['maxwill']) { $db->query("UPDATE users SET maxwill={$ma['willmax']} WHERE userid=$userid",$c); } if ($ir['willmax']<$ir['maxwill'] && $ir['maxwill']>$ma['willmax']) { $db->query("UPDATE users SET maxwill=willmax WHERE userid=$userid",$c); } } if ($ir['maxwill']<$ir['willmax']) { $db->query("UPDATE users SET maxwill=willmax WHERE userid=$userid",$c); } if ($ir['married']==0 && $ir['maxwill']>$ir['willmax']) { $db->query("UPDATE users SET maxwill=willmax WHERE userid=$userid",$c); } Not tested but it should work
-
Re: [MCcodes V2] Gang Bomb [$15.00] nice looking mod.. Might have to buy this
-
Re: BBCode_Engine
-
Re: No crime XP i have it set... even when i put it up to 5000 still not getting XP...
-
Im using V2 mccodes and for some reason I can't gain XP from crimes anymore. I have searched the forums up and down and have found nothing. Any help with this?
-
Re: 4 year old smoker Ummm i stop now... Thanks for the encouragment guys
-
[v2]Newspaper - I carnt Post ads [v2]
Kaotic replied to i need mccodes's topic in General Discussion
Re: [v2]Newspaper - I carnt Post ads [v2] Mail me carlg and ill see what i can do... also fix all the if($r['user_level'] != 1) fuctions where they are needed.. i just realized it had a few that didn't need to be there.... Hope everybody enjoys -
[v2]Newspaper - I carnt Post ads [v2]
Kaotic replied to i need mccodes's topic in General Discussion
Re: [v2]Newspaper - I carnt Post ads [v2] go ahead and use it... thats why i posted it... but thats the only one of his free mods he made that i will give out... he said one ad you guys got it ---------------------------Edit:------------------------------ just one little problem i forgot 2 fix on there.... Find: if($r['user_level'] != 1) Replace with: if($r['user_level'] != 2) It should be easy to find.... but if u don't fix users will be able 2 delete the posts there and it would suck -
[v2]Newspaper - I carnt Post ads [v2]
Kaotic replied to i need mccodes's topic in General Discussion
Re: [v2]Newspaper - I carnt Post ads [v2] a -
Re: Which Programming Language are You?
-
Re: How much is your site worth my free hosting Your site is valued at: $7,385 my paid hosting with .com domain Your site is valued at: $78 Now thats funny
-
Re: View pages while in jail or hosp I don't understand what 2 change. When i think i have it i get mainmenu problems
-
Re: [Free] [v1] Monkey Slaves +1 again to UCC-Got it running now and it works fine. thanks for the help.... The name of my game is Thugs Life. I modified it from monkeys to Street Soldiers... Im sure you will come up with something good
-
Re: [Free] [v1] Monkey Slaves I added DB's but this is what is says when i try and run the mod: No database selected
-
Re: [Free] [v1] Monkey Slaves Thanks UCC +1 for the help but still getting DB problems
-
Re: [Free] [v1] Monkey Slaves can anybody convert that to v2 please? and also any chance anybody could explain how to convert v1 into v2? +1 to whoever can do that and if both then +2
-
Re: Drug Place new problem that i don't understand no matter how hard i try. QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'money=money-5000 WHERE userid=1' at line 1 Query was UPDATE users SET brave=brave+7 money=money-5000 WHERE userid=1
-
Re: Drug Place Like I said im a noob.... Thanks for the V2 Savager
-
Re: Drug Place This is a noob question and ill probly get flammed for it but can somebody convert this to v2? If it is it brings up something about wrong database selected
-
Re: FREE SERVER THAT WORKS WITH MCCODES Lol.... Ive been using it for like a month now and i love it...
-
Re: FREE SERVER THAT WORKS WITH MCCODES http://www.x10hosting.com They are great. Big selection on what free servers u want. comes with cpanel. Unlimited crons(just can't run every min so your min crons will have to be ran every other min). Up to 45gb bandwidth and 2.5GB of disk space
-
Fatal error: Call to a member function query() on a non-object in /home/kaotic/public_html/global_func.php on line 325 Here is my global_func.php <?php function money_formatter($muny,$symb='$') { return $symb.number_format($muny); } function itemtype_dropdown($connection,$ddname="item_type",$selected=-1) { global $db; $ret=""; $q=$db->query("SELECT * FROM itemtypes ORDER BY itmtypename ASC"); if($selected == -1) { $first=0; } else { $first=1; } while($r=$db->fetch_row($q)) { $ret.="\nif ($selected == $r['itmtypeid'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.=">{$r['itmtypename']}"; } $ret.="\n"; return $ret; } function item_dropdown($connection,$ddname="item",$selected=-1) { global $db; $ret=""; $q=$db->query("SELECT * FROM items ORDER BY itmname ASC"); if($selected == -1) { $first=0; } else { $first=1; } while($r=$db->fetch_row($q)) { $ret.="\nif ($selected == $r['itmid'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.=">{$r['itmname']}"; } $ret.="\n"; return $ret; } function item2_dropdown($connection,$ddname="item",$selected=-1) { global $db; $ret=""; $q=$db->query("SELECT * FROM items ORDER BY itmname ASC"); if($selected < 1) { $ret.="-- None --"; } else { $ret.="-- None --"; } while($r=$db->fetch_row($q)) { $ret.="\nif ($selected == $r['itmid']) { $ret.=" selected='selected'";$first=1; } $ret.=">{$r['itmname']}"; } $ret.="\n"; return $ret; } function location_dropdown($connection,$ddname="location",$selected=-1) { global $db; $ret=""; $q=$db->query("SELECT * FROM cities ORDER BY cityname ASC"); if($selected == -1) { $first=0; } else { $first=1; } while($r=$db->fetch_row($q)) { $ret.="\nif ($selected == $r['cityid'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.= ">{$r['cityname']}"; } $ret.="\n"; return $ret; } function shop_dropdown($connection,$ddname="shop",$selected=-1) { global $db; $ret=""; $q=$db->query("SELECT * FROM shops ORDER BY shopNAME ASC"); if($selected == -1) { $first=0; } else { $first=1; } while($r=$db->fetch_row($q)) { $ret.="\nif ($selected == $r['shopID'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.= ">{$r['shopNAME']}"; } $ret.="\n"; return $ret; } function user_dropdown($connection,$ddname="user",$selected=-1) { global $db; $ret=""; $q=$db->query("SELECT * FROM users ORDER BY username ASC"); if($selected == -1) { $first=0; } else { $first=1; } while($r=$db->fetch_row($q)) { $ret.="\nif ($selected == $r['userid'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.= ">{$r['username']}"; } $ret.="\n"; return $ret; } function challengebot_dropdown($connection,$ddname="bot",$selected=-1) { global $db; $ret=""; $q=$db->query("SELECT cb.*,u.* FROM challengebots AS cb LEFT JOIN users AS u ON cb.cb_npcid=u.userid ORDER BY u.username ASC"); if($selected == -1) { $first=0; } else { $first=1; } while($r=$db->fetch_row($q)) { $ret.="\nif ($selected == $r['userid'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.= ">{$r['username']}"; } $ret.="\n"; return $ret; } function fed_user_dropdown($connection,$ddname="user",$selected=-1) { global $db; $ret=""; $q=$db->query("SELECT * FROM users WHERE fedjail=1 ORDER BY username ASC"); if($selected == -1) { $first=0; } else { $first=1; } while($r=$db->fetch_row($q)) { $ret.="\nif ($selected == $r['userid'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.= ">{$r['username']}"; } $ret.="\n"; return $ret; } function mailb_user_dropdown($connection,$ddname="user",$selected=-1) { global $db; $ret=""; $q=$db->query("SELECT * FROM users WHERE mailban > 0 ORDER BY username ASC"); if($selected == -1) { $first=0; } else { $first=1; } while($r=$db->fetch_row($q)) { $ret.="\nif ($selected == $r['userid'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.= ">{$r['username']}"; } $ret.="\n"; return $ret; } function forumb_user_dropdown($connection,$ddname="user",$selected=-1) { global $db; $ret=""; $q=$db->query("SELECT * FROM users WHERE forumban > 0 ORDER BY username ASC"); if($selected == -1) { $first=0; } else { $first=1; } while($r=$db->fetch_row($q)) { $ret.="\nif ($selected == $r['userid'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.= ">{$r['username']}"; } $ret.="\n"; return $ret; } function job_dropdown($connection,$ddname="job",$selected=-1) { global $db; $ret=""; $q=$db->query("SELECT * FROM jobs ORDER BY jNAME ASC"); if($selected == -1) { $first=0; } else { $first=1; } while($r=$db->fetch_row($q)) { $ret.="\nif ($selected == $r['jID'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.=">{$r['jNAME']}"; } $ret.="\n"; return $ret; } function jobrank_dropdown($connection,$ddname="jobrank",$selected=-1) { global $db; $ret=""; $q=$db->query("SELECT jr.*,j.* FROM jobranks jr LEFT JOIN jobs j ON jr.jrJOB=j.jID ORDER BY j.jNAME ASC, jr.jrNAME ASC"); if($selected == -1) { $first=0; } else { $first=1; } while($r=$db->fetch_row($q)) { $ret.="\nif ($selected == $r['jrID'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.=">{$r['jNAME']} - {$r['jrNAME']}"; } $ret.="\n"; return $ret; } function house_dropdown($connection,$ddname="house",$selected=-1) { global $db; $ret=""; $q=$db->query("SELECT * FROM houses ORDER BY hNAME ASC"); if($selected == -1) { $first=0; } else { $first=1; } while($r=$db->fetch_row($q)) { $ret.="\nif ($selected == $r['hID'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.=">{$r['hNAME']}"; } $ret.="\n"; return $ret; } function house2_dropdown($connection,$ddname="house",$selected=-1) { global $db; $ret=""; $q=$db->query("SELECT * FROM houses ORDER BY hNAME ASC"); if($selected == -1) { $first=0; } else { $first=1; } while($r=$db->fetch_row($q)) { $ret.="\nif ($selected == $r['hWILL'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.=">{$r['hNAME']}"; } $ret.="\n"; return $ret; } function course_dropdown($connection,$ddname="course",$selected=-1) { global $db; $ret=""; $q=$db->query("SELECT * FROM courses ORDER BY crNAME ASC"); if($selected == -1) { $first=0; } else { $first=1; } while($r=$db->fetch_row($q)) { $ret.="\nif ($selected == $r['crID'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.=">{$r['crNAME']}"; } $ret.="\n"; return $ret; } function crime_dropdown($connection,$ddname="crime",$selected=-1) { global $db; $ret=""; $q=$db->query("SELECT * FROM crimes ORDER BY crimeNAME ASC"); if($selected == -1) { $first=0; } else { $first=1; } while($r=$db->fetch_row($q)) { $ret.="\nif ($selected == $r['crimeID'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.=">{$r['crimeNAME']}"; } $ret.="\n"; return $ret; } function crimegroup_dropdown($connection,$ddname="crimegroup",$selected=-1) { global $db; $ret=""; $q=$db->query("SELECT * FROM crimegroups ORDER BY cgNAME ASC"); if($selected == -1) { $first=0; } else { $first=1; } while($r=$db->fetch_row($q)) { $ret.="\nif ($selected == $r['cgID'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.=">{$r['cgNAME']}"; } $ret.="\n"; return $ret; } function event_add($userid,$text,$connection=0) { global $db; $text=mysql_escape($text); $db->query("INSERT INTO events VALUES('',$userid,UNIX_TIMESTAMP(),0,'$text')"); $db->query("UPDATE users SET new_events=new_events+1 WHERE userid={$userid}"); return 1; } function mysql_escape($str) { return str_replace("'","''",$str); } function check_level() { global $db; global $ir,$c,$userid; $ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2); if($ir['exp'] >= $ir['exp_needed']) { $expu=$ir['exp']-$ir['exp_needed']; $ir['level']+=1; $ir['exp']=$expu; $ir['energy']+=2; $ir['brave']+=2; $ir['maxenergy']+=2; $ir['maxbrave']+=2; $ir['hp']+=50; $ir['maxhp']+=50; $ir['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2); $db->query("UPDATE users SET level=level+1,exp=$expu,energy=energy+2,brave=brave+2,maxenergy=maxenergy+2,maxbrave=maxbrave+2, hp=hp+50,maxhp=maxhp+50 where userid=$userid"); } } function get_rank($stat, $mykey) { global $db; global $ir,$userid,$c; $q=$db->query("SELECT count(*) FROM userstats us LEFT JOIN users u ON us.userid=u.userid WHERE us.$mykey > $stat AND us.userid != $userid AND u.user_level != 0") ; return $db->fetch_single($q)+1; } function item_add($user, $itemid, $qty, $notid=0) { global $db; if($notid > 0) { $q=$db->query("SELECT * FROM inventory WHERE inv_userid={$user} and inv_itemid={$itemid} AND inv_id != {$notid}"); } else { $q=$db->query("SELECT * FROM inventory WHERE inv_userid={$user} and inv_itemid={$itemid}"); } if($db->num_rows($q) > 0) { $r=$db->fetch_row($q); $db->query("UPDATE inventory SET inv_qty=inv_qty+{$qty} WHERE inv_id={$r['inv_id']}"); } else { $db->query("INSERT INTO inventory (inv_itemid, inv_userid, inv_qty) VALUES ({$itemid}, {$user}, {$qty})"); } } function item_remove($user, $itemid, $qty) { global $db; $q=$db->query("SELECT * FROM inventory WHERE inv_userid={$user} AND inv_itemid={$itemid}"); if($db->num_rows($q) > 0) { $r=$db->fetch_row($q); if($r['inv_qty']>$qty) { $db->query("UPDATE inventory SET inv_qty=inv_qty-{$qty} WHERE inv_id={$r['inv_id']}"); } else { $db->query("DELETE FROM inventory WHERE inv_id={$r['inv_id']}"); } } } function forum_dropdown($connection,$ddname="forum",$selected=-1) { global $db; $ret=""; $q=$db->query("SELECT * FROM forum_forums ORDER BY ff_name ASC"); if($selected == -1) { $first=0; } else { $first=1; } while($r=$db->fetch_row($q)) { $ret.="\nif ($selected == $r['ff_id'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.= ">{$r['ff_name']}"; } $ret.="\n"; return $ret; } function forum2_dropdown($connection,$ddname="forum",$selected=-1) { global $db; $ret=""; $q=$db->query("SELECT * FROM forum_forums WHERE ff_auth != 'gang' ORDER BY ff_name ASC"); if($selected == -1) { $first=0; } else { $first=1; } while($r=$db->fetch_row($q)) { $ret.="\nif ($selected == $r['ff_id'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.= ">{$r['ff_name']}"; } $ret.="\n"; return $ret; } function make_bigint($str, $positive=1) { $str = (string) $str; $ret = ""; for($i=0;$i{ if((ord($str[$i]) > 47 && ord($str[$i]) < 58) or ($str[$i]=="-" && $positive == 0)) { $ret.=$str[$i]; } } if(strlen($ret) == 0) { return "0"; } return $ret; } function stafflog_add($text) { global $db, $ir; $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $text=$db->escape($text); $db->query("INSERT INTO stafflog VALUES(NULL, {$ir['userid']}, unix_timestamp(), '$text', '$IP')"); } ?>