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

VoteMod


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Soloist
Senior Member
Join Date: Jun 2004
Location: New York
Plugin ID:
190
Plugin Version:
1.0
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Vote mod starts a vote on the beginning of each map and allows you to chose a Counter-Strike:Source mini mod.
    Old 09-20-2007 , 21:06   VoteMod
    Reply With Quote #1

    Vote mod starts a vote on the beginning of each map and allows
    you to chose a Counter-Strike:Source mini mod.

    Features
    - A cfg file where the server op adds in the plugin he/she wants to use.

    Client Commands:
    * sm_showmods - displays the mods on the server

    Admin Commands:
    * sm_votemod - Admin with vote flag can starts the vote
    * sm_votemenu - Admins can select what mod they want

    Server Commands:
    * sm_defaultcfg <cfg file>
    * sm_addvotemenu <menu text> <CVAR/On Command> <Off Command>

    CVAR:
    * sm_numplayers - Number of players before a vote is started
    * sm_sethostname - Sets the hostname with "*Name Of Mod*" at the end of your current hostname
    * sm_nomod - If set to 0 then No Mod is not option in the VoteMenu

    Future Plans
    * Add a cfg file for maps that should not start a vote.

    Written By Soloist
    Version 1.0
    Last Updated On 9/20/2007

    ********************************************* ****************************************

    Changelog
    Version 1.0
    * Release of the plugin

    * NOTE: All config files go in "<mod folder>\cfg\VoteMod\" *

    Extract Zip to <mod folder>

    votemod.cfg
    Code:
    //
    // Usage: "sm_defaultcfg <Default cfg>"
    //
    // <Default cfg> Default cfg file
    //
    // Example: Of the two commands(be sure to use quotes around parameters with spaces!)
    // sm_defaultcfg    "Default.cfg"
    //
    // Usage: "sm_addvotemenu <menu text> <Min Players> <CVAR/On Command> <Off Command>"
    //
    // The off command is optional, it is only there if plugins have two commands
    // enabling and disabling a plugins.
    //
    // <menu text>: This is the text displayed in the menu itself for this item.
    // <CVAR/On Command>: This is the cvar that enables and disables the plugin
    // <Off Command>:
    //
    // Example: Be sure to use quotes around parameters with spaces!
    // sm_addvotemenu     "CVAR"                0     "sv_cvar"
    // sm_addvotemenu     "CFG File"            0     "cfgfile.cfg"
    // sm_addvotemenu     "On/Off"            4     "cmd_on"                         "cmd_off"
    // sm_addvotemenu     "Unload/Load"        4     "sm plugins load <plugin name>"    "sm plugins unload <plugin name>"
    //
    Attached Files
    File Type: zip VoteMod.zip (10.6 KB, 6147 views)

    Last edited by Soloist; 09-20-2007 at 21:14.
    Soloist is offline
    Send a message via ICQ to Soloist Send a message via AIM to Soloist Send a message via MSN to Soloist Send a message via Yahoo to Soloist
    Rebell
    Veteran Member
    Join Date: Nov 2004
    Location: GERMANY
    Old 09-21-2007 , 13:49   Re: VoteMod
    Reply With Quote #2

    Interisting....
    __________________
    Rebell is offline
    rishi211
    Member
    Join Date: Apr 2007
    Old 09-23-2007 , 01:46   Re: VoteMod
    Reply With Quote #3

    Sweet...I'll have to get this on my server this week. Been busy at work and did not see this yet...nice Soloist.
    rishi211 is offline
    rishi211
    Member
    Join Date: Apr 2007
    Old 09-23-2007 , 14:47   Re: VoteMod
    Reply With Quote #4

    update - Should I use the following to turn it off and on instead of unloading and loading the plugin (for DM specifically)?
    cssdm_enabled 1
    cssdm_enabled 0

    For the on and off commands, can I put in addtional scripts to turn off/on? SO if for example deathmatch is turned on, I want to turn off some event scripts (like knife fight and autobotslay). Then when turning off DM I would like to turn some things back on. Will this work:

    "sm plugins load <plugin name>; es_unload <scriptname>; es_unload <scriptname>"?

    thanks

    Last edited by rishi211; 09-23-2007 at 14:59. Reason: asking question
    rishi211 is offline
    Soloist
    Senior Member
    Join Date: Jun 2004
    Location: New York
    Old 09-23-2007 , 19:24   Re: VoteMod
    Reply With Quote #5

    Quote:
    Originally Posted by rishi211 View Post
    update - Should I use the following to turn it off and on instead of unloading and loading the plugin (for DM specifically)?
    cssdm_enabled 1
    cssdm_enabled 0
    Yes that would be the command you would use. The sm plugins load and unload command use really only be used if a plugins does not have a cmd, or cvar to turn it on or off.


    Quote:
    Originally Posted by rishi211 View Post
    For the on and off commands, can I put in addtional scripts to turn off/on? SO if for example deathmatch is turned on, I want to turn off some event scripts (like knife fight and autobotslay). Then when turning off DM I would like to turn some things back on. Will this work:

    "sm plugins load <plugin name>; es_unload <scriptname>; es_unload <scriptname>"?

    thanks
    Well that might work, I've never tried it.

    But what you can do, is use configs file. Put all the commands you on by default into a .cfg file name it what you want and register it using

    sm_defaultcfgfile "default.cfg"

    Then create another cfg file that has all the commands you want to turn something on. Name that anything you want and put in the

    sm_addvotemenu "something.cfg"

    The file name has to end in .cfg or the plugin want pick it up as a .cfg file. Also put any cfg files in the <moddir>\cfg\VoteMod folder.
    Soloist is offline
    Send a message via ICQ to Soloist Send a message via AIM to Soloist Send a message via MSN to Soloist Send a message via Yahoo to Soloist
    rishi211
    Member
    Join Date: Apr 2007
    Old 09-28-2007 , 14:02   Re: VoteMod
    Reply With Quote #6

    Installed it on the server and it works great so far. Only added one mod (DM) for now, but will attempt to add others hopefully this weekend.

    thanks!
    rishi211 is offline
    ottobohn
    Senior Member
    Join Date: Sep 2007
    Old 03-19-2008 , 17:18   Re: VoteMod
    Reply With Quote #7

    Could you have it do next map instead of next mod? Also, is there a way to allow this to happen at the end of the round?

    Use the mapcycle.txt instead of config for next map vote?

    Otto Bohn
    n00bsalad.net
    ottobohn is offline
    FroL
    Member
    Join Date: Jul 2007
    Old 03-20-2008 , 09:22   Re: VoteMod
    Reply With Quote #8

    to many bugs... Any updates?
    __________________

    3SMedia #1 | classic gameplay | tick 100 (81.25.49.19:27015)
    3SMedia #2 | pro gaming | tick 100 (81.25.49.19:27016)
    3SMedia #3 | deathmatch | tick 100 (81.25.49.19:27017)
    Sorry for my VERY bad english .
    FroL is offline
    ThatGuy
    Senior Member
    Join Date: Nov 2007
    Old 08-21-2008 , 19:44   Re: VoteMod
    Reply With Quote #9

    Quote:
    Originally Posted by ottobohn View Post
    Could you have it do next map instead of next mod? Also, is there a way to allow this to happen at the end of the round?

    Use the mapcycle.txt instead of config for next map vote?

    Otto Bohn
    n00bsalad.net
    Hate bumping, but this would be a lovely feature.
    __________________
    ThatGuy is offline
    Soloist
    Senior Member
    Join Date: Jun 2004
    Location: New York
    Old 08-22-2008 , 10:07   Re: VoteMod
    Reply With Quote #10

    I can look into this, I also updated my amxx version to include "rock the mod" I will include that as well.
    Soloist is offline
    Send a message via ICQ to Soloist Send a message via AIM to Soloist Send a message via MSN to Soloist Send a message via Yahoo to Soloist
    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 16:25.


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