View Single Post
Author Message
BDeep
Senior Member
Join Date: Jun 2009
Location: NH
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, 3436 views)
File Type: sp Get Plugin or Get Source (autogungame.sp - 5087 views - 2.4 KB)
__________________

Last edited by BDeep; 09-10-2009 at 16:56. Reason: Update to 1.4
BDeep is offline