I already edited the main post but I'm still having problems.
I did everything perfectly fine:
PHP Code:
public plugin_init()
{
register_clcmd("say /help", "player_help", -1, "")
}
public player_help(id)
{
new msg[250];
format(msg, 249, "^x04[XXX]^x03:")
colored_msg(id, msg)
set_task(0.2, "help")
}
public colored_msg(id, msg[])
{
message_begin(MSG_ONE, get_user_msgid("SayText"), {0,0,0}, id)
write_byte(id)
write_string(msg)
message_end()
}
public help(id)
{
colored_msg(id, "^x03text text text...")
}
But when I typed /help while in the game, it showed the green "[XXX]" with the team colored ":" and then when the team colored "text text text..." was supose to come up, the listenserver got crashed or I just got kicked so it closed.
In the console there was this message:
Code:
Host_Error: WriteDest_Parm: not a client
What did I do wrong? What do they mean - not a client?
I want that the colored_msg function will put a green "[XXX]" at the beginning of the text.
Sorry for bothering,
dor123
__________________