The better way is this:
Code:
new g_MsgText
public plugin init()
{
g_MsgText = get_user_msgid("SayText")
}
stock print_colored ( const index, const input [ ], const any:... )
{
new id
for ( i = 0; i < count; i ++ )
{
id = players[ i ]
if ( is_user_connected ( id ) )
{
message_begin ( MSG_ONE_UNRELIABLE, g_MsgText, _, id )
write_byte ( id )
write_string ( message )
message_end ( )
}
}
}
__________________