AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved Can't block one message. (https://forums.alliedmods.net/showthread.php?t=308862)

hitD 07-06-2018 10:04

Can't block one message.
 
Hello,
Im facing one problem, i can't block one message #C4_Plant_At_Bomb_Spot.
Don't where the problem is :D
HTML Code:

public plugin_init()
{
        register_message(get_user_msgid("TextMsg"), "Message_TextMsg")

}
public Message_TextMsg(msgid, dest, id)
{
        static textmsg[64]
        get_msg_arg_string(2, textmsg, charsmax(textmsg))
       
        if (equal(textmsg, "#C4_Plant_At_Bomb_Spot"))
        {
                return PLUGIN_HANDLED;
        }
        return PLUGIN_CONTINUE;
}



All times are GMT -4. The time now is 12:32.

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