Jump to content
MakeWebGames

Recommended Posts

Posted

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

Posted

[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:

Posted

[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

Posted

[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.

Posted

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

  • 5 weeks later...
Guest Anonymous
Posted

[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

  • 3 weeks later...
Posted

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

Posted

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

Posted

[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

Posted

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

Posted

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 ;

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...