Extended keeper manager plugin, version 0.8
Code:
IMPORTANT!
Requires Engine (AMXX) / VexdUM (AMX) module to run.
COMMANDS:
say /keeper
Kicks bot keeper and makes the player keeper. When the player leaves, a bot is automatically added again
say /unkeeper
If a keeper says this: Makes him outfield player and adds a bot
Otherwise: An unkeeper vote against the current keeper of the team is started
ekm_setkeepers (1|0) (admin only)
Possible values:
0: Only bot keepers
1: Default: /keeper on
2: Only human keepers
ekm_keeper x [y] (admin only)
Makes x join keeper pos for y seconds [optional]
ekm_unkeeper x [y] (admin only)
Makes x join outfield pos for y seconds [optional]
ekm_limit (1|0) (admin only)
Enables (1) or disables(0) keeper limiting to half line
If human keepers are enabled due to a keeper vote and one (or both) net is empty for 30 seconds, bot keepers will automatically be added back.
PLANNED FEATURES:
? More keeper limiting options
KNOWN BUGS:
---
THANKS:
As always, UBER MEGA HUGE THANKS to Lucio.
This plugin wouldn't be here without his help.
And routetwo for creating the great mod of course :)
VERSION HISTORY:
0.1:
- Initial release
0.2:
- Fixed "not enough free slots" bug when sv_visiblemaxplayers was <= 0
- Hopefully fixed ekm_requiredvotes command description
0.3:
- Added keeper limiting
0.3, second revision:
- Fixed bugs, DEBUG now off by default
0.4:
- Internal
0.5:
- Replaced votekeepers by /keeper system
0.6:
- Unkeeper vote should now appear to team only
0.7:
- Fixed "add outfield bots" exploit (reported by PingKing)
0.7b:
- Improved previous fix
0.8:
- Fixed ball removal exploit (reported by Lucio)
INSTALLATION:
Download the XS Library:
http://forums.alliedmods.net/showthread.php?t=7565
Put xs.inc into your include directory.
Download this file:
http://amxmodx.org/forums/download.php?id=3408
If you have AMX, open it and change line 62 from
// #define PLATFORM_AMX 1
to
#define PLATFORM_AMX 1
Then, compile the plugin ( don't forget to copy it to your plugins directory and add it into plugins.ini ;) )
And, don't forget to enable Engine / VexdUM if you don't have enabled it yet.
TESTED ON:
AMXX 1.0
AMX 0.9.9