cerere plugin

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
User avatar
eNd.
Membru, skill +1
Membru, skill +1
Posts: 236
Joined: 19 Jan 2013, 21:18
Detinator Steam: Da
CS Status: Whoa...
SteamID: skitaila03
Has thanked: 18 times
Been thanked: 79 times

07 Mar 2013, 21:18

Adaugi
| Afiseaza codul
stock player_color( const id, const input[ ], any:... )
{
	new count = 1, players[ 32 ]
	static msg[ 191 ]
	vformat( msg, 190, input, 3 )
	replace_all( msg, 190, ".v", "^4" ) /* verde */
	replace_all( msg, 190, ".g", "^1" ) /* galben */
	replace_all( msg, 190, ".e", "^3" ) /* ct=albastru | t=rosu */
	replace_all( msg, 190, ".x", "^0" ) /* normal-echipa */
	if( id ) players[ 0 ] = id; else get_players( players, count, "ch" )
{
	
	for( new i = 0; i < count; i++ )
		
	{
		if( is_user_connected( players[ i ] ) )	
		{
			message_begin( MSG_ONE_UNRELIABLE, get_user_msgid( "SayText" ), _, players[ i ] )
			write_byte( players[ i ] );
			write_string( msg );
			message_end( );
			
		}
		
	}
}
}
Iar

Code: Select all

client_print( 0, print_chat, "%L", LANG_PLAYER, "MY_TEXT_2" );
->

Code: Select all

player_color( 0, "%L", LANG_PLAYER, "MY_TEXT_2" );
Image
ImageImage
RoyalServer
User avatar
Scooby112
Membru, skill +1
Membru, skill +1
Posts: 418
Joined: 02 Aug 2009, 16:10
Detinator Steam: Da
CS Status: Am server de WAR3FT New Races, New items
Detinator server CS: Detin War3
SteamID: hunterforall
Location: Bucuresti
Has thanked: 35 times
Been thanked: 17 times
Contact:

07 Mar 2013, 22:37

eNd. wrote:Adaugi
| Afiseaza codul
stock player_color( const id, const input[ ], any:... )
{
	new count = 1, players[ 32 ]
	static msg[ 191 ]
	vformat( msg, 190, input, 3 )
	replace_all( msg, 190, ".v", "^4" ) /* verde */
	replace_all( msg, 190, ".g", "^1" ) /* galben */
	replace_all( msg, 190, ".e", "^3" ) /* ct=albastru | t=rosu */
	replace_all( msg, 190, ".x", "^0" ) /* normal-echipa */
	if( id ) players[ 0 ] = id; else get_players( players, count, "ch" )
{
	
	for( new i = 0; i < count; i++ )
		
	{
		if( is_user_connected( players[ i ] ) )	
		{
			message_begin( MSG_ONE_UNRELIABLE, get_user_msgid( "SayText" ), _, players[ i ] )
			write_byte( players[ i ] );
			write_string( msg );
			message_end( );
			
		}
		
	}
}
}
Iar

Code: Select all

client_print( 0, print_chat, "%L", LANG_PLAYER, "MY_TEXT_2" );
->

Code: Select all

player_color( 0, "%L", LANG_PLAYER, "MY_TEXT_2" );

Ok, merge, multumesc mult tuturor. Aveti multumesc.
Contact Y!M: war3.staff

War3FT, versiune Privata. Mod facut de ONEMDX
Image
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 21 guests