Raised This Month: $ Target: $400
 0% 

How to add plug-ins to a specific map


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zamber
New Member
Join Date: Sep 2007
Old 09-28-2007 , 08:41   How to add plug-ins to a specific map
Reply With Quote #1

As the title said, how to add plug-ins to a specific map. Such as I want to use a Climb plug-ins on de_inferno maps, but the Climb plug-ins only works on Kz or the maps that they put in.

So, I want to know where to add the names of the map to make the plug-ins to be activated on the map I want. Also, how to edit it lolz~.

Thx, Anyway
zamber is offline
Pro Patria Finland
Senior Member
Join Date: Apr 2006
Location: BaronPub.com
Old 09-28-2007 , 10:22   Re: How to add plug-ins to a specific map
Reply With Quote #2

Quote:
Originally Posted by zamber View Post
As the title said, how to add plug-ins to a specific map. Such as I want to use a Climb plug-ins on de_inferno maps, but the Climb plug-ins only works on Kz or the maps that they put in.

So, I want to know where to add the names of the map to make the plug-ins to be activated on the map I want. Also, how to edit it lolz~.

Thx, Anyway
As you know you should edit the code, you should've posted this in Scripting help or Off-Topic, (as you clearly know nothing about scripting). Whichever the case from those two, you're posting in the wrong forum.
__________________
I am not a number. I am Gordon Freeman!
Pro Patria Finland is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 09-28-2007 , 13:30   Re: How to add plug-ins to a specific map
Reply With Quote #3

You can do something a long the lines of:

Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "09navridespeter" new isOn, map[33] public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_clcmd("say /help", "showHelp")     get_mapname(map, 32)     if(equal(map, "de_dust2"))     {         isOn = true         log_amx("Plugin XYZ Enabled for this map.")     }     else     {         isOn = false         log_amx("Plugin XYZ Disabled. It is not this map.")     } } public showHelp(id) {     if(isOn)         show_motd(id, "Hey its a motd!!", "Random Motd") }
Styles is offline
Send a message via AIM to Styles
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 09-30-2007 , 17:59   Re: How to add plug-ins to a specific map
Reply With Quote #4

or you could use the map specific plugin loading >.> look around for how to use it.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 10-01-2007 , 01:37   Re: How to add plug-ins to a specific map
Reply With Quote #5

I thought he wanted an example lol
Styles is offline
Send a message via AIM to Styles
Reply


Thread Tools
Display Modes

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:13.


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