Chat Problem
#2

Код:
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s: %s", sendername, text);
SendClientMessageToAll(playerid, string);
Or just use this:

Код:
public OnPlayerText(playerid, text[])
{
	new string[256], Name[MAX_PLAYER_NAME];
	GetPlayerName(playerid, Name, sizeof(Name));
	format(string, sizeof string,"{FFFFFF}%s{FFFFFF} [%d] %s", Name, playerid, text);
	SendClientMessageToAll(playerid, string);
	return 0;
}
Reply


Messages In This Thread
Chat Problem - by StR_MaRy - 03.05.2015, 15:22
Re: Chat Problem - by Nenzittow - 03.05.2015, 15:27
Re: Chat Problem - by StR_MaRy - 03.05.2015, 15:32
Re: Chat Problem - by Nenzittow - 03.05.2015, 15:38
Re: Chat Problem - by StR_MaRy - 03.05.2015, 15:50

Forum Jump:


Users browsing this thread: 1 Guest(s)