GetPlayerColor
From SA-MP Wiki
GetPlayerColor
This function returns the color the player is currently using.
Important Note: GetPlayerColor will return nothing unless SetPlayerColor has been used!
Click HERE for a fix.
(playerid)
| playerid | The player you want to know the color of. |
| Returns | The players color. |
SendClientMessage(playerid, GetPlayerColor(playerid), "This is your color :)");
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- SetPlayerColor: Set a player's color.
- ChangeVehicleColor: Set the color of a vehicle.
