Text color same as player's - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Text color same as player's (
/showthread.php?tid=91262)
Text color same as player's -
Blades - 13.08.2009
pawn Код:
public OnPlayerText(playerid, text[])
{
new string[256];
GetPlayerName(playerid, name, 32);
format(string,sizeof(string),"%s (%d): %s", name, playerid, text);
SendClientMessageToAll(GetPlayerColor(playerid), string);
fwrite(chatlog, string);
}
As you see when i made it show ID of the Player, and It sends a SendClientMessageToAll with the text color of GetPlayerColor(playerid)
I want this to show the text as white, but the name as the Color above, but i have no idea how.
So i want to show it like
Headucation (0): Hello
Please someone help me with this, And fix my command? I know this is possible.
Thanks in advance
Re: Text color same as player's -
FUNExtreme - 13.08.2009
Search the wiki for SendPlayerMessageToAll