Advertisement
Guest User

Untitled

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