Raised This Month: $ Target: $400
 0% 

Solved how to block this MSGs ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 04-01-2017 , 09:26   Re: how to block this MSGs ?
Reply With Quote #3

Quote:
I've never seen any message containing the strings you are comparing to.
Yes its not Cs DLL in HL1

Quote:
You're using the case-sensitive version of contain in which case "Can't" is probably wrong.
what should i can do ? btw why " Can't" is wrong ?

i debug it .. i got other msg :
Quote:
==========================
msg_TextMsg(77, 2, 0): + ME! has joined the game

=======================
==========================
msg_TextMsg(77, 1, 7): #Spec_Mode3
=======================
==========================
msg_TextMsg(77, 2, 0): * ME! switched to spectator mode

=======================
==========================
msg_TextMsg(77, 1, 7): #Spec_Mode2
=======================
==========================
msg_TextMsg(77, 1, 7): Unknown command: -snipe

=======================
PHP Code:
public msg_TextMsg(msgiddestid)
{
    static 
textmsg[128];
    
get_msg_arg_string(2textmsg127);
    
    if(
equal(textmsg"Can't change team to") == 0
    
|| equal(textmsg"Server limits teams to") == 0
    
|| equal(textmsg"Model should be non-empty") == 0
    
|| equal(textmsg"Your current model remains") == 0)
    {
        
server_print("========================== ^nmsg_TextMsg(%d, %d, %d): %s ^n======================= "msgiddestidtextmsg);
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_CONTINUE;

__________________
abdobiskra is offline
Send a message via Skype™ to abdobiskra
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:50.


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