Player Chat color - 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: Player Chat color (
/showthread.php?tid=203232)
Player Chat color -
gernes - 26.12.2010
Hello,
It would make finding the player's color ?
example function GetColor (playerid)
(example)
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
format(string,sizeof(string)," Player {%d}%s{FFFFFF} kill {%d}%s ", GetColor(killerid),name(killerid), GetColor(playerid), name(playerid))
SCMA(white,string);
return 1;
}
Re: Player Chat color -
boelie - 26.12.2010
use GetPlayerColor(playerid); make SetPlayerColor in OnPlayerConnect first ( or another callback)
https://sampwiki.blast.hk/wiki/GetPlayerColor
Re: Player Chat color -
gernes - 26.12.2010
and the question, works {color} also in TextDraw ( in 03c ) ? ( sorry for my english )
Re: Player Chat color -
RyDeR` - 26.12.2010
Nope. Not in textdraws.
Re: Player Chat color -
gernes - 26.12.2010
too bad
Re: Player Chat color -
hanzen - 26.12.2010
Quote:
Originally Posted by gernes
too bad 
|
~HEX~ works in textdraws and ~r~, ~b~ just like GameText