Hatchet Posted September 6, 2006 Posted September 6, 2006 This should work for lite. <?php /* yeah use this under GNU some shit.... free to use or something */ 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(); print " Jail This is where you go when you get caught doing crimes."; print " Name Minutes Reason $q=mysql_query("SELECT * FROM users WHERE jail > 0 ORDER BY jail ASC", $c); while($r=mysql_fetch_array($q)) print " {$r['username']}{$r['jail']} {$r['jailreason']} "; print ""; $h->endpage(); ?> run this mysql query You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. shit looks good to me :burp: if you want to add a simple jail script after failing a crime find in docrime.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and after that add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. thats pretty stupid and basic though Quote
Zaza Posted September 6, 2006 Posted September 6, 2006 [Lite] Jail come on man you make me work SO hard on them then you just post it..... thats really stupid can u please take it off?? :francis: :francis: :francis: :thumbs_up: Quote
Hatchet Posted September 6, 2006 Author Posted September 6, 2006 [Lite] Jail I took my time making it and it isn't really that hard to make.... so I'll post it if I want :) Quote
seanybob Posted September 6, 2006 Posted September 6, 2006 [Lite] Jail lol zahid its very basic anyways, but its good for lite version and gives all those who dont have jails yet a simple one now if u want a real jail...check out my mods lolzers :D Quote
Guest Anonymous Posted September 6, 2006 Posted September 6, 2006 [Lite] Jail Seany has a great mod Quote
Dabomstew Posted September 6, 2006 Posted September 6, 2006 [Lite] Jail Nice contribution. Basic but does job. Quote
sfekt` Posted September 6, 2006 Posted September 6, 2006 [Lite] Jail why not make the jail time based on a rand from the crime brave and so on? Thats how my jail is. Mines a bit more in depth ;) Quote
Astra Posted September 6, 2006 Posted September 6, 2006 [Lite] Jail well it don't work for v1.1 :no: Quote
Astra Posted September 6, 2006 Posted September 6, 2006 [Lite] Jail hmm I get this all the time Parse error: syntax error, unexpected '}' in /home/astravn/public_html/Deadlycity/docrime.php on line 58 this is docrime.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
sfekt` Posted September 6, 2006 Posted September 6, 2006 [Lite] Jail So they're jailed if they fail? That's smart :thumbsdown: Quote
Astra Posted September 6, 2006 Posted September 6, 2006 [Lite] Jail well thats what it says to do. :hmmm: Quote
Hatchet Posted September 6, 2006 Author Posted September 6, 2006 [Lite] Jail It should be You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I left off the ; by accident. sorry. Quote
on_fire Posted September 9, 2006 Posted September 9, 2006 Astra you noob You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. NOT You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Remove }'s at the end of the code if u keeo getting the same error Quote
elessar Posted October 9, 2006 Posted October 9, 2006 [Lite] Jail With some work this can be turned into a decent jail 8) Quote
Guest Anonymous Posted October 14, 2006 Posted October 14, 2006 [Lite] Jail Hello..If you want to give out a jail..give out one with Bust out and Bail out and try to bust out..if i did i would..watch out as i will be adding lots of gear to this forum Quote
canibalstew Posted October 30, 2006 Posted October 30, 2006 jail error please help Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/myhost/public_html/jail.php:2) in /home/myhost/public_html/jail.php on line 7 Quote
Hatchet Posted October 30, 2006 Author Posted October 30, 2006 [Lite] Jail make sure theres no space between <?php and the top line Quote
canibalstew Posted October 31, 2006 Posted October 31, 2006 jail help cont thanx hatchet that fixed it but for some reason even if your in jail you can go anywhere and also the time doesnt go down any idea ohh and i am really lookin for someone to help me with will potion fix so people cant steal them Quote
Hatchet Posted October 31, 2006 Author Posted October 31, 2006 [Lite] Jail make a cron to lower the jail time by 1 min every minute. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. add that to pages you dont want people to access when in jail Quote
canibalstew Posted November 1, 2006 Posted November 1, 2006 thanx alot make a cron to lower the jail time by 1 min every minute. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. add that to pages you dont want people to access when in jail thanx alot Quote
halo2master Posted November 4, 2006 Posted November 4, 2006 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 ; Quote
canibalstew Posted November 4, 2006 Posted November 4, 2006 Re: [Lite] Jail in my sql there should be a tab that says sql click the tab and put the stuff in and go Quote
DesignLoft Posted December 20, 2006 Posted December 20, 2006 Re: [Lite] Jail what would the cron be to lower the jail time by 1 every minute?, as when my users are in jail they stay in jail forever as the time does not go down. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.