AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   NEW DISCOVERY!! (https://forums.alliedmods.net/showthread.php?t=48991)

Daniell_ 12-25-2006 06:17

NEW DISCOVERY!!
 
This might not be so new for u, but it's new for me!
U tired of evry time u disable a cod u must disable a TON of things..
Well i have discoverd that u can make a .txt file or any file like that (recommend .txt file), then u move the plugins to the .txt file (only the plugins that belongs to a specific plugin, such as Superhero mod)
Example:
Code:

// ---------------------- START SUPERHERO PLUGINS -------------------------------
 
//To save XP to the nVault file (default)
superheromodnvault.amxx
 
//To save XP to the VAULT file  (uncomment this and comment out the other plugin)
//superheromodvault.amxx

//To save XP to a mysql database (uncomment this and comment out the other plugin)
//superheromodmysql.amxx
 
//Add these lines to enable all the stock heroes
sh_anubis.amxx
sh_aquaman.amxx
sh_batman.amxx
sh_demoman.amxx
sh_captaina.amxx
sh_cyclops.amxx
sh_daredevil.amxx
sh_dazzler.amxx
sh_dracula.amxx
sh_flash.amxx
sh_hobgoblin.amxx
sh_hulk.amxx
sh_humantorch.amxx
sh_ironman.amxx
sh_mystique.amxx
sh_nightcrawler.amxx
sh_punisher.amxx
sh_skeletor.amxx
sh_spiderman.amxx
sh_superman.amxx
sh_windwalker.amxx
sh_wolverine.amxx
sh_xavier.amxx
sh_zeus.amxx
 
// ---------------------- END SUPERHERO PLUGINS -------------------------------

Move that to a file called, like Superheroplugins.txt.
Then u add the line:
Code:

include Superheroplugins.txt
At the line u just moved!

And to disable set a "; "(DON'T FORGET THE SPACE!!) in front of "include Superheroplugins.txt"

Cool huh?
U can do this to any plugin, module u want.. but be careful of removing stuff..
I discovered this in the shconfig.cfg (a superhero file)
I saw in the bottom that there were a echo "txt, txt, txt..."
(that's PHP format), so i tried with the include command (also PHP)
And there i discoverd this, ^^

Well hope no one discoverd this beform me ^^

[ --<-@ ] Black Rose 12-25-2006 08:49

Re: NEW DISCOVERY!!
 
Wont work.

Hawk552 12-25-2006 08:58

Re: NEW DISCOVERY!!
 
Well, look who's been keeping up:
http://forums.alliedmods.net/showthread.php?t=45623


All times are GMT -4. The time now is 22:20.

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