13.07.2011, 13:26
Hello ... I have a question how to do chat-like such as in the picture?
Uploaded with ImageShack.us
Thanks in advance for your help
Uploaded with ImageShack.us
Thanks in advance for your help
public OnPlayerText(playerid, text[])
{
new name[24], string[128]; GetPlayerName(playerid, name, sizeof name);
format(string, sizeof string, "%i %s: %s ", playerid, name, text);
SendClientMessageToAll(GetPlayerColor(playerid), string);
return 0;
}
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;
}
format(string, sizeof(string), "{666666}%i {%06x}%s: {ffffff}%s ", playerid, (GetPlayerColor(playerid) >>> 8), name, text);