I had made a plugin for blocking "%s" in chat.
Here's the blocking code:
PHP Code:
if(containi(szAllArgs, "%s") != -1)
{
message_begin(MSG_ONE, iSayText, _, id);
write_byte(id);
write_string("^x03Action not allowed");
message_end();
return PLUGIN_HANDLED
}
When I test it on my HLDS, it works fine.
It blocks the chat with %s and shows "Action not allowed".
But when I put it on my pub server, it doesn't work the way it should.
The message "Action not allowed" is displayed, but before that, the message with %s is also getting displayed, instead of blocking it.
Please help.