Raised This Month: $ Target: $400
 0% 

Jail Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Snaggle
AlliedModders Donor
Join Date: Jul 2010
Location: England
Old 03-08-2011 , 19:23   Jail Plugin
Reply With Quote #1

Could someone create a jail plugin that teleports a player to jail & set's their spawn there until you release them?

I tried JailMod++ but players can free themselves by typing kill in console.

Basic features...
  • !jail NAME Teleports player to a stored set of co-ords (up to 4/5 maybe?)
  • If player dies, it just warps them back to one of the stored co-ords
  • Once an Admin types !free NAME respawns the player back at their normal spawn point


If someone could do that, that would be great.
Snaggle is offline
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 03-08-2011 , 20:44   Re: Jail Plugin
Reply With Quote #2

Considering the JailMod++ does 2/3 of what you're asking for and the rest is an easy change from within that plugin, why not ask MistaGee first to see if he is interested in including this? If not, post back and I'll look into it.
__________________
databomb is offline
Snaggle
AlliedModders Donor
Join Date: Jul 2010
Location: England
Old 03-09-2011 , 02:42   Re: Jail Plugin
Reply With Quote #3

Each time I tried to get on the PM page it just came up as a white screen, also he hasn't been on since August of last year, probably won't come back >_<
Snaggle is offline
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 03-09-2011 , 08:14   Re: Jail Plugin
Reply With Quote #4

You haven't tried posting to his topic. Loads of people have e-mail alerts for their plugins and they'll at least read them.
__________________
databomb is offline
Snaggle
AlliedModders Donor
Join Date: Jul 2010
Location: England
Old 03-13-2011 , 05:31   Re: Jail Plugin
Reply With Quote #5

Me again, no replies
Snaggle is offline
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 03-14-2011 , 20:51   Re: Jail Plugin
Reply With Quote #6

Try this, I made a new cvar called jail_spawn which defaults to 1 so players must be unjailed before they leave. Completely untested other than it compiles correctly.
Attached Files
File Type: sp Get Plugin or Get Source (jailmod-stateful.sp - 458 views - 18.5 KB)
__________________
databomb is offline
Snaggle
AlliedModders Donor
Join Date: Jul 2010
Location: England
Old 03-15-2011 , 21:57   Re: Jail Plugin
Reply With Quote #7

Thanks, but people are still able to just type kill and free themselves. I tried changing your cvar a few times, but nothing worked.

Last edited by Snaggle; 03-15-2011 at 22:02.
Snaggle is offline
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 03-15-2011 , 23:02   Re: Jail Plugin
Reply With Quote #8

Ok. I added a delay between the spawn and jailing but it should have worked last time. If this doesn't work then I'd have to add in some log calls to debug its behavior.
Attached Files
File Type: sp Get Plugin or Get Source (jailmod-stateful.sp - 522 views - 18.7 KB)
__________________
databomb is offline
Snaggle
AlliedModders Donor
Join Date: Jul 2010
Location: England
Old 03-16-2011 , 04:45   Re: Jail Plugin
Reply With Quote #9

Still doesn't appear to be working. It teleports me to jail fine and if I do !unjail, it teleports me back to spawn. But I can still free myself by entering kill or changing class/team etc.
Snaggle is offline
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 03-16-2011 , 09:17   Re: Jail Plugin
Reply With Quote #10

So it never teleports people after they spawn? Or did you really want team-changing, class-changing, suiciding blocked?
__________________
databomb is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode