Raised This Month: $ Target: $400
 0% 

Same map type Same configs?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JasonCMK
Member
Join Date: Feb 2006
Location: Hong Kong
Old 04-21-2006 , 07:56   Same map type Same configs?
Reply With Quote #1

Hello,
I have a question here.
If I want to have a setting of 'bot_quota 0" for all ka maps, is there any ways to create a config for all ka maps instead of making config for each map?
Thanks.
JasonCMK is offline
MaximusBrood
Veteran Member
Join Date: Sep 2005
Location: The Netherlands
Old 04-21-2006 , 11:07  
Reply With Quote #2

Here you go =)

Code:
#include <amxmodx> new PLUGIN[] = "All ka_ maps" new VERSION[] = "0.1" new AUTHOR[] = "MaximusBrood" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         new mapname[4]     get_mapname(mapname, 3)         if(mapname[0] == 'k' && mapname[1] == 'a' && mapname[2] == '_')         set_cvar_num("bot_quota", 0) }
__________________
Released six formerly private plugins. Not active here since ages.
MaximusBrood is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 04-21-2006 , 12:10  
Reply With Quote #3

There are other ways too, instead of adding an extra plugin just for this.

Are most of your maps ka_ maps? If so, you could so the reverse whereas you said "bot_quota 0" by default and then edit the map configs for the non-ka_ maps and set their quotas appropriately.
__________________
Brad is offline
JasonCMK
Member
Join Date: Feb 2006
Location: Hong Kong
Old 04-21-2006 , 14:14  
Reply With Quote #4

Oh thanks for yr reply,

@ALL: I forgot to mention one thing, I also need "amx_pausecfg pause amx_ejl_missiles.amxx" after "bot quota 0".

@Brad: Umm.... just some of my maps are ka maps. That's crazy, I got almost 100 maps in my server.

Thx anyways
JasonCMK is offline
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 04-21-2006 , 14:31  
Reply With Quote #5

Code:
server_cmd("amx_pausecfg pause amx_ejl_missiles.amxx")
Deviance 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 01:13.


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