Player Chat color
#1

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;
}
Reply
#2

use GetPlayerColor(playerid); make SetPlayerColor in OnPlayerConnect first ( or another callback)

https://sampwiki.blast.hk/wiki/GetPlayerColor
Reply
#3

and the question, works {color} also in TextDraw ( in 03c ) ? ( sorry for my english )
Reply
#4

Nope. Not in textdraws.
Reply
#5

too bad
Reply
#6

Quote:
Originally Posted by gernes
Посмотреть сообщение
too bad
~HEX~ works in textdraws and ~r~, ~b~ just like GameText
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)