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 - Promotes a player to commander.
- sm_demotecommander - Demotes a team's commander.
- sm_bancommander - Bans a player from commanding for the specified number of minutes. (0 = permanent ban)
- sm_unbancommander - Remove a commander ban. (By name only works for connected players.)
- sm_listcommanderbans - Prints commander bans in a list format.
Admin Menu Layout:Commander Actions
Ban
[Choose time]
DemoteConsortiumEmpire
SetConsortiumEmpire
[List of players]
Unban[List of banned players]
Future Additions:[list]- Possibly translations
Change Log:
(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. Attached Files
Get Plugin or
Get Source (nd_commander_actions.sp - 18.8 KB)
Get Plugin or
Get Source (nd_commander_actions_lite.sp - 2.0 KB)
Wyświetl pełny artykuł