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

[ANY] Advanced Voting


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Gachl
BANNED
Join Date: Feb 2009
Plugin ID:
944
Plugin Version:
1.1.4
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    5 
    Plugin Description:
    Provides votes and runs a specific command when the vote ends depending on the result.
    Old 06-23-2009 , 12:09   [ANY] Advanced Voting
    Reply With Quote #1

    Advanced Voting
    Version 1.1.4
    Support level: Bugs only

    Description

    This plugin simply provides votes, but you can add a command for each voting option that's run if the option wins.

    Usage

    CVars
    Quote:
    • sm_avote_version
      The current version of the plugin.
    Commands
    Quote:
    • sm_avote <title> <option1> <command1> ... <option10> <command10>
      ADMFLAG_GENERIC
      Initiate a vote.
    • sm_asvote <title> <option1> <command1> ... <option10> <command10>
      ADMFLAG_BAN
      Initiate a vote. Commands will be executed on the server.
    Tip: You can use /avote or /asvote in chat.

    Example

    Code:
    sm_asvote "Enable something?" "Low grav" "sv_gravity 150" "Madness!" "sm_melee 1" "Something funny" "sm_beacon @all"
    If Low grav wins the vote sv_gravity 150 will be executed, if Madness! wins sm_melee 1 is executed etc.

    Screenshot
    Soon.

    Changelog
    • v1.0.0 2009/06/23 Plugin created.
    • v1.1.0 2009/06/25 Changed commands parameter, added sm_asvote
    • v1.1.2 2009/06/25 Hotfixed sm_avote would run as server command.
    • v1.1.3 2009/07/02 version cvar
    • v1.1.4 2009/07/08 version cvar (notify)
    Please report bugs here, I'll try to fix them as soon as possible.
    Attached Files
    File Type: sp Get Plugin or Get Source (AdvancedVoting.sp - 2159 views - 2.7 KB)

    Last edited by Gachl; 07-08-2009 at 06:20. Reason: New version
    Gachl is offline
     



    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 08:18.


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