Raised This Month: $154 Target: $400
 38% 

JailMod++


Post New Thread Reply   
 
Thread Tools Display Modes
Author
MistaGee
Senior Member
Join Date: Aug 2004
Location: Germany (Fulda)
Plugin ID:
275
Plugin Version:
1.1
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    6 
    Plugin Description:
    Allows to teleport players in a jail, stripping all weapons from them
    Old 02-07-2008 , 17:48   JailMod++
    Reply With Quote #1

    This is a Source port of my AMXX plugin JailMod++. It allows to put people in a jail on the map by stripping all weapons from them and teleporting them to a set of previously stored coordinates.

    For each map, there can be up to five jails. The jail coordinates are configured using an admin menu, allowing to add or edit jails quite easily.


    Commands:
    • jail <player>
      Puts a player in jail.
    • unjail <player>
      Sets a player free.
    • jail_reload
      Reloads the jail database (neccessary if you changed jails via the admin menu.)
    CVars:
    • jail_strip <0|1>
      If 0, Weapons are not stripped from players when they are put in jail (that way, you can re-use jails in surf maps, for example)
    • jail_fill <0|1>
      Changes the way jails are chosen, when a player is to be jailed.
      If 0, a random jail is picked.
      If 1, the first jail which has room left will be used.
    • jail_tkpunish <0|1>
      If 1, team killers will be jailed automatically.
    Requirements:
    This plugin uses a database to store the jail coordinates in, so you need to have a named database config "jailmod" or "default" for this to work. The table will be created automatically.

    Attached, you will find a MySQL and SQLite database containing sample Jail coordinates for CS:Source.


    I'm currently testing on various mods. It was developed with CS:Source, but there isn't any mod-specific code in there as far as I can tell, so it should work on any mod.

    Changes:
    1.1: Bugfix - forgot to call GetClientOfUserId in events, that's why console got spammed with "Array index out of bounds" and TK punish didn't work...



    Have fun,
    Gee
    Attached Files
    File Type: sp Get Plugin or Get Source (jailmod.sp - 2290 views - 18.0 KB)
    File Type: zip jailmod.sq3.zip (1.1 KB, 1237 views)
    File Type: zip jailmod_my.sql.zip (840 Bytes, 957 views)
    __________________
    Ich hab nie behauptet dass ich kein Genie bin!
    Mumble-Django: A web interface for Mumble

    Last edited by MistaGee; 02-15-2008 at 12:31.
    MistaGee is offline
    Send a message via ICQ to MistaGee
    Rebell
    Veteran Member
    Join Date: Nov 2004
    Location: GERMANY
    Old 02-10-2008 , 03:54   Re: JailMod++
    Reply With Quote #2

    Sounds nice - perhap you can add a cvar for mapper that uses teleport_detinations.
    I will try out - cya
    __________________
    Rebell is offline
    Mosalar
    Senior Member
    Join Date: Jul 2004
    Location: Tampa Fl
    Old 02-15-2008 , 11:49   Re: JailMod++
    Reply With Quote #3

    Since no one has done a "llamacage" for sm, I thought this would make a good alternative for out DoDS server. "Get plugin" returns a failed to compile. And trying to compile it here locally returns
    Code:
    //SourceMod Batch Compiler
    // by the SourceMod Dev Team
    
    
    //// jailmod.sp
    // C:\Documents and Settings\Mosalar\Desktop\scripting\jailmod.sp(36) : error 01
    7: undefined symbol "INVALdod"
    //
    // 1 Error.
    //
    // Compilation Time: 0.58 sec
    // ----------------------------------------
    
    Press enter to exit ...
    Any help?
    Mosalar is offline
    MistaGee
    Senior Member
    Join Date: Aug 2004
    Location: Germany (Fulda)
    Old 02-15-2008 , 12:32   Re: JailMod++
    Reply With Quote #4

    I'm not exactly sure how that happened, but I've fixed the problem. The plugin now compiles.
    __________________
    Ich hab nie behauptet dass ich kein Genie bin!
    Mumble-Django: A web interface for Mumble
    MistaGee is offline
    Send a message via ICQ to MistaGee
    symphyle
    Member
    Join Date: Aug 2006
    Old 03-09-2008 , 14:17   Re: JailMod++
    Reply With Quote #5

    Hi MistaGee

    May you explain how to install JailMod++ ? Thank you so much ^^

    What is jailmod.sq3 ?! .sq3 ?! how install that ?

    Symph
    symphyle is offline
    noodleboy347
    SourceMod Donor
    Join Date: Mar 2009
    Old 09-27-2009 , 19:01   Re: JailMod++
    Reply With Quote #6

    I know this is a bit old... but does it still work? And does it work with TF2? Can people kill themselves to get out of the jail?
    noodleboy347 is offline
    toughdog6789
    Junior Member
    Join Date: Jun 2009
    Old 01-20-2010 , 20:33   Re: JailMod++
    Reply With Quote #7

    Quote:
    Originally Posted by noodleboy347 View Post
    I know this is a bit old... but does it still work? And does it work with TF2? Can people kill themselves to get out of the jail?
    lol its noodleboy
    toughdog6789 is offline
    deriggs007
    Senior Member
    Join Date: May 2009
    Location: USA
    Old 04-16-2010 , 01:13   Re: JailMod++
    Reply With Quote #8

    Better instructions on how to set this up would be nice.

    Otherwise it's not worth a download
    deriggs007 is offline
    Send a message via MSN to deriggs007
    Eternal Rebel
    Junior Member
    Join Date: May 2010
    Old 05-25-2010 , 17:59   Re: JailMod++
    Reply With Quote #9

    Where do u put the sq3 and the my.sql files? When I try to use the /jail command it tells me the database is not connected.
    Eternal Rebel is offline
    MistaGee
    Senior Member
    Join Date: Aug 2004
    Location: Germany (Fulda)
    Old 05-26-2010 , 04:24   Re: JailMod++
    Reply With Quote #10

    You have to configure a database in configs/databases.cfg for JailMod to store its jail data in. If you want to use MySQL, you can import a bit of initial data from jailmod_my.sql, and jailmod.sq3 is an SQLite database that contains the same initial data which is ready to use.

    If you want to use the sq3 file, put it under addons/sourcemod/data/sqlite and create a database config as such:

    Code:
    "jailmod"
    {
      "driver"    "sqlite"
      "database"  "jailmod"
    }
    If JailMod does not find a config section named "jailmod", it will try "default" next, so you can just import the jailmod tables in you SourceMod database (if you have any).
    __________________
    Ich hab nie behauptet dass ich kein Genie bin!
    Mumble-Django: A web interface for Mumble
    MistaGee is offline
    Send a message via ICQ to MistaGee
    Reply


    Thread Tools
    Display Modes

    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 02:46.


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