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

GunGame Time


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Akkenoth
Junior Member
Join Date: Jul 2009
Plugin ID:
1083
Plugin Version:
1.2.1 (beta)
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
Enables GunGame and alternative mapcycle in specified hours.
Unapprover:
Reason for Unapproving:
Plugin Author not responding/updating anymore.
Old 08-11-2009 , 21:06   GunGame Time
Reply With Quote #1

GunGame Time

Description:

Enables and disables GunGame:SM and alternative mapcycle in specified hours.
Also, executes a config for gungame (/cstrike/cfg/sourcemod/ggtime_exec.cfg).

ConVars:
Code:
ggtime_altmapcycle (default: 1 ) - To use alternative mapcycle  (ggmapcycle.txt, in /cstrike) or not
ggtime_starttime (def: 22 ) - Hour to start GG
ggtime_stoptime (def: 8 ) - Hour to stop GG
ggtime_command (def: "gg_enable" ) - Command to start GG


Changelog:
Code:
1.0.0 (alpha)
*Initial release
1.0.1 (alpha)
*Fixed major bug - the plugin tried to run gungame all the time ;)
+Added checking if alternative mapcycle exists
1.0.2 (alpha)
*Fixed checking for alternative mapcycle file, the old version would  never find it
1.1.0 (alpha)
*Fixed CVar handles using (suggested by ~Berni, thanks)
*Fixed checking the time
+added executing the config instead of just running some commands
1.2.0 (alpha)
+added checking if the next map will be in gungame mode
+included maplists.cfg in the .zip - map lists everywhere will be the same as the mapcycle
1.2.1(beta)
*Fixed changing mapcycle file
*Fixed checking if config to execute exist


To do:
Code:
*Find out what do these warnings mean ;)
*Check if compatible with other mods (like deathmatch, ggtime_command  "cssdm_enable", maybe you're able to try?)
*Change in-written commands to some config  execute
*Add checking if next map will be in the GG-time (if so, change the  mapcyclefile earlier)
*Improve the one above - change the mapcycle just before voting for next map (rtv will result in gg map without gungame enabled)
*[maybe]Add chat notifications about changing the gameplay type on next map
*Add checking if alternative mapcycle file exists
*Maybe sth else, make a request!
Plugin is in beta. I'm testing it in different configurations right now.

WARNING! Before use, make sure, that ggmapcycle.txt has at least 2 maps. Otherwise, nextmap.smx will crash (a bit ) and, for example, nomination menu will show all maps on the server.
Attached Files
File Type: zip ggtime.zip (6.4 KB, 112 views)
File Type: sp Get Plugin or Get Source (ggtime.sp - 490 views - 2.6 KB)

Last edited by Akkenoth; 11-14-2009 at 21:29. Reason: New version
Akkenoth is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 09-10-2009 , 16:39   Re: [CSS] GunGame Time
Reply With Quote #2

Handles to ConVars you created yourself are returned by CreateConVar and should be stored in global plugin variables instead of using FindConVar().

ggtime_version should have the flags FCVAR_NOTIFY (to make it a public var) and FCVAR_DONTRECORD (to not autosave it in the config, bad for later updates).

Greetings ~Berni
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
Akkenoth
Junior Member
Join Date: Jul 2009
Old 11-09-2009 , 18:14   Re: GunGame Time
Reply With Quote #3

New version 1.2.0.
Still alpha, I'm going to test it this week.
Akkenoth 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 19:30.


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