How to send client message with player color
#1

Hello,

i have this code in onplayertext:

Код:
if(GetPVarInt(playerid, "Muted"))
	{
		SCM(playerid, COLOR_ORANGE, "You're muted and can't talk!","Vie ste zamolceni, nemozete da zboruvate!");
	    return 0;
	}
	else
	{
		new string[128], pName[MAX_PLAYER_NAME];
		GetPlayerName(playerid, pName, sizeof(pName));
		format(string, sizeof(string), "%s[%i]: {FFFFFF}%s",pName, playerid, text);
		SendClientMessageToAll(GetPlayerColor(playerid), string);
		return 0;
	}
But i have black player name ever. What is problem?
Reply


Messages In This Thread
How to send client message with player color - by mariomako - 30.07.2011, 22:04
Re: How to send client message with player color - by MadeMan - 30.07.2011, 22:06
Re: How to send client message with player color - by PrawkC - 30.07.2011, 22:07
Re: How to send client message with player color - by mariomako - 30.07.2011, 22:43
AW: Re: How to send client message with player color - by Nero_3D - 30.07.2011, 23:33

Forum Jump:


Users browsing this thread: 1 Guest(s)