SetPlayerColor

From SA-MP Wiki

(Redirected from Function:SetPlayerColor)
Jump to: navigation, search


This function allows you to change the color of a player currently in-game.


Parameters:
(playerid,color)
playeridThe player to change the color of.
colorThe color to set, as an integer or hex.


ReturnsThis function doesn't return a specific value


//using hex notation:
SetPlayerColor(playerid, 0xFFFF00AA);
 
//using decimal notation:
SetPlayerColor(playerid, 4294901930);

Hex and decimal values can be converted in to each other See Here

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

Personal tools