Question to chat in the game
#2

pawn Code:
public OnPlayerText(playerid, text[])
{
///{FFFFFF} = White
    new name[24], string[128]; GetPlayerName(playerid, name, sizeof name);
    format(string, sizeof string, "{FFFFFF}%i %s: %s ", playerid, name, text);
    SendClientMessageToAll(GetPlayerColor(playerid), string);
    return 0;
}
Also, if you want ID after the name this
Code:
format(string, sizeof string, "{FFFFFF}%s %i : %s ", playerid, name, text);
Reply


Messages In This Thread
Question to chat in the game - by styl3raaa - 03.10.2011, 13:20
Re: Question to chat in the game - by Kostas' - 03.10.2011, 13:24
Re: Question to chat in the game - by Jafet_Macario - 03.10.2011, 13:29
Re: Question to chat in the game - by styl3raaa - 03.10.2011, 13:50
Re: Question to chat in the game - by Jafet_Macario - 03.10.2011, 13:57
Re: Question to chat in the game - by styl3raaa - 03.10.2011, 13:58
Re: Question to chat in the game - by Jafet_Macario - 03.10.2011, 14:08
Re: Question to chat in the game - by iPLEOMAX - 03.10.2011, 14:26
Re: Question to chat in the game - by styl3raaa - 03.10.2011, 14:32
Re: Question to chat in the game - by iPLEOMAX - 03.10.2011, 14:33

Forum Jump:


Users browsing this thread: 1 Guest(s)