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

[CSS] AutoGungame


Post New Thread Reply   
 
Thread Tools Display Modes
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 09-10-2009 , 16:15   Re: [CSS] AutoGungame
Reply With Quote #21

The final part of the if statement is still messed.

Code:
else if (StrContains(CurrentMapName, "gg_", false) == 0) {
if ((StrContains(CurrentMapName,deMapPrefix,false)) == 3 || (StrContains(CurrentMapName,csMapPrefix,false)) == 3)
    {
        ServerCommand(GGCFG);
    }
}
This should work better
__________________
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
BDeep
Senior Member
Join Date: Jun 2009
Location: NH
Old 09-10-2009 , 16:26   Re: [CSS] AutoGungame
Reply With Quote #22

Quote:
Originally Posted by berni View Post
The final part of the if statement is still messed.

Code:
else if (StrContains(CurrentMapName, "gg_", false) == 0) {
if ((StrContains(CurrentMapName,deMapPrefix,false)) == 3 || (StrContains(CurrentMapName,csMapPrefix,false)) == 3)
    {
        ServerCommand(GGCFG);
    }
}
This should work better
All fixed now.
__________________
BDeep is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 09-10-2009 , 16:35   Re: [CSS] AutoGungame
Reply With Quote #23

Update plugin version in the topic.

And I recommend adding the flag to sm_auto_gungame_version FCVAR_DONTRECORD, so the version doesn't get saved (bad for later updates).
__________________
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
BDeep
Senior Member
Join Date: Jun 2009
Location: NH
Old 09-10-2009 , 16:52   Re: [CSS] AutoGungame
Reply With Quote #24

Done and Done and thanks Berni for the Approval.
__________________
BDeep is offline
sammjj
New Member
Join Date: Dec 2009
Old 12-17-2009 , 16:17   Re: [CSS] AutoGungame
Reply With Quote #25

Could this be done for surf_ maps too?
Great mod, just what I've been looking for <3
sammjj is offline
BDeep
Senior Member
Join Date: Jun 2009
Location: NH
Old 12-17-2009 , 16:23   Re: [CSS] AutoGungame
Reply With Quote #26

Quote:
Originally Posted by sammjj View Post
Could this be done for surf_ maps too?
Great mod, just what I've been looking for <3
You can try it. It should work. If it doesnt just let me know and I will fix it.
__________________
BDeep is offline
kix
Junior Member
Join Date: Dec 2009
Old 12-17-2009 , 18:01   Re: [CSS] AutoGungame
Reply With Quote #27

It isn't working for me, where do I save the config files? the same directory as the autogungame.cfg?
kix is offline
BDeep
Senior Member
Join Date: Jun 2009
Location: NH
Old 12-18-2009 , 08:23   Re: [CSS] AutoGungame
Reply With Quote #28

The cfg files go in the cstrike\cfg folder
__________________
BDeep is offline
kix
Junior Member
Join Date: Dec 2009
Old 12-20-2009 , 16:38   Re: [CSS] AutoGungame
Reply With Quote #29

could you tell me how to add extra cvars for more map prefixes?
could you implement this as a feature?

Thank
kix is offline
BDeep
Senior Member
Join Date: Jun 2009
Location: NH
Old 12-21-2009 , 08:30   Re: [CSS] AutoGungame
Reply With Quote #30

Here is an unapproved version that I did when I was running VIP Mod it supports 3 different map prefixes.
Attached Files
File Type: sp Get Plugin or Get Source (autogungame.sp - 458 views - 3.0 KB)
__________________
BDeep 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 04:35.


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