View Single Post
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-26-2009 , 09:36   Re: [Native] ColorChat v0.1.0
Reply With Quote #61

ColorChat( ) uses get_user_team( ).

Do something like this:
Code:
new g_iMsgId_TeamInfo = get_user_msgid( "TeamInfo" ); new iBlock = get_msg_block( g_iMsgId_TeamInfo ); set_msg_block( g_iMsgId_TeamInfo, BLOCK_ONCE ); cs_set_user_team( id, CS_TEAM_SPECTATOR ); set_msg_block( g_iMsgId_TeamInfo, iBlock ); emessage_begin( MSG_BROADCAST, g_iMsgId_TeamInfo ); ewrite_byte( id ); ewrite_string( "SPECTATOR" ); emessage_end( ); ColorChat( ... );
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline