elessar Posted December 21, 2006 Share Posted December 21, 2006 Re: [Lite] Jail mysql_query("UPDATE users SET jail=jail-1 WHERE jail>0",$c); mysql_query("UPDATE users SET jail=0 WHERE jail<0",$c); you can put this in a new cron file or put it in the hospital.php cron file Quote Link to comment Share on other sites More sharing options...
DesignLoft Posted December 21, 2006 Share Posted December 21, 2006 Re: [Lite] Jail Thanks, works a treat! :-D Quote Link to comment Share on other sites More sharing options...
Jake Posted January 4, 2007 Share Posted January 4, 2007 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. Quote Link to comment Share on other sites More sharing options...
twist_killer Posted March 4, 2007 Share Posted March 4, 2007 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 Quote Link to comment Share on other sites More sharing options...
Arson Posted March 5, 2007 Share Posted March 5, 2007 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. Quote Link to comment Share on other sites More sharing options...
Vorlen Posted March 5, 2007 Share Posted March 5, 2007 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!* Quote Link to comment Share on other sites More sharing options...
Jesse60905 Posted June 21, 2007 Share Posted June 21, 2007 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. Quote Link to comment Share on other sites More sharing options...
Jesse60905 Posted June 21, 2007 Share Posted June 21, 2007 Re: [mccode] Jail for Lite Yes it does work. Quote Link to comment Share on other sites More sharing options...
Dave Posted June 30, 2007 Share Posted June 30, 2007 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 :? :? :? :? :? :? :? :? :? :? :? :? :? :? :? Quote Link to comment Share on other sites More sharing options...
Isomerizer Posted June 30, 2007 Share Posted June 30, 2007 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 Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted September 27, 2007 Share Posted September 27, 2007 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 Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted September 29, 2007 Share Posted September 29, 2007 Re: [mccode] Jail for Lite wat do i do for v1 cron Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted September 29, 2007 Share Posted September 29, 2007 Re: [mccode] Jail for Lite nm i did it Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted October 1, 2007 Share Posted October 1, 2007 Re: [mccode] Jail for Lite has anyone got a better jail for v1 and so they cant see pages while in jail Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted October 1, 2007 Share Posted October 1, 2007 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."); } Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted October 1, 2007 Share Posted October 1, 2007 Re: [mccode] Jail for Lite can i have an example plz mate then i will give u +1 Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted October 1, 2007 Share Posted October 1, 2007 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 "; ?> Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted October 2, 2007 Share Posted October 2, 2007 Re: [mccode] Jail for Lite never mind Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted October 4, 2007 Share Posted October 4, 2007 Re: [mccode] Jail for Lite wat about v2 anyone have it if so post here plz Quote Link to comment Share on other sites More sharing options...
Mafia Empire Posted March 30, 2008 Share Posted March 30, 2008 Re: [mccode] Jail for Lite how to add notification on header tried but failed Quote Link to comment Share on other sites More sharing options...
Isomerizer Posted March 30, 2008 Share Posted March 30, 2008 Re: [mccode] Jail for Lite if ($ir['jail'] > 0) { echo '<font color="red" size="5">You are in prison.</font>'; } Quote Link to comment Share on other sites More sharing options...
Mafia Empire Posted March 31, 2008 Share Posted March 31, 2008 Re: [mccode] Jail for Lite thanxs alot m8 in between i might need some more helpp with some small stupid things here and there if i mailed you would that be okay Quote Link to comment Share on other sites More sharing options...
Mafia Empire Posted March 31, 2008 Share Posted March 31, 2008 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 Quote Link to comment Share on other sites More sharing options...
Dave Posted April 1, 2008 Share Posted April 1, 2008 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 Quote Link to comment Share on other sites More sharing options...
Mafia Empire Posted April 1, 2008 Share Posted April 1, 2008 Re: [mccode] Jail for Lite could you help me to add a button after mug then hos then leave Quote Link to comment Share on other sites More sharing options...
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.