Ok.. this is the code im using:
Code:
register_clcmd("say /noclip","toggle_noclip",ACCESS_NOCLIP,"Toggle noclip")
// This gets called with say /noclip USERNAME
read_argv(1,arg,31)
new pid = cmd_target(id,arg,1)
if (!pid) {
console_print(id,"[NSX] No such user")
return PLUGIN_HANDLED
}
Which mod are you running this on? Maybe its something that sends messages in a weird way?
You need to do some debugging stuff
After "read_argv(1,name,31) " put console_print(id,"%s",name)
Then make sure the name it says is the one you typed
__________________