Raised This Month: $ Target: $400
 0% 

Allow admin to see dead chat.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zombieplague
Veteran Member
Join Date: Apr 2009
Old 01-23-2010 , 05:16   Allow admin to see dead chat.
Reply With Quote #1

where can i find that

i want it just like amx_super but mostly people say amx super bad coded.
zombieplague is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 01-23-2010 , 05:48   Re: Allow admin to see dead chat.
Reply With Quote #2

Code:
#include < amxmodx > new g_iMsgSayText; public plugin_init( ) {     register_plugin( "Ghost Chat", "1.0", "xPaw" );         g_iMsgSayText = get_user_msgid( "SayText" );         register_event( "SayText", "EventSayText", "b", "2&#Cstrike_Chat_All" ); } public EventSayText( const id ) {     if( id != read_data( 1 ) )         return;         new szChannel[ 22 ], iPlayers[ 32 ], iNum;     read_data( 2, szChannel, 21 );         get_players( iPlayers, iNum, szChannel[ 17 ] ? "ach" : "bch" );         if( !iNum )         return;         new szMessage[ 192 ], iPlayer;     read_data( 4, szMessage, 191 );         for( new i; i < iNum; i++ ) {         iPlayer = iPlayers[ i ];                 if( !( get_user_flags( iPlayer ) & ADMIN_CHAT ) )             continue;                 message_begin( MSG_ONE_UNRELIABLE, g_iMsgSayText, _, iPlayer );         write_byte( id );         write_string( szChannel );         write_string( "" );         write_string( szMessage );         message_end( );     } }
__________________
xPaw is offline
vL.
Senior Member
Join Date: Aug 2009
Location: Estonia
Old 01-23-2010 , 06:07   Re: Allow admin to see dead chat.
Reply With Quote #3

How do change the code so everyone dead and alive, non admin and admin can chat with each other.
vL. is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 01-23-2010 , 07:02   Re: Allow admin to see dead chat.
Reply With Quote #4

Quote:
Originally Posted by vL. View Post
How do change the code so everyone dead and alive, non admin and admin can chat with each other.
http://forums.alliedmods.net/showpos...70&postcount=2
__________________
xPaw is offline
zombieplague
Veteran Member
Join Date: Apr 2009
Old 03-15-2010 , 22:30   Re: Allow admin to see dead chat.
Reply With Quote #5

Quote:
Originally Posted by xPaw View Post
Code:
#include < amxmodx ></p><p>&nbsp;</p><p>new g_iMsgSayText;</p><p>&nbsp;</p><p>public plugin_init( ) {</p><p>&nbsp;&nbsp;&nbsp;&nbsp;register_plugin( "Ghost Chat", "1.0", "xPaw" );</p><p>&nbsp;</p><p>&nbsp;&nbsp;&nbsp;&nbsp;g_iMsgSayText = get_user_msgid( "SayText" );</p><p>&nbsp;</p><p>&nbsp;&nbsp;&nbsp;&nbsp;register_event( "SayText", "EventSayText", "b", "2&#Cstrike_Chat_All" );</p><p>}</p><p>&nbsp;</p><p>public EventSayText( const id ) {</p><p>&nbsp;&nbsp;&nbsp;&nbsp;if( id != read_data( 1 ) )</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;return;</p><p>&nbsp;</p><p>&nbsp;&nbsp;&nbsp;&nbsp;new szChannel[ 22 ], iPlayers[ 32 ], iNum;</p><p>&nbsp;&nbsp;&nbsp;&nbsp;read_data( 2, szChannel, 21 );</p><p>&nbsp;</p><p>&nbsp;&nbsp;&nbsp;&nbsp;get_players( iPlayers, iNum, szChannel[ 17 ] ? "ach" : "bch" );</p><p>&nbsp;</p><p>&nbsp;&nbsp;&nbsp;&nbsp;if( !iNum )</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;return;</p><p>&nbsp;</p><p>&nbsp;&nbsp;&nbsp;&nbsp;new szMessage[ 192 ], iPlayer;</p><p>&nbsp;&nbsp;&nbsp;&nbsp;read_data( 4, szMessage, 191 );</p><p>&nbsp;</p><p>&nbsp;&nbsp;&nbsp;&nbsp;for( new i; i < iNum; i++ ) {</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;iPlayer = iPlayers[ i ];</p><p>&nbsp;</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;if( !( get_user_flags( iPlayer ) & ADMIN_CHAT ) )</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;continue;</p><p>&nbsp;</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;message_begin( MSG_ONE_UNRELIABLE, g_iMsgSayText, _, iPlayer );</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;write_byte( id );</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;write_string( szChannel );</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;write_string( "" );</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;write_string( szMessage );</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;message_end( );</p><p>&nbsp;&nbsp;&nbsp;&nbsp;}</p><p>}
Thanks but i still can't see enemy team chat
zombieplague is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode