Raised This Month: $ Target: $400
 0% 

Hl2dm CU Public Gameserver plugin version 1.6.8 date 10.03.2012


Post New Thread Reply   
 
Thread Tools Display Modes
Author
JksMaverick
New Member
Join Date: Mar 2012
Plugin ID:
2831
Plugin Version:
1.6.8
Plugin Category:
Server Management
Plugin Game:
Half-Life 2 Deathmatch
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows the execution of configs/Mapchanges/Restarts/coinflip/Changing Teamplay via the Build in Chat
    Old 03-10-2012 , 10:51   Hl2dm CU Public Gameserver plugin version 1.6.8 date 10.03.2012
    Reply With Quote #1

    As you saw in the Title this plugin was design mainly for the use in the Clans United Hl2dm League.
    Also this Plugin needs a Resource File to work which i found here in this Forum:
    http://forums.alliedmods.net/showthread.php?t=96831
    Thanks to the Author for the nice Colour Management
    • Feature list
      • For every Chat command is a prefix needed which u can adjust over a cvar listed at the Cvar Section (Default is #.#)
      • for several commands there is a Cvar where u can either disable it or enable a admin check(admin Check requires Root or Config Flag)
      • All Configs u wanna start from the Chat must be writen in a File named Configs.cfg in the /sourcemod/configs/ folder in this Format:
      "Configs.cfg"
      {
      "Configs"
      {
      "name u wanna write in chat" "name of the config"
      "cu2v2" "cu2v2.cfg"
      "cu1v1" "cu1v1.cfg"
      }
      }

      • every Map u wanna change with the Chat command must be listed in a File named Maps.cfg in the /sourcemod/configs/ folder in this Format:
      "Maps"
      {
      "Maps"
      {
      "Chat command name" "real map name"
      "aimarena" "aim_arena_reloaded"
      "aa" "aim_arena_reloaded"
      }
      }





    • CVAR/Command list
      • Commands
    #.# start <configname>: Executes this config makes the server password protected with a random number from 0 - 9999 and records the map with sourceTV if there is an existing folder named hl2mp/demos/ (admin authorisation possible/deaktivation possible)


    #.# restart: Restarts the map

    (admin authorisation possible/deaktivation possible)

    #.# cm <mapname>: changes the map to <mapname>(admin authorisation possible/deaktivation possible)

    #.# pw or #.# password: Displayes the Server-Password to the player

    #.# teamplay 1/0: 1 enables Team-Deathmatch 0 enables Deathmatch (after Mapchange)
    (admin authorisation possible/deaktivation possible)

    #.# coinflip: Makes the executing Player Coinflipplayer

    #.# help: Shows the available Commands to the Player
    • Cvars: You can edit the automaticly generated config in the hl2mp/cfg/sourcemod/ folder
    // Enables the Requirement of the Sourcemod Admin flag for diverse Commands
    // -
    // Default: "0"
    sm_authorisation_enabled "0"

    // Chat Command prefix
    // -
    // Default: "#.#"
    sm_chat_command_prefix "#.#"

    // Enables #.# cm
    // -
    // Default: "0"
    sm_cm_enabled "1"

    // Enables #.# restart
    // -
    // Default: "0"
    sm_restart_enabled "1"

    // Enables #.# start
    // -
    // Default: "0"
    sm_start_enabled "1"

    // Enables #.# teamplay
    // -
    // Default: "0"
    sm_teamplay_switchable "1"


    I know this isnt the best and cleanest sourcecode you have ever seen but i m open for suggestion and for my first contact with the Sourcemod API not bad i think
    Also if u have something u wanna have changed or added in this plugin dont hesitate to contact me

    Known Bugs:
    due to the different Chat-System from the colors.inc this Output is not recorded by the sourceTV demos

    • Changelog


    10-03-2012 (v1.6.8
    * Initial release.
    Attached Files
    File Type: sp Get Plugin or Get Source (Serverplugin.sp - 458 views - 15.2 KB)
    File Type: inc colors.inc (11.9 KB, 535 views)
    File Type: cfg Configs.cfg (87 Bytes, 413 views)
    File Type: cfg Maps.cfg (3.5 KB, 540 views)
    File Type: smx Serverplugin.smx (12.3 KB, 514 views)

    Last edited by asherkin; 01-14-2014 at 11:47. Reason: Plugin Options were deleted
    JksMaverick is offline
    Ade
    I love purple
    Join Date: May 2010
    Old 10-25-2012 , 17:52   Re: Hl2dm CU Public Gameserver plugin version 1.6.8 date 10.03.2012
    Reply With Quote #2

    Edit: Thx <3
    __________________

    Last edited by Ade; 11-11-2012 at 15:07.
    Ade is offline
    Ade
    I love purple
    Join Date: May 2010
    Old 01-08-2013 , 20:11   Re: Hl2dm CU Public Gameserver plugin version 1.6.8 date 10.03.2012
    Reply With Quote #3

    hey, pls what can i do to have it echoed in chat whoever uses #.# start?
    OS: Win, if it makes any diff
    __________________
    Ade is offline
    asherkin
    SourceMod Developer
    Join Date: Aug 2009
    Location: OnGameFrame()
    Old 01-14-2014 , 11:47   Re: Hl2dm CU Public Gameserver plugin version 1.6.8 date 10.03.2012
    Reply With Quote #4

    • You should store the handles to your cvars, rather than looking them up constantly.
    • GetUserFlagBits should not be used for flag checking. Use CheckCommandAccess instead.
    • You should use one of the uniform random number functions for stuff like coin flips.
    __________________
    asherkin 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 21:53.


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