AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ND] Commander Actions - V1.3 (https://forums.alliedmods.net/showthread.php?t=192858)

Player 1 08-14-2012 20:34

[ND] Commander Actions - V1.3
 
1 Attachment(s)
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 Actions
Ban
[List of players]
[Choose time]
Demote
Consortium
Empire
Set
Consortium
Empire
[List of players]
Unban
[List of banned players]
Future Additions:
  • Possibly translations

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.


All times are GMT -4. The time now is 19:03.

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