Advertisement
Guest User

Untitled

a guest
Jul 16th, 2020
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. function UpdateProgress3(const playerid) {
  2. new
  3. szStr[64],
  4. exp = PlayerInfo[playerid][pLevel]*levelexp,
  5. Float: textdrawProcent = (267 + PlayerInfo[playerid][pExp] * 100 / exp);
  6.  
  7. format(szStr,sizeof szStr,"_LEVEL %d (%d%s)", PlayerInfo[playerid][pLevel], (PlayerInfo[playerid][pExp] * 100 / exp),"%");
  8. PlayerTextDrawSetString(playerid, LevelTD[playerid][0], szStr);
  9. PlayerTextDrawShow(playerid, LevelTD[playerid][0]), PlayerTextDrawShow(playerid, LevelTD[playerid][1]);
  10.  
  11. PlayerTextDrawTextSize(playerid, LevelTD[playerid][2], textdrawProcent, 0.000000);
  12. PlayerTextDrawHide(playerid, LevelTD[playerid][2]), PlayerTextDrawShow(playerid, LevelTD[playerid][2]);
  13. return 1;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement