SetPlayerColor
From SA-MP Wiki
This function allows you to change the color of a player currently in-game.
(playerid,color)
| playerid | The player to change the color of. |
| color | The color to set, as an integer or hex. |
| Returns | This 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.
- SetPlayerMarkerForPlayer: Set a player's marker.
- GetPlayerColor: Check the color of a player.
- ChangeVehicleColor: Set the color of a vehicle.
