Raised This Month: $ Target: $400
 0% 

[REQ] Simple Chat


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Ax3l
Member
Join Date: Nov 2009
Old 08-11-2012 , 08:04   [REQ] Simple Chat
Reply With Quote #1

I want a simple , all chat plugin , no color , no nothing

T-CT , DEAD-ALIVE-SPEC messages

I tried myself but ... nothing ( i'm not familiar with message_begin and stuff )

Code:
public plugin_init( )
{
       register_clcmd( "say" , "CmdChat" )
}

public CmdChat( iPlayer )
{
	if( !is_user_connected( iPlayer ) )
		return PLUGIN_HANDLED;
	
	new Mesaj[ 192 ];
	read_args( Mesaj , 191 );
	
	remove_quotes( Mesaj );
	trim( Mesaj );
	
	for( new i = 0; i < 33; i++ )
	{
		message_begin( MSG_ONE_UNRELIABLE , g_iSayText , _ , i );
		write_byte( iPlayer );
		write_string( Mesaj );
		message_end( );
	}
	
	return PLUGIN_CONTINUE;
}
__________________

Last edited by Ax3l; 08-11-2012 at 08:21.
Ax3l 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 22:10.


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