24.04.2014, 08:31
How can I achieve this format in the chat ?.
I tried as well but does not come out as i want, what someone can help me ?
Someone help me ? Thanks
pawn Код:
0 SnoopyTheKill: Hello Forum Samp!. //[ID] [Name] [Text]
pawn Код:
public OnPlayerText(playerid, text[])
{
if(IsPlayerConnected(playerid))
{
new chat[ 128 ], Nombre[ 24 ];
GetPlayerName(playerid, Nombre, sizeof(Nombre));
format(chat, sizeof(chat), "{FFFFFF}%d %s: {FFFFFF}%s",playerid,Nombre,text);
SendClientMessageToAll(GetPlayerColor(playerid), chat);
SetPlayerChatBubble(playerid, text, GetPlayerColor(playerid), 30.0, 50000);
return 0;
}
return 1;
}