Jump to content
MakeWebGames

[mccode] Jail for Lite


Hatchet

Recommended Posts

  • 2 weeks later...

Re: [Lite] Jail

Mine's installed on Lite Version, and i dont have a hospital cron. I tried making a new one, Failed. I tried adding it to my cron_fivemins.php page, Failed.

> Help please...i don't know what i should do.

Code works great thanks, i added a formula for the amount of time you spend in jail here it is:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

in the crimes table in database you will need to add the field crimeJAIL and into that enter what message prints when you fail the crime, and are put in jail.

Link to comment
Share on other sites

  • 2 months later...

Re: [Lite] Jail

 

Mine's installed on Lite Version, and i dont have a hospital cron. I tried making a new one, Failed. I tried adding it to my cron_fivemins.php page, Failed.

> Help please...i don't know what i should do.

Code works great thanks, i added a formula for the amount of time you spend in jail here it is:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

in the crimes table in database you will need to add the field crimeJAIL and into that enter what message prints when you fail the crime, and are put in jail.

 

i dont understand what this does

Link to comment
Share on other sites

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

Die in real life On_Fire.

Link to comment
Share on other sites

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

Die in real life On_Fire.

 

*Cheers for Arson!*

Link to comment
Share on other sites

  • 3 months later...

Re: [mccode] Jail for Lite

Ok for everybody that is having trouble with crons use this file.

cron_min.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Then simply add the cron into the cronjobs part of your c-panel with the code ect.

Also I did not make this cron. I used cron_day.php from lite and elessar's crons. I am not 100% sure if it works but I will post if it does shortly.

Link to comment
Share on other sites

  • 2 weeks later...

Re: HELP

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

What do you do with this were do you put it or how do you add it to your MYSQL

:? :? :? :? :? :? :? :? :? :? :? :? :? :? :?

 

go into C panel, then mysql, then phpmyadmin, then select your DB, click SQL and copy and paste that code into the box and run it

Link to comment
Share on other sites

  • 2 months later...

Re: [mccode] Jail for Lite

 

Ok for everybody that is having trouble with crons use this file.

cron_min.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Then simply add the cron into the cronjobs part of your c-panel with the code ect.

Also I did not make this cron. I used cron_day.php from lite and elessar's crons. I am not 100% sure if it works but I will post if it does shortly.

wat about v1 for thew ppl who having trouble

Link to comment
Share on other sites

Guest Anonymous

Re: [mccode] Jail for Lite

u just add this to the top of each page

if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); }

Link to comment
Share on other sites

Guest Anonymous

Re: [mccode] Jail for Lite

<?php

include"globals.php";

if($ir['jail'] or $ir['hospital']) { die("Page Cannot be accessed cause you are in jail or hospital ."); }

print "

your code here

";

?>

Link to comment
Share on other sites

  • 5 months later...

Re: [mccode] Jail for Lite

im not shore how to express this but how about say we add an extr feature to attacking system by say every rand 1.6

attacks a message will apper after finish atack saying ' the police caught you and sent you to jail for xxx minutes for attacking people

how would that be expressed in code :-P noob i know but got to learn somehow

Link to comment
Share on other sites

Re: [mccode] Jail for Lite

That mod would be quite easy to make just do a rand(1,6) and if the rand = 5 say its does a query which shoves them in jail like below

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Im not sure if this works i just made it add it into attack when u win near the Mug Them and that buttons

Link to comment
Share on other sites

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