Raised This Month: $32 Target: $400
 8% 

Admin Custom Votes


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Tylerst
Veteran Member
Join Date: Oct 2010
Plugin ID:
2663
Plugin Version:
1.0.0
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    12 
    Plugin Description:
    Create a custom vote and execute the result
    Old 11-17-2011 , 02:06   Admin Custom Votes
    Reply With Quote #1

    Admin Custom Votes(1.0.0)
    Description: Create a custom vote and execute the result.

    Cvars(default values shown):
    sm_acvote_version "1.0.0"
    sm_acvote_log "1" - Enable/Disable(1/0) Logging custom admin votes


    Commands:
    sm_acvote "command" "title" "choice1" "choice1title" "choice2" "choice2title" "choice3" "choice3title" "choice4" "choice4title" "choice5" "choice5title" - Default Vote Flag(k)
    --You must have at least the command, title, choice1, choice1title, choice2, and choice2title to create a vote
    Note: The command is executed on the admin who created the vote, so if the admin doesn't have access to the command it won't work.



    Examples:
    sm_acvote "sm_cvar mp_disable_respawn_times" "Disable Respawn Time" 1 Yes 2 No

    sm_acvote "sm_cvar sv_gravity" "Set gravity to?" 800 Normal 400 Half 1600 Double 0 None

    And just for sport : sm_acvote "sm_kick" "Give a cool present to everyone!" "@!me Suprise! How do you like the cool present?" Yes "" No




    Changelog:
    Code:
    Version 1.0.0 - November 17, 2011
    * Initial Release
    Attached Files
    File Type: sp Get Plugin or Get Source (Admin Custom Votes.sp - 1901 views - 3.6 KB)

    Last edited by Tylerst; 11-17-2011 at 02:46.
    Tylerst is offline
    htcarnage
    Senior Member
    Join Date: Oct 2009
    Old 11-14-2012 , 13:12   Re: Admin Custom Votes
    Reply With Quote #2

    is it possible to integrate a vote into the admin menu so admins can set up only a predetermined list of votes?
    htcarnage 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 05:44.


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