13.04.2018, 11:49
Code:
function OnPlayerUpdates(playerid) { new string[45]; if(PlayerInfo[playerid][pHUD4] == 1) { new expamount; expamount = PlayerInfo[playerid][pLevel]*levelexp; format(string, sizeof(string), "Level: %d / RP: %d/%d", PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pExp], expamount); PlayerTextDrawSetString(playerid, HudTD, string); PlayerTextDrawShow(playerid, HudTD); SetPlayerProgressBarMaxValue(playerid, HudProgress[playerid], PlayerInfo[playerid][pLevel]*levelexp); SetPlayerProgressBarValue(playerid, HudProgress[playerid], PlayerInfo[playerid][pExp]); ShowPlayerProgressBar(playerid, HudProgress[playerid]); } return 1; }