Code:
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("test", "test")
}
public test(id)
{
// client has to do command "messagemode test" has to be same as the public function
new message[192]
// Get message and remove quotes
read_args(message, 191)
remove_quotes(message)
client_print(id, print_chat, "You Typed: ^"%s^"", message)
return PLUGIN_HANDLED
}
Now do i make it so when they type "amx_test" in their console it will make a messagemode come and after they have typed their message it will print_chat in the clients chat area?
__________________