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(msgid, dest, id)
{
static textmsg[128];
get_msg_arg_string(2, textmsg, 127);
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======================= ", msgid, dest, id, textmsg);
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE;
}
__________________