Raised This Month: $51 Target: $400
 12% 

Alive/Death Chat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
matiaslp
Senior Member
Join Date: Apr 2007
Old 03-31-2010 , 15:02   Alive/Death Chat
Reply With Quote #1

Hi

I'm looking some kind of plugin that allow dead and alive players to chat.

The only restrinction to this "all chat" it's that the other team CAN'T see other team messages.

It's something similar to move all chatting to say_team and make alive/dead indistinc

I know that there it's a plugin named "All chat" but this doesn't restrict that the other team see your team messages...

thanks in advance
matiaslp is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 03-31-2010 , 15:08   Re: Alive/Death Chat
Reply With Quote #2

Code:
#include < amxmodx > #include < cstrike > 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, CsTeams:iTeam = cs_get_user_team( id );     read_data( 4, szMessage, 191 );         for( new i; i < iNum; i++ ) {         iPlayer = iPlayers[ i ];                 if( iTeam != cs_get_user_team( iPlayer ) )             continue;                 message_begin( MSG_ONE_UNRELIABLE, g_iMsgSayText, _, iPlayer );         write_byte( id );         write_string( szChannel );         write_string( "" );         write_string( szMessage );         message_end( );     } }
__________________

Last edited by xPaw; 04-01-2010 at 05:00.
xPaw is offline
matiaslp
Senior Member
Join Date: Apr 2007
Old 03-31-2010 , 16:21   Re: Alive/Death Chat
Reply With Quote #3

hi xPaq

I'm getting Error: Undefined symbol "cs_get_user_team" on line 25

Thanks!
matiaslp is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-31-2010 , 16:29   Re: Alive/Death Chat
Reply With Quote #4

Code:
#include < cstrike >
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
krzyzak333
Junior Member
Join Date: Mar 2009
Location: Poland
Old 03-31-2010 , 16:32   Re: Alive/Death Chat
Reply With Quote #5

Add
Code:
#include < cstrike >
under
Code:
#include < amxmodx >

krzyzak333 is offline
matiaslp
Senior Member
Join Date: Apr 2007
Old 03-31-2010 , 17:10   Re: Alive/Death Chat
Reply With Quote #6

Now i'm getting

Warning: Tag mismatch on line 26

new szMessage[192], iPlayer, iTeam = cs_get_user_team(id);
matiaslp is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-31-2010 , 17:11   Re: Alive/Death Chat
Reply With Quote #7

CsTeams:iTeam = cs_get_user_team( id )
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
matiaslp
Senior Member
Join Date: Apr 2007
Old 03-31-2010 , 18:08   Re: Alive/Death Chat
Reply With Quote #8

Now compiles fine!

But it's not working
It's like "normal" chat...

Last edited by matiaslp; 04-01-2010 at 08:00.
matiaslp is offline
Old 04-01-2010, 08:04
matiaslp
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
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 23:53.


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