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

[Dystopia/ANY] Callvote Admin Immunity Enforcement (1-21-2016, v3.0)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
dysemjay
Junior Member
Join Date: Nov 2015
Plugin ID:
4916
Plugin Version:
3.0
Plugin Category:
General Purpose
Plugin Game:
Dystopia
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Enforce SourceMod admin immunity for callvote commands.
    Old 11-23-2015 , 19:28   [Dystopia/ANY] Callvote Admin Immunity Enforcement (1-21-2016, v3.0)
    Reply With Quote #1

    Hello. This will have been my first post on the AlliedModders forum, please correct me on anything that I have done wrong.

    Dystopia has a callvoting system that works separately from SourceMod, so admin immunity is not accounted for when targeting a player with a callvote. It is possible for a regular player to call a vote to kick an admin from their own server, for example. This plugin will block callvote commands that target another player, and reply to the command with an explanation of why it was blocked, if the player has higher SourceMod admin immunity, than the player that sent the command. The plugin currently will affect these specific commands:
    Code:
    callvote kick <name>
    callvote kickid <userid>
    callvote ban <name>
    callvote banid <userid>
    callvote forcespec <userid|name>
    Although this plugin was made specifically to work for Dystopia, I think it should work in any Source game that uses the same commands.

    Changelog:
    Code:
    1-21-2016 (v3.0)
    
    * Now written in SourcePawn Transitional Syntax.
    * Added room for null terminator in string containing vote type.
    
    11-23-2015 (v2.0)
    
    * Added comments, and better formatted for public release.
    Attached Files
    File Type: sp Get Plugin or Get Source (callvoteAdminEnforce3.0.sp - 557 views - 2.0 KB)

    Last edited by dysemjay; 01-21-2016 at 01:29. Reason: Plugin update
    dysemjay is offline
    Reply



    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 07:41.


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