14.02.2016, 14:37
Quote:
|
stock PlayerBar:CreatePlayerProgressBar(playerid, Float , Float:y, Float:width = 55.5, Float:height = 3.2, colour = 0xFF1C1CFF, Float:max = 100.0, direction = BAR_DIRECTION_RIGHT){ new barid = _bar_NewID(playerid); if(barid == -1) { print("[CreatePlayerProgressBar] ERROR: MAX_PLAYER_BARS limit reached."); return INVALID_PLAYER_BAR_ID; } |
Quote:
|
_RenderBar(playerid, barid, update = false) { if(!IsValidPlayerProgressBar(playerid, PlayerBar:barid)) return false; PlayerTextDrawDestroy(playerid, pbar_TextDraw[playerid][barid][pbar_back]); PlayerTextDrawDestroy(playerid, pbar_TextDraw[playerid][barid][pbar_fill]); PlayerTextDrawDestroy(playerid, pbar_TextDraw[playerid][barid][pbar_main]); |


, Float:y, Float:width = 55.5, Float:height = 3.2, colour = 0xFF1C1CFF, Float:max = 100.0, direction = BAR_DIRECTION_RIGHT)