This repository was archived by the owner on Feb 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
SetPlayerHUDComponentColour
GtakillerIV edited this page Dec 17, 2014
·
1 revision
Sets a player's HUD component colour

playeridThe player's id.
componentidThe component id.
colourThe new colour.
You can find a list of the default colours here.
0 if player is not connected#define COLOR_LIGHTGREEN 0xA2E864FF
CMD:altermoneycolour(playerid, params[])
{
//If the player has the SA-MP+ plugin installed
if(IsUsingSAMPP(playerid))
{
//Set the money's color to light green
SetPlayerHUDComponentColour(playerid, HUD_COMPONENT_MONEY, COLOR_LIGHTGREEN);
}
//If not
else
{
SendClientMessage(playerid, -1, "You need the SA-MP+ plugin");
}
}See also