This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Auto Cell Opener


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose       
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-28-2010 , 01:05   Auto Cell Opener
Reply With Quote #1

Auto Cells Opener
v1.6
Wrecked


Table of Contents


Description TOC

This plugin opens the jail cells for terrorists a certain amount of time after the round starts.




CVARS TOC
  • co_timer
    • Time after round start that cells open
    • Default: 45.0
  • co_freeday
    • Give T's a freeday (glowing white, announcement) when cells are opened after time?
    • Default: 1



Admin Commands TOC
  • amx_open
    • Opens the cells manually. Bugs if the command is used within 5 seconds of round start.
    • Requires ADMIN_KICK ("c")



ChangelogTOC
Code:
Changelog:

1.0 - Released

1.1 - Config file added with method to get custom maps / button ids

1.2 - Replaced button ID with targetname since ID's aren't static
    * thanks xPaw and joropito for feedback

1.3 - Auto button detector added in
    * big thanks to joropito for the code!

1.4 - Now functions with maps that have more than one cell opener.

1.5 - Manual push task removal 
    * thanks to D.Skript for reporting

1.6 - Multilingual added / commented the code
    * thanks to crazyeffect for doing the ENTIRE ML (sugar cookie?)


Credits TOC
  • joropito
    • Config file idea
    • Fabulous automatic button finding method
    • Feedback
  • xPaw
    • Reasoning on not using button ID's
    • Code optimization
  • D.Skript
    • Reporting manual button push error
  • crazyeffect
    • Adding in ML


Translations TOC
  • English
    • Me
  • Dutch
    • crazyeffect
  • Spanish
    • ironmaiden
    • Nahuz
  • Modern Swedish
    • kanatzu
  • German
    • SeToY
  • Bulgarian
    • muxaxa
  • Brazilian Portuguese
    • Seta00
  • Romanian
    • Glist3er
  • Lithuanian
    • Kukulis :*

Translations Thread


Notes TOC
  • If you REALLY want to use the old version with a config file and target id's, you can download old_versions and read the readme.txt.
  • The buttons for some1s_jailbreak don't work unless you have the map fix. I learned that one the hard way...
Attached Files
File Type: zip some1s_jailbreak.zip (1.76 MB, 753 views)
File Type: zip old_versions.zip (2.2 KB, 566 views)
File Type: txt autocellopener.txt (1.4 KB, 1108 views)
File Type: sma Get Plugin or Get Source (autocellopener.sma - 2665 views - 5.8 KB)
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT

Last edited by wrecked_; 04-12-2010 at 14:54. Reason: fixed semicolons
wrecked_ is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 03-28-2010 , 01:17   Re: Auto Jail Cell Opener
Reply With Quote #2

Why not to make a config file to add maps, targets and ids?
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-28-2010 , 01:19   Re: Auto Jail Cell Opener
Reply With Quote #3

I'll get right on that. Good suggestion.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 03-28-2010 , 01:38   Re: Auto Jail Cell Opener
Reply With Quote #4

Quote:
Originally Posted by wrecked_ View Post
I'll get right on that. Good suggestion.
I have this in mind because I'm adding features to my jailbreak manager and this one it's on roadmap.

The problem is that there's no JB standards for maps so it's hard to find the right button automatically.
It's possible, but hard.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-28-2010 , 01:51   Re: Auto Jail Cell Opener
Reply With Quote #5

Yes, if you find that method, I'll be sure to implement it in this plugin instead of the file. But for now, the button ID finder has been uploaded and I will upload the updated SMA with file read once I test it (and find a map to test it with...).

EDIT: Plugin updated with explanation of config file and method to add maps.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT

Last edited by wrecked_; 03-28-2010 at 02:09.
wrecked_ is offline
shuttle_wave
Veteran Member
Join Date: Apr 2009
Location: New Zealand
Old 03-28-2010 , 02:12   Re: Auto Jail Cell Opener
Reply With Quote #6

Kool nice plugin.
__________________
JailBreak Mod with Plugin API ( 90% ) Public
shuttle_wave is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 03-28-2010 , 02:17   Re: Auto Jail Cell Opener
Reply With Quote #7

Quote:
Originally Posted by wrecked_ View Post
Yes, if you find that method, I'll be sure to implement it in this plugin instead of the file. But for now, the button ID finder has been uploaded and I will upload the updated SMA with file read once I test it (and find a map to test it with...).
Here's my method (I need to make some tests)
- find one entity info_player_deathmatch (TT spawn point)
- find func_door in sphere (from previous TT spawn point found)
- check if that door is a target of any func_button
- that's the button!

Of course you can get errors and you can get situations when you can't find the button, but it's an approach.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-28-2010 , 02:19   Re: Auto Jail Cell Opener
Reply With Quote #8

Quote:
Originally Posted by joropito View Post
Here's my method (I need to make some tests)
- find one entity info_player_deathmatch (TT spawn point)
- find func_door in sphere (from previous TT spawn point found)
- check if that door is a target of any func_button
- that's the button!

Of course you can get errors and you can get situations when you can't find the button, but it's an approach.
Never would've thought of that. I'll test that and get back to you if I find anything useful.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 03-28-2010 , 03:25   Re: Auto Jail Cell Opener
Reply With Quote #9

never use entity id's, because it is never static
__________________
xPaw is offline
Old 03-28-2010, 06:35
fezh
This message has been deleted by fezh. Reason: nvm
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-28-2010 , 08:04   Re: Auto Jail Cell Opener
Reply With Quote #10

nice one wrecked_
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
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 18:53.


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