Raised This Month: $ Target: $400
 0% 

Dead Chat


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Merc3y
Member
Join Date: Dec 2009
Old 06-02-2010 , 08:18   Dead Chat
Reply With Quote #1

Guys, I found this in one of the thread.

PHP 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) )
        return;
    
    new 
szChannel22 ], iPlayers32 ], iNum;
    
read_data2szChannel21 );
    
    
get_playersiPlayersiNumszChannel17 ] ? "ach" "bch" );
    
    if( !
iNum )
        return;
    
    new 
szMessage192 ], iPlayer;
    
read_data4szMessage191 );
    
    for( new 
iiNumi++ ) {
        
iPlayer iPlayers];
        
        if( !( 
get_user_flagsiPlayer ) & ADMIN_CHAT ) )
            continue;
        
        
message_beginMSG_ONE_UNRELIABLEg_iMsgSayText_iPlayer );
        
write_byteid );
        
write_stringszChannel );
        
write_string"" );
        
write_stringszMessage );
        
message_end( );
    }
}

Howeverthis only enable admins to see dead chatButI want it also enemy dead team chat or teammate when they are dead
__________________
How I Wish That I Can Host Without Any Problem.
Merc3y is offline
 



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 05:27.


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