Assuming that your message is printed with client_print, here is how you can block it(credits:
https://forums.alliedmods.net/showthread.php?t=142969)
PHP Code:
#include <amxmodx>
#include <orpheu>
new const MessageToBlock[] = "zombie plague 4.3 by"
public plugin_init()
{
OrpheuRegisterHook(OrpheuGetFunction("UTIL_ClientPrint"), "UTIL_ClientPrint", OrpheuHookPre)
}
public OrpheuHookReturn:UTIL_ClientPrint(Player, MessageType, Message[])
{
if(contain(Message, MessageToBlock) != -1)
{
return OrpheuSupercede
}
return OrpheuIgnored
}
You will need orpheu module, also be sure to use this signature and not the one provided by Arkshine:
Code:
{
"name" : "UTIL_ClientPrint",
"library" : "amxmodx_mm",
"arguments" :
[
{
"type" : "edict_s *"
},
{
"type" : "int"
},
{
"type" : "char *"
}
],
"identifiers" :
[
{
"os" : "windows",
"mod" : "cstrike",
"value" : [0x83,"*","*","*","*","*",0x00,0x74,"*",0x8B,0x44,"*","*",0x53,0x56,0x8B,0x74,"*","*",0x8A,0x9E,"*","*","*","*",0xC6,0x86,"*","*","*","*",0x00,0x85,0xC0,0x74,"*",0x50,0xA1,"*","*","*","*",0x6A,0x00,0x50,0x6A,0x01,0xEB]
},
{
"os" : "linux",
"mod" : "cstrike",
"value" : "UTIL_ClientPrint"
}
]
}
It is mostly the same, just the library name is changed so it match.
__________________