Hi! I have a problem, how can i read the args from a "say /" command? Here is my code:
Code:
register_clcmd("say /testarg","CmdTestArg")
Code:
public CmdTestArg(id)
{
if(!is_user_admin(id))
return PLUGIN_HANDLED
new arg1[64],arg2[64]
read_argv(2,arg1,charsmax(arg1))
read_argv(3,arg2,charsmax(arg2))
chat_color(id,"!y[MESAJUL] !g: !y%s !g%s",arg1,arg2)
return PLUGIN_CONTINUE
}
when i write in console "say /testarg 1 2" It works, but when i type with Y it doesn't work