hello
i create visible chat to all player a simple plugin.
plugin will work.
however, the chat command of other plugin such as the rtv is no work.
How can I resolve this problem I do?
PHP Code:
#include <amxmodx>
#include <colorchat>
#include <cstrike>
public plugin_init()
{
register_clcmd("say", "cmd_say")
}
public cmd_say(id)
{
new message[192]
read_args(message, charsmax(message))
remove_quotes(message)
new name[32]
get_user_name(id, name, 31)
if(is_user_alive(id))
{
ColorChat(0, TEAM_COLOR, "^x03%s ^x01: %s", name, message)
return PLUGIN_HANDLED
}
else
{
ColorChat(0, TEAM_COLOR, "^x01*DEAD* ^x03%s ^x01: %s", name, message)
return PLUGIN_HANDLED
}
if(cs_get_user_team(id) == CS_TEAM_SPECTATOR)
{
ColorChat(0, TEAM_COLOR, "^x01*SPECTATOR* ^x03%s ^x01: %s", name, message)
return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}