Player Message Color
#6

Quote:
Originally Posted by Hemeei
Посмотреть сообщение
Hello guys

How i can make like this ?

Hemeei : Hello
James : Hi

Not This (Default)

Hemeei : Hello
James : Hi

Do something like this:
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;
}
Greetings.
Reply


Messages In This Thread
Player Message Color[+REP] - by Hemeei - 16.08.2015, 17:25
Re: Player Message Color - by Hemeei - 16.08.2015, 18:02
Re: Player Message Color - by Evocator - 16.08.2015, 18:06
Re: Player Message Color - by SpikY_ - 16.08.2015, 18:07
Re: Player Message Color - by Roberto80 - 16.08.2015, 18:07
Re: Player Message Color[+REP] - by LetsOWN[PL] - 16.08.2015, 18:09
Re: Player Message Color[+REP] - by Hemeei - 16.08.2015, 18:26
Re: Player Message Color - by Hemeei - 16.08.2015, 18:43
Re: Player Message Color[+REP] - by LetsOWN[PL] - 16.08.2015, 18:51
Re: Player Message Color[+REP] - by Evocator - 16.08.2015, 19:00

Forum Jump:


Users browsing this thread: 1 Guest(s)