16.08.2015, 18:09
(
Последний раз редактировалось LetsOWN[PL]; 16.08.2015 в 19:06.
)
Quote:
Hello guys
How i can make like this ? Hemeei : Hello James : Hi Not This (Default) Hemeei : Hello James : Hi |
pawn Код:
#define Max_Client_Message_Len 128
public OnPlayerText(playerid, text[])
{
new String [ Max_Client_Message_Len + MAX_PLAYER_NAME + 16];
if( strlen(text) > Max_Client_Message_Len )
return 0;
new PlayerName[ MAX_PLAYER_NAME ];
GetPlayerName( playerid, PlayerName, MAX_PLAYER_NAME );
format( String, sizeof( String ), "{RRGGBB}%s (%d): {RRGGBB}%s", PlayerName, playerid, text );
for( new i = 0; i < MAX_PLAYERS; i++ )
SendClientMessage( i, 0x0, String );
return false;
}