Raised This Month: $ Target: $400
 0% 

[REQ] vote map extend


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fraglt
Junior Member
Join Date: May 2011
Old 08-22-2011 , 13:23   [REQ] vote map extend
Reply With Quote #1

Hello people, I will start by saying that I use the server default plugins.
And I came up with the idea that we should all plugins with a simple admin can start voting on the extension of the map.

Admin runs just vote "extented map? and could Selecting "10" "15" "20" "25" "30" minutes of the extension.

Well, everything is very easy to just have the players voting or even want to play this map.
fraglt is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 08-22-2011 , 15:36   Re: [REQ] vote map extend
Reply With Quote #2

There is Custom Votes v0.5.6 (1/07)

if you are interested ?

*edit
dam it use command to extend map sm_extend

*edit
Ok, I tried make that plugin using SM basevotes.
It not have own menu, need create.

Ok, if I have understood right your request, this cast vote "yes" and "no" method.
*or did you mean all those "10" "15" "20" "25" "30" are in vote ??

admin command sm_voteextend number
Flagged to "g" changemap

cvar sm_vote_extend "0.60"
percent required for successful extend vote. min 0.05 - max 1.0

Do adminmenu_custom.txt
Code:
// Custom admin menu commands.
// For more information:
//
// http://wiki.alliedmods.net/Custom_Admin_Menu_%28SourceMod%29
//
// Note: This file must be in Valve KeyValues format (no multiline comments)
//

"Commands"
{
    "VotingCommands"
    {
        "Extend Map Vote"
        {
            "cmd"        "sm_voteextend #1"
            "1"
            {
                "title"        "Extend Map minute"
                "type"        "list"
                "1"            "10"
                "2"            "15"
                "3"            "20"
                "4"            "25"
                "5"            "30"
            }
        }
    }
}
you could if want adminmenu_sorting.txt
Code:
/**
 * The default sorting is designed to look familiar to Mani's admin menu.
 * You may re-order items here for your own menu.  Any items not explicitly 
 * sorted will be sorted by their final translated phrases for each given client.
 */

"Menu"
{
    "PlayerCommands"
    {
        "item"        "sm_slay"
        "item"        "sm_slap"
        "item"        "sm_kick"
        "item"        "sm_ban"
        "item"        "sm_gag"
        "item"        "sm_burn"        
        "item"        "sm_beacon"
        "item"        "sm_freeze"
        "item"        "sm_timebomb"
        "item"        "sm_firebomb"
        "item"        "sm_freezebomb"
    }

    "ServerCommands"
    {
        "item"        "sm_map"
        "item"        "sm_execcfg"
        "item"        "sm_reloadadmins"
    }

    "VotingCommands"
    {
        "item"        "Extend Map Vote"
        "item"        "sm_cancelvote"
        "item"        "sm_votemap"
        "item"        "sm_votekick"
        "item"        "sm_voteban"
    }
}
Attached Files
File Type: sp Get Plugin or Get Source (vote_extend.sp - 520 views - 4.8 KB)
__________________
Do not Private Message @me

Last edited by Bacardi; 08-23-2011 at 07:09.
Bacardi 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 03:41.


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