You may have noticed that 1Swat2KillThemAll's
Commander Management has been causing server crashes for quite a while now, and it seems to be related to the SQL Database used to save bans. He seems to be inactive on his thread, so I've written my own script to ban players from commanding using Keyvalues. (I didn't copy from his plugin, by the way. This is completely written by me.)
Bans will be stored to an easily readable text file at: addons/sourcemod/commanderbans.txt
Commands:
- sm_setcommander <Name|#UserID> - Promotes a player to commander.
- sm_demotecommander <ct | emp> - Demotes a team's commander.
- sm_bancommander <minutes> <Name|#UserID|SteamID> - Bans a player from commanding for the specified number of minutes. (0 = permanent ban)
- sm_unbancommander <Name|#UserID|SteamID> - Remove a commander ban. (By name only works for connected players.)
- sm_listcommanderbans - Prints commander bans in a list format.
Admin Menu Layout:Commander ActionsBan[List of players][Choose time]
DemoteConsortium
Empire
SetConsortium
Empire[List of players]
Unban[List of banned players]
Future Additions:
Change Log:
(6 November 2012)
*Demote function actually kicks the commander out of the chair
(7 October 2012) V 1.2
*Minor simplifications
*Cleaned up the code to make it much easier to read
(25 August 2012) V 1.1
*Fixed an infinite loop checking for expired time bans.
*Added admin menu in the 'lite' version
(14 August 2012) V 1.0:
**Initial release.
&& I've also included a 'lite' addition of this plugin which only features the 'Set' and 'Demote' functions.