Jump to content
MakeWebGames

[mccode v1] Mccodes V1 Jail


HITMAN 17
 Share

Recommended Posts

Tested and You Dont Need Sql as it should be already in the database

You're unable to view this code.

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

This Has Been Tested And Automatically Updates

Add this code In Mainmenu.php Somewhere

Now Make A File In crons/are/not/4u/jail.php

You're unable to view this code.

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

Now Add this To Crons

curl http://yourgame.com/crons/are/not/4u/jail.php

I will be adding more when i made it so when you fail a crime you go to jail

Link to comment
Share on other sites

Re: [mccode v1] Mccodes V1 Jail

ok here is the edituser part

open up admin.php

find:

You're unable to view this code.

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

replace with:

You're unable to view this code.

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

 

Now find:

You're unable to view this code.

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

replace with:

You're unable to view this code.

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

 

This has been tested and works but please dont forget this is only jail time i have not done jail reason yet

Link to comment
Share on other sites

Re: [mccode v1] Mccodes V1 Jail

here is the docrime.php file where adds you to jail

You're unable to view this code.

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

Now dont for get the sql

ALTER TABLE `users` ADD `jailreason` VARCHAR( 255 ) NOT NULL DEFAULT ''

If you like what i have done thank me

Link to comment
Share on other sites

Re: [mccode v1] Mccodes V1 Jail

 

here is the docrime.php file where adds you to jail

You're unable to view this code.

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

Now dont for get the sql

ALTER TABLE `users` ADD `jailreason` VARCHAR( 255 ) NOT NULL DEFAULT ''

If you like what i have done thank me

I Was Just Wondering if instead off raand it like the one on mccodes v2 can someone do it like that please i might consider paying as well

Link to comment
Share on other sites

  • 4 months later...

Re: [mccode v1] Mccodes V1 Jail

i understand this is topic is a bit old but, its the only one i can find for mccodes v1 jail mod, i have users reporting that they are in jail for a lot longer than what the timer says

ex:

jail timer says 10 minuets

but they reamin in the jailf or hours untill someone bust them out...

here are my files

jail.php

You're unable to view this code.

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

 

crons/are/not/4u/jail.php

You're unable to view this code.

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

 

docrime.php

You're unable to view this code.

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

Link to comment
Share on other sites

Re: [mccode v1] Mccodes V1 Jail

i kept getting

Parse error: syntax error, unexpected T_ELSE in /home/thugmayh/public_html/bust.php on line 132

so i just reversed anything that i had done, here is my bust.php file

 

You're unable to view this code.

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

Link to comment
Share on other sites

Re: [mccode v1] Mccodes V1 Jail

<?php

include (DIRNAME(__FILE__) ."/mysql.php");

include (DIRNAME(__FILE__) ."/../../../../global_func.php");

global $c;

if ($IP != $_SERVER['SERVER_ADDR']) { die('Error'); }

$sql = sprintf("UPDATE users SET jail = jail - 1 WHERE (jail > %u)", 0, $c);

$db->query($sql);

?>

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.

 Share

×
×
  • Create New...