Raised This Month: $32 Target: $400
 8% 

[CSS] AutoGungame


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
BDeep
Senior Member
Join Date: Jun 2009
Location: NH
Plugin ID:
1016
Plugin Version:
1.4
Plugin Category:
Server Management
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    A plugin to change between CSS and Gungame based on map prefixes
    Old 07-20-2009 , 07:51   [CSS] AutoGungame
    Reply With Quote #1

    Autogungame by BDeep Version 1.4

    This plugin executes different configs based on the map prefix. If a map begins with de_ or cs_ it will exec the config that you specify in the autoguname.cfg, any other map it will exec the config that you specify autoguname.cfg.

    CVars:

    // This file was auto-generated by SourceMod (v1.2.1)
    // ConVars for plugin "autogungame.smx"
    // The prefix of a hostage map.
    // Default: "cs_"
    sm_autogungame_csMapPrefix "cs_"
    // A CFG File to run for NON Gungame Maps. Example EXEC CSS.CFG
    // Default: ""
    sm_autogungame_csscfg "exec csscvars.cfg"
    // The prefix of a defuse map.
    // Default: "de_"
    sm_autogungame_deMapPrefix "de_"
    // A CFG File to run for Gungame Maps. Example EXEC GG.CFG
    // Default: ""
    sm_autogungame_ggcfg "exec ggcvars.cfg"

    I created this plugin for a few reasons.
    1. Couldnt find one like it here
    2. I wanted to move away from EventScripts and any other addons due to crashes
    3. I like the idea of one server running two mods.

    I ran this plugin all last night on my server with 15 people playing for about 5 hours and had no issues. If you have any or want any changes please let me know. This is only my second plugin so be gentle

    I would like to thank these people for helping me learn to write plugins:
    psyconic
    pheadxdll
    pRED
    GreyScale
    bl4nk
    DJ Tsunami
    Also Berni for the Approval and the last code changes

    Version 1.4 - Changed last elseif once again per Berni's post on page 2 Also changed the sm_auto_gungame_version per Berni's post.

    Version 1.3 - Changed last Elseif back to using strcontains.

    Version 1.2 - Updated Version cvar to sm_auto_gungame_version. Alos updated code per bl4nk's post.

    Version 1.1 - Updated cvar AutoGungame Version to AutoGunGameVersion (per Antithasys)
    Version 1.0 - Updated to add cvar for the version.
    Please update your servers, Thanks
    Attached Files
    File Type: zip example_configs.zip (1.6 KB, 3434 views)
    File Type: sp Get Plugin or Get Source (autogungame.sp - 5086 views - 2.4 KB)
    __________________

    Last edited by BDeep; 09-10-2009 at 16:56. Reason: Update to 1.4
    BDeep 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 16:02.


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