Hello AM,
I try to get the message, the Player write in Chat. When the Message Contains a Backslash i wanna do something.
I had the idea to chekc if the string contains a " " but i dont know how.
Heres my code:
PHP Code:
#include <amxmodx>
public plugin_init()
{
register_clcmd("say /wordhere", "cmdWord")
register_clcmd("_mm_wordhere", "mmWord")
}
public cmdWord(id)
{
client_cmd(id, "messagemode _mm_wordhere")
}
public mmWord(id)
{
new szTemp[64]
read_args(szTemp, charsmax(szTemp))
remove_quotes(szTemp)
if(szTemp contains " ")
{ do that }
else { do that }
}
Please help me
__________________