Jump to content
MakeWebGames

[mccode] Jail for Lite


Hatchet
 Share

Recommended Posts

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

Link to comment
Share on other sites

  • 5 weeks later...
Guest Anonymous

[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

Link to comment
Share on other sites

  • 3 weeks later...
  • 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.

 Share

×
×
  • Create New...