PDA

View Full Version : [Fixed] Disable SH Mod Bug!


gl00m
10-21-2004, 16:27
When I disable SH Mod in the shconfig.cfg and I begin to play I can`t write anything? When I press my write-button and write my messsage the message don`t show up. Instead this message comes:

** SuperHero Mod is currently disabled ***

How can I fix this? I wan`t to write when SH Mod is disabled...

imported_straightaces235
10-21-2004, 16:45
When i disable my superheromod, i usually just go into the amxmenu by typing amxmodmenu in console. I then choose pause plugins, select the superhermod and turn it off. This will only pause it till the end of the round unless u save it. hOPE DAT HELPS

imported_straightaces235
10-21-2004, 16:45
Till the end of the map, sry my bad.

jtp10181
10-21-2004, 16:47
hahah whops.... thats a silly bug

in the source code find this

if (!shModActive()) {
client_print(id, print_chat, "[SH] SuperHero Mod is currently disabled")
return PLUGIN_HANDLED
}


replace with

if (!shModActive()) return PLUGIN_CONTINUE

you will have to recompile it, see the documentation.

Bash
10-31-2004, 11:08
can anyone post the fixed .amx file plz, i tried compiling it but i keep getting a error... :cry:

jtp10181
10-31-2004, 11:51
http://forums.alliedmods.net/showthread.php?t=31506