#include <amxmodx>
#include <amxmisc>
public plugin_init()
{
register_plugin( "admin see chat", "1.0", "noname" )
register_clcmd( "say", "chat" )
register_clcmd( "say_team", "chat_team" )
}
public chat( id )
{
new said[ 150 ]
read_args( said, charsmax( said ) )
remove_quotes( said )
if( said[ 0 ] )
sent_message( id, false, said )
}
public chat_team( id )
{
new said[ 150 ]
read_args( said, charsmax( said ) )
remove_quotes( said )
if( said[ 0 ] )
sent_message( id, true, said )
}
sent_message( sent_id, bool: team_say, szText[] )
{
for( new i = 1; i <= get_maxplayers(); i++ )
{
if( !is_user_connected( i ) )
continue
if( is_user_admin( i ) )
client_print( i, print_chat, "%s%n: %s", team_say ? "TEAM - ":"", sent_id, szText )
}
}