AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to add plug-ins to a specific map (https://forums.alliedmods.net/showthread.php?t=61369)

zamber 09-28-2007 08:41

How to add plug-ins to a specific map
 
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

Pro Patria Finland 09-28-2007 10:22

Re: How to add plug-ins to a specific map
 
Quote:

Originally Posted by zamber (Post 536573)
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.

Styles 09-28-2007 13:30

Re: How to add plug-ins to a specific map
 
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") }

Emp` 09-30-2007 17:59

Re: How to add plug-ins to a specific map
 
or you could use the map specific plugin loading >.> look around for how to use it.

Styles 10-01-2007 01:37

Re: How to add plug-ins to a specific map
 
I thought he wanted an example lol


All times are GMT -4. The time now is 16:13.

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