Raised This Month: $12 Target: $400
 3% 

[ND] Commander Actions - V1.3


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Player 1
Member
Join Date: Apr 2012
Plugin ID:
3158
Plugin Version:
1.3
Plugin Category:
Admin Commands
Plugin Game:
Nuclear Dawn
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Provides the same functions as 1Swat's 'Commander Management' using keyvalues instead of SQL to save bans.
    Old 08-14-2012 , 20:34   [ND] Commander Actions - V1.3
    Reply With Quote #1

    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.
    Attached Files
    File Type: sp Get Plugin or Get Source (nd_commander_actions.sp - 631 views - 19.9 KB)

    Last edited by Player 1; 11-06-2012 at 19:24. Reason: Update to V1.3
    Player 1 is offline
    Reply


    Thread Tools
    Display Modes

    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 05:34.


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