Tested and works. There ya go:
Code:
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say", "hook_say")
}
public hook_say(id)
{
new arg1[37], origin[3], name[32]
read_args(arg1, 36) //register everything after "say" as a string
remove_quotes(arg1) //remove the quotes to make working with arg1 easier
//if /goto is not said, return plugin_continue to allow regular chatting
if(contain(arg1, "/goto") == -1) return PLUGIN_CONTINUE
new player = cmd_target(id, arg1[6])
if(!player)
{
client_print(id, print_chat, "[CSM] Client with this name not found.", name)
return PLUGIN_HANDLED
}
get_user_origin(player, origin, 0)
set_user_origin(id, origin)
get_user_name(player, name, 31)
client_print(id, print_chat, "[CSM] You have gone to %s's position", name)
return PLUGIN_CONTINUE
}