Chat Problem
#3

Код:
public OnPlayerText(playerid, text[])
{
//===============================================
	new string[500], playername[MAX_PLAYER_NAME];
	GetPlayerName(playerid, playername, sizeof(playername));
	if (AccInfo[playerid][pVip] >= 1 || AccInfo[playerid][Level] > 1) format(string, sizeof(string), "%s {%06x}[%d]: {%06x}%s", playername, (AccInfo[playerid][IdColor] >>> 8), playerid, (AccInfo[playerid][ChatColor] >>> 8), text);
	else	format(string, sizeof(string), "%s {FFFFFF}(%d){%06x}: {FFFFFF}%s", playername, playerid, (GetPlayerColor(playerid) >>> 8), text);
	SendClientMessageToAll(GetPlayerColor(playerid), string);
	return 0;
}
Reply


Messages In This Thread
Chat Problem - by SpikY_ - 19.07.2015, 11:07
AW: Chat Problem - by Mencent - 19.07.2015, 11:35
Re: Chat Problem - by 1nspire - 19.07.2015, 11:38
Re: Chat Problem - by jlalt - 19.07.2015, 11:41
Re: Chat Problem - by SpikY_ - 19.07.2015, 12:14

Forum Jump:


Users browsing this thread: 1 Guest(s)