SetPlayerColor

From SA-MP Wiki

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

SetPlayerColor


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


Parameters:
(playerid,colour)
playeridThe player you want to change the color of.
colorThe new player's color, as an integer or hex.


This function does not return a specific value, it's best to simply ignore it.


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

Hex and decimal values can be converted in each other, e.g. by using Windows' Calculator (advanced interface)

Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.

Personal tools