
master_killa
Members-
Posts
23 -
Joined
-
Last visited
Never
master_killa's Achievements
Newbie (1/14)
0
Reputation
-
Yea Not that hard lmao
-
Yea Cheak ya feilds are right eg jailtime jail ect and make sure u are selecting fro mthe write table lmao it works for me heh
-
Free Jail Features V1.00000000 Relesed! ok heres the final product <?php 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(); global $ir,$c,$userid; if ($ir['hospital'] > 0) die("You cannot bust while you are in hospital. > [url='jail.php']Back[/url]"); if ($r['jail'] > 0) die("You cannot bust while you are in jail > [url='jail.php']Back[/url]"); $qq=mysql_query("SELECT * FROM users WHERE userid={$_GET['ID']}",$c); $r=mysql_fetch_array($qq); $bravecost=5; if ($ir['userid'] == $_GET['ID']) die("You cannot bust yourself out of jail > [url='jail.php']Back[/url]"); if ($ir['brave'] < 1) die("You dont have enough brave to bail this person out of jail > [url='jail.php']Back[/url]"); if ($ir['brave'] = 1) die("You dont have enough brave to bail this person out of jail > [url='jail.php']Back[/url]"); if ($r['jail'] = 0) { die("This User isnt in jail > [url='jail.php']Back[/url]"); } if ($ir['userid'] != $_GET['ID']) if(rand(1,100) <= 20) { $bustexp=(int) rand(1,10); print"You Successfuly busted {$r['username']} out of jail and gained $bustexp% exp"; mysql_query("UPDATE users SET jail=0 WHERE userid={$_GET['ID']}",$c); mysql_query("UPDATE users SET brave=brave-$bravecost WHERE userid=$userid",$c); mysql_query("UPDATE users SET busts=busts+1 WHERE userid=$userid",$c); mysql_query("UPDATE users SET exp=exp+$bustexp WHERE userid=$userid",$c); event_add($r['userid'],"[url='viewuser.php?u=$userid']{$r['username']}[/url] Busted you out of jail.",$c); } else { $jailtime=(int) rand(1,10); print "You where caught trying to bust your mate out of jail And throwen in jail for $jailtime minutes."; mysql_query("UPDATE users SET jail=jail+$jailtime WHERE userid=$userid", $c); mysql_query("UPDATE users SET jailreason='Caught attempting to break [url='viewuser.php?u=$userid']{$r['username']}[/url] out of jail' WHERE userid=$userid", $c); mysql_query("UPDATE users SET brave=brave-$bravecost WHERE userid=$userid",$c); mysql_query("UPDATE users SET timesjailed=timesjailed+1 WHERE userid=$userid",$c); mysql_query("SELECT FROM users WHERE userid=$userid",$c); event_add($r['userid'],"[url='viewuser.php?u=$userid']{$r['username']}[/url] was caught trying to bust you out of jail.",$c); } $h->endpage(); ?>
-
Ok Heres my final producty it includes fixed event notifcations succes rates / fail rates costs ect <?php 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(); global $ir,$c,$userid; if ($ir['hospital'] > 0) die("You cannot bust while you are in hospital. > [url='jail.php']Back[/url]"); if ($r['jail'] > 0) die("You cannot bust while you are in jail > [url='jail.php']Back[/url]"); $qq=mysql_query("SELECT * FROM users WHERE userid={$_GET['ID']}",$c); $r=mysql_fetch_array($qq); $bravecost=5; if ($ir['userid'] == $_GET['ID']) die("You cannot bust yourself out of jail > [url='jail.php']Back[/url]"); if ($ir['brave'] < 1) die("You dont have enough brave to bail this person out of jail > [url='jail.php']Back[/url]"); if ($ir['brave'] = 1) die("You dont have enough brave to bail this person out of jail > [url='jail.php']Back[/url]"); if ($r['jail'] = 0) { die("This User isnt in jail > [url='jail.php']Back[/url]"); } if ($ir['userid'] != $_GET['ID']) if(rand(1,100) <= 20) { $bustexp=(int) rand(1,10); print"You Successfuly busted {$r['username']} out of jail and gained $bustexp% exp"; mysql_query("UPDATE users SET jail=0 WHERE userid={$_GET['ID']}",$c); mysql_query("UPDATE users SET brave=brave-$bravecost WHERE userid=$userid",$c); mysql_query("UPDATE users SET busts=busts+1 WHERE userid=$userid",$c); mysql_query("UPDATE users SET exp=exp+$bustexp WHERE userid=$userid",$c); event_add($r['userid'],"[url='viewuser.php?u=$userid']{$r['username']}[/url] Busted you out of jail.",$c); } else { $jailtime=(int) rand(1,10); print "You where caught trying to bust your mate out of jail And throwen in jail for $jailtime minutes."; mysql_query("UPDATE users SET jail=jail+$jailtime WHERE userid=$userid", $c); mysql_query("UPDATE users SET jailreason='Caught attempting to break [url='viewuser.php?u=$userid']{$r['username']}[/url] out of jail' WHERE userid=$userid", $c); mysql_query("UPDATE users SET brave=brave-$bravecost WHERE userid=$userid",$c); mysql_query("UPDATE users SET timesjailed=timesjailed+1 WHERE userid=$userid",$c); mysql_query("SELECT FROM users WHERE userid=$userid",$c); event_add($r['userid'],"[url='viewuser.php?u=$userid']{$r['username']}[/url] was caught trying to bust you out of jail.",$c); } $h->endpage(); ?>
-
Lmao Ok sorry to blash you up lmao
-
lmao mate u finished calling me a theif for soemthing i made for you and re used lmao if its in the past then i under stand but still u treat me like youve done nothing wrong
-
Lmao yea Iam sorting it out if enyone wants the system they have to do most of the work them selfs lmao
-
Free Loan Shark System ALTER users ADD `loan` int(11) NOT NULL default '0', is a vaild format lmao it works also it dont matter how as long as they get that loan alter working the script will work
-
Ok this is only my draft version but iam posting it for free so.. it might have a few bugs if so post fixes and u guys can do it ya self eg ive desided not to sell it but better yet to give it away for free heres the file and edits required ALTER users ADD `loan` int(11) NOT NULL default '0', loanshark.php <?php 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(); switch($_GET['action']) { case 'borrow': borrow_money_start(); break; case 'borrowed': borrow_money(); break; case 'repay': repay_money_start(); break; case 'repayed': repay_money(); break; case 'invest': invest_money(); break; case 'invested': invested_money(); break; default: loanshark_main(); break; } function loanshark_main() { global $ir,$c,$userid,$h; $maxloan=$ir['level']*50000; echo"Loan Shark You currently have a loan of \${$ir['loan']} The max you can loan is \$$maxloan - [url='loanshark.php?action=borrow']Loan Money[/url] - [url='loanshark.php?action=repay']Repay Loan[/url] - [url='loanshark.php?action=invest']Invest Money[/url] "; } function borrow_money_start() { global $ir,$c,$userid,$h; $maxloan=$ir['level']*50000; echo"The max ammount you can borrow is \$$maxloan You currently have a lone of \${$ir['loan']} Ammount: "; } function borrow_money() { global $ir,$c,$userid,$h; $maxloan=$ir['level']*50000; $loan=$ir['loan']; if ($loan == $maxloan) { die("You have already taken out the max loan possible you must pay it back before you can loan more > [url='loanshark.php?action=repay']Repay[/url]"); } if ($_POST['borrowed'] >= $maxloan) { die("You are trying to loan more then your max lone > [url='loanshark.php?action=borrow']Back[/url]"); } mysql_query("UPDATE users SET loan=loan+{$_POST['borrowed']} WHERE userid=$userid",$c); mysql_query("UPDATE users SET money=money+{$_POST['borrowed']} WHERE userid=$userid",$c); echo"You Borrowed from the loan shark > [url='loanshark.php']Back[/url]"; } function repay_money_start() { global $ir,$c,$userid,$h; echo"You have a lone of \${$ir['loan']} Ammount: "; } function repay_money() { global $ir,$c,$userid,$h; if($ir['loan'] <= 0) { die("You are trying to payback more then u have to > [url='loanshark.php']Back[/url]"); } mysql_query("UPDATE users SET loan=loan-{$_POST['repayed']} WHERE userid=$userid",$c); mysql_query("UPDATE users SET money=money-{$_POST['repayed']} WHERE userid=$userid",$c); echo"You repayed the loan shark > [url='loanshark.php']Back[/url]"; } function invest_money() { global $ir,$c,$userid,$h; echo"Here you can invest money on the spot and watch your money sink or float its simple you state the ammount you wish to invest in the box below and click Invest You have [b]{$ir['investments']}[/b] dayily invest statment's left Ammount: \$ "; } function invested_money() { global $ir,$c,$userid,$h; if ($ir['investments'] < 1) { die("You have used up all your dayily investments > [url='loanshark.php?action=invest']Back[/url]"); } if(rand(1,100) <= 50) { $gainedmoney=(int) rand(1,30); print "[b]Result: You hand over {$_POST['invest']} to the old man at the counter One week later you get a phone call its the old man he explains that your investment has payed off You invested \${$_POST['invest']} and ended up making \$$gainedmoney extra.[/b] You have [b]{$ir['investments']}[/b] dayily invest statment's left > [url='loanshark.php?action=invest']Try Again[/url]"; mysql_query("UPDATE users SET investments=investments-1",$c); mysql_query("UPDATE users SET money=money+$gainedmoney WHERE userid=$userid",$c); } else { if ($ir['investments'] < 1) { die("You have used up all your dayily investments > [url='loanshark.php?action=invest']Back[/url]"); } $lostmoney=(int) rand(1,10); mysql_query("UPDATE users SET money=money-$lostmoney WHERE userid=$userid", $c); echo"[b]Result: You invested \${$_POST['invest']} and lost \$$lostmoney out of your overall investment. One week later you get a phone call its the old man he explains that your investment has failed [/b] You have [b]{$ir['investments']}[/b] dayily invest statment's left > [url='loanshark.php?action=invest']Try Again[/url] "; mysql_query("UPDATE users SET investments=investments-1",$c); } } $h->endpage(); ?> in explore.php add a link to the loan shark [url='loanshark.php']Loan Shark[/url] :bleh: Feel free to give me rep points heh
-
Yea lmao i know heh i umm v2 is out soon it send event notifcatons if a user fails or succeds in busting someone and also u have a random chance of busting someone out eg fail u get jailed succed u get a random amount of exp also it logs how meny total busts you have done ect basic stuff i will sell this for around 10$ USD
-
Hmm I managed to add some if staments ect ill tweek it then post it soon
-
Lmao give u a race :) first one to post a working bug free one gets 2$ haha
-
Hmm kk Ive managed to start working on editing this alot ive made the success rate realistic and made it so that all bugs and stuff are tweeked so u cant bust a user that isnt in jail bust your self ect theres quite a bit of bugs that need to be sorted if u can wait ill have a 100% complete working system up soon
-
KK I got a new version i just made its not very good but its better then the last one it might need some work but heres what i have so far bust.php <?php 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(); $qq=mysql_query("SELECT * FROM users WHERE userid={$_GET['ID']}",$c); $r=mysql_fetch_array($qq); $bravecost=$r['level']*20; if ($ir['userid'] == $_GET['ID']) die("You cannot Bust yourself out of jail!"); $stat=brave; cost=15; if ($ir['$stat'] < $cost) die("You dont have enough $stat to bail this person out of jail"); if ($ir['jail'] = 0) { die("This User isnt in jail"); } if ($ir['userid'] != $_GET['ID']) if(rand(1,100) <= 50) { print"You Successfuly busted {$ir['username']} out of jail"; mysql_query("UPDATE users SET jail=0 WHERE userid={$_GET['ID']}",$c); mysql_query("UPDATE users SET brave=brave-$bravecost WHERE userid=$userid",$c); event_add($r['userid'],"[url='viewuser.php?u=$userid']{$r['username']}[/url] Busted you out of jail.",$c); } else { $jailtime=(int) rand(1,30); print "You were caught attempting to break {$ir['username']} out of jail And throwen in jail for $jailtime."; mysql_query("UPDATE users SET jail=jail+$jailtime WHERE userid=$userid", $c); mysql_query("UPDATE users SET jailreason='Caught attempting to break {$r['username']} out of jail' WHERE userid=$userid", $c); } ?> Damb thats a buggy version iam gonna be working on a bigger more bug free complete system soon
-
yea Fix if ($ir['jail'] == 0) { die("This User isnt in jail"); }