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

[CS:S] Winner Choose Map (v1.0, 28-04-2012)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
golden_eagle
Member
Join Date: Aug 2011
Plugin ID:
2931
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Let the winner by fraglimit choose the next map
    Old 04-28-2012 , 18:18   [CS:S] Winner Choose Map (v1.0, 28-04-2012)
    Reply With Quote #1

    [CS:S] Winner Choose Map

    Description:
    This plugin allow the first player who reach the mp_fraglimit number to choose the next map. It open an "admin like" menu to choose the map from maplist.txt
    When the winner reach the max score, a message is displayed in chat : "Golden_Eagle has won the game. He has reached a frag score of 50 first and will now be able to choose the next map."

    Installation:
    You must have mp_fraglimit XX set in your server.cfg, otherwise the plugin won't work.
    You also should disable any votemap plugin, because this one would replace the map defined by the vote.

    Notes:
    - It has only been tested on CS:S and as it requires the mp_fraglimit cvar, it should work with any other game who use it.


    Special thanks to :
    - Sourcemod devs for LoadMapList()
    - TnTSCS for helping me


    PS : I'm french and my english is not perfect, so feel free to tell me if I've done any language mistake
    Attached Files
    File Type: sp Get Plugin or Get Source (winnerchoosemap.sp - 1773 views - 2.2 KB)

    Last edited by golden_eagle; 04-28-2012 at 18:20.
    golden_eagle is offline
    leykon121
    Junior Member
    Join Date: Aug 2011
    Old 06-26-2012 , 18:57   Re: [CS:S] Winner Choose Map (v1.0, 28-04-2012)
    Reply With Quote #2

    ITS NOT GIVE ME MAP LIST ITS JUST MAKE CHANGE MAP
    leykon121 is offline
    DoPe^
    Veteran Member
    Join Date: Jul 2008
    Location: Denmark / Copenhagen
    Old 08-18-2012 , 10:47   Re: [CS:S] Winner Choose Map (v1.0, 28-04-2012)
    Reply With Quote #3

    yeah im not getting any menu up either, it just changes the map when fraglimit is reached
    DoPe^ is offline
    DoPe^
    Veteran Member
    Join Date: Jul 2008
    Location: Denmark / Copenhagen
    Old 01-17-2013 , 05:41   Re: [CS:S] Winner Choose Map (v1.0, 28-04-2012)
    Reply With Quote #4

    anyone?
    DoPe^ is offline
    Mirandor
    Senior Member
    Join Date: Jun 2006
    Location: Ile de France
    Old 01-17-2013 , 07:06   Re: [CS:S] Winner Choose Map (v1.0, 28-04-2012)
    Reply With Quote #5

    You 'd better Let the winner choose the next map at fraglimit - x frags, not at fraglimit (or fraglimit -1 and change the mp_fraglimit to an upper value, to give enough time to choose) and add a boolean to prevent another player to choose again if he reachs the same number of frag...
    Mirandor is offline
    MasterOfTheXP
    Veteran Member
    Join Date: Aug 2011
    Location: Cloudbank
    Old 01-17-2013 , 07:12   Re: [CS:S] Winner Choose Map (v1.0, 28-04-2012)
    Reply With Quote #6

    Quote:
    Originally Posted by leykon121 View Post
    ITS NOT GIVE ME MAP LIST ITS JUST MAKE CHANGE MAP
    http://www.youtube.com/watch?v=7pdWAcK6Eh8

    I don't know why it would just change the map, though...I also don't know CS:S, but the code looks fine to me. 'Cept for this:
    PHP Code:
    public MenuHandler(Handle:menuMenuAction:actionparam1param2)
        {
            if ( 
    action == MenuAction_Select 
                {
                    
    SetNextMap(map_name);
                }
        } 
    You've got to close the handle if the action is MenuAction_End, else you'll eventually get a memory leak.
    __________________
    Plugins / My Steam / TF2 Sandbox (plugin beta testing!)
    MasterOfTheXP 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 08:39.


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