27.02.2015, 13:04
(
Последний раз редактировалось HY; 28.02.2015 в 12:31.
)
Colorful Huds.
Introduction:This it's a simple filterscript, wich can create colorfuls huds as you can see in first picture. Like that, you can create huds for cash and for fist in 12 colors. All colors can be found, right here as defines:
pawn Код:
#define hud_red -16776961
#define hud_green 16711935
#define hud_fuchsia -16711681
#define hud_cyan 16777215
#define hud_orange -5963521
#define hud_maroon -2147483393
#define hud_yellow -65281
#define hud_blue 65535
#define hud_brown -1523963137
#define hud_lightblue -1378294017
#define hud_purple -2147450625
#define hud_grey -2139062017
#define hud_lime 16711935
SetPlayerHudColor(playerid, hud, hud_colors) - Will set huds colors to specified color.
pawn Код:
hud_fist - For fist.
hud_cash - For cash.
hud_cashicon - For $ cash icon.
hud_cash will show to player how many cash it's him havin'.
RemovePlayerCashHud(playerid) - Will remove player's cash hud.
RemovePlayerCashIconHud(playerid) - Will remove player's cash icon $ hud.
RemovePlayerHuds(playerid) - Will remove player's huds.
Example:
An example script it's right here:
pawn Код:
CMD:cash(playerid, params[])
{
SetPlayerHudColor(playerid, hud_fist, hud_red);
SetPlayerHudColor(playerid, hud_cash, hud_cyan);
SetPlayerHudColor(playerid, hud_cashicon, hud_blue);
return 1;
}
Download:
- Pastebin;
- Solidfiles;
- hud.inc
NOTE: Player's fist hud will work fine only if specified player doesn't have any guns.