AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Dead Chat (https://forums.alliedmods.net/showthread.php?t=128538)

Merc3y 06-02-2010 08:18

Dead Chat
 
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


Alucard^ 06-02-2010 15:44

Re: Dead Chat
 
Quote:

However, this only enable admins to see dead chat. But, I want it also enemy dead team chat or teammate when they are dead.
o.O?

But without any plugin... dead people and dead teammate people can see dead message. Or maybe i didn't understand you?

majinbu 06-03-2010 06:55

Re: Dead Chat
 
Quote:

Originally Posted by Alucard^ (Post 1198237)
o.O?

But without any plugin... dead people and dead teammate people can see dead message. Or maybe i didn't understand you?

he meant that if the admin is alive, only admins can see deadchats while normal player who are alive can't see dead chat.

Merc3y 06-03-2010 19:14

Re: Dead Chat
 
Quote:

Originally Posted by majinbu (Post 1198726)
he meant that if the admin is alive, only admins can see deadchats while normal player who are alive can't see dead chat.

No, I meant this currently plugin let the admins( ALIVE ) see the players( DEAD ) chat. However, I want it advanced enables admins( ALIVE ) to see players( DEAD ) teamchat also.


All times are GMT -4. The time now is 05:27.

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