Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.96 KB | None | 0 0
  1. forward LevelSistem(playerid);
  2. public LevelSistem(playerid)
  3. {
  4.  
  5. foreach(Player, i) //oviepazi
  6. {
  7. new string[128];
  8. new nxtlevel = PlayerInfo[i][pLevel]+1;
  9. new expamount = nxtlevel*levelexp;
  10. format(string, sizeof(string), "%d/%d",PlayerInfo[i][pExp],expamount);
  11. TextDrawSetString(EXPTD21[i], string);
  12. if(PlayerInfo[i][pExp] <= (expamount/24)*1)
  13. {
  14. TextDrawSetString(mockoto4[i], "I");
  15. }
  16. if(PlayerInfo[i][pExp] <= (expamount/24)*2 && PlayerInfo[i][pExp] > (expamount/24)*1)
  17. {
  18. TextDrawSetString(mockoto4[i], "II");
  19. }
  20. if(PlayerInfo[i][pExp] <= (expamount/24)*3 && PlayerInfo[i][pExp] > (expamount/24)*2)
  21. {
  22. TextDrawSetString(mockoto4[i], "III");
  23. }
  24. if(PlayerInfo[i][pExp] <= (expamount/24)*4 && PlayerInfo[i][pExp] > (expamount/24)*3)
  25. {
  26. TextDrawSetString(mockoto4[i], "IIII");
  27. }
  28. if(PlayerInfo[i][pExp] <= (expamount/24)*5 && PlayerInfo[i][pExp] > (expamount/24)*4)
  29. {
  30. TextDrawSetString(mockoto4[i], "IIIII");
  31. }
  32. if(PlayerInfo[i][pExp] <= (expamount/24)*6 && PlayerInfo[i][pExp] > (expamount/24)*5)
  33. {
  34. TextDrawSetString(mockoto4[i], "IIIIII");
  35. }
  36. if(PlayerInfo[i][pExp] <= (expamount/24)*7 && PlayerInfo[i][pExp] > (expamount/24)*6)
  37. {
  38. TextDrawSetString(mockoto4[i], "IIIIIII");
  39. }
  40. if(PlayerInfo[i][pExp] <= (expamount/24)*8 && PlayerInfo[i][pExp] > (expamount/24)*7)
  41. {
  42. TextDrawSetString(mockoto4[i], "IIIIIIII");
  43. }
  44. if(PlayerInfo[i][pExp] <= (expamount/24)*9 && PlayerInfo[i][pExp] > (expamount/24)*8)
  45. {
  46. TextDrawSetString(mockoto4[i], "IIIIIIIII");
  47. }
  48. if(PlayerInfo[i][pExp] <= (expamount/24)*10 && PlayerInfo[i][pExp] > (expamount/24)*9)
  49. {
  50. TextDrawSetString(mockoto4[i], "IIIIIIIIII");
  51. }
  52. if(PlayerInfo[i][pExp] <= (expamount/24)*11 && PlayerInfo[i][pExp] > (expamount/24)*10)
  53. {
  54. TextDrawSetString(mockoto4[i], "IIIIIIIIIII");
  55. }
  56. if(PlayerInfo[i][pExp] <= (expamount/24)*12 && PlayerInfo[i][pExp] > (expamount/24)*11)
  57. {
  58. TextDrawSetString(mockoto4[i], "IIIIIIIIIIII");
  59. }
  60. if(PlayerInfo[i][pExp] <= (expamount/24)*13 && PlayerInfo[i][pExp] > (expamount/24)*12)
  61. {
  62. TextDrawSetString(mockoto4[i], "IIIIIIIIIIIII");
  63. }
  64. if(PlayerInfo[i][pExp] <= (expamount/24)*14 && PlayerInfo[i][pExp] > (expamount/24)*13)
  65. {
  66. TextDrawSetString(mockoto4[i], "IIIIIIIIIIIIII");
  67. }
  68. if(PlayerInfo[i][pExp] <= (expamount/24)*15 && PlayerInfo[i][pExp] > (expamount/24)*14)
  69. {
  70. TextDrawSetString(mockoto4[i], "IIIIIIIIIIIIIII");
  71. }
  72. if(PlayerInfo[i][pExp] <= (expamount/24)*16 && PlayerInfo[i][pExp] > (expamount/24)*15)
  73. {
  74. TextDrawSetString(mockoto4[i], "IIIIIIIIIIIIIIII");
  75. }
  76. if(PlayerInfo[i][pExp] <= (expamount/24)*17 && PlayerInfo[i][pExp] > (expamount/24)*16)
  77. {
  78. TextDrawSetString(mockoto4[i], "IIIIIIIIIIIIIIIII");
  79. }
  80. if(PlayerInfo[i][pExp] <= (expamount/24)*18 && PlayerInfo[i][pExp] > (expamount/24)*17)
  81. {
  82. TextDrawSetString(mockoto4[i], "IIIIIIIIIIIIIIIIII");
  83. }
  84. if(PlayerInfo[i][pExp] <= (expamount/24)*19 && PlayerInfo[i][pExp] > (expamount/24)*18)
  85. {
  86. TextDrawSetString(mockoto4[i], "IIIIIIIIIIIIIIIIIII");
  87. }
  88. if(PlayerInfo[i][pExp] <= (expamount/24)*20 && PlayerInfo[i][pExp] > (expamount/24)*19)
  89. {
  90. TextDrawSetString(mockoto4[i], "IIIIIIIIIIIIIIIIIIII");
  91. }
  92. if(PlayerInfo[i][pExp] <= (expamount/24)*21 && PlayerInfo[i][pExp] > (expamount/24)*20)
  93. {
  94. TextDrawSetString(mockoto4[i], "IIIIIIIIIIIIIIIIIIIII");
  95. }
  96. if(PlayerInfo[i][pExp] <= (expamount/24)*22 && PlayerInfo[i][pExp] > (expamount/24)*21)
  97. {
  98. TextDrawSetString(mockoto4[i], "IIIIIIIIIIIIIIIIIIIIII");
  99. }
  100. if(PlayerInfo[i][pExp] <= (expamount/24)*23 && PlayerInfo[i][pExp] > (expamount/24)*22)
  101. {
  102. TextDrawSetString(mockoto4[i], "IIIIIIIIIIIIIIIIIIIIIII");
  103. }
  104. if(PlayerInfo[i][pExp] <= (expamount/24)*24 && PlayerInfo[i][pExp] > (expamount/24)*23)
  105. {
  106. TextDrawSetString(mockoto4[i], "IIIIIIIIIIIIIIIIIIIIIIII");
  107. }
  108. new TAB = PlayerInfo[i][pLevel];
  109. SetPlayerScore(i, TAB);
  110. PlayerInfo[playerid][pKesh] = GetPlayerMoney(playerid);
  111. }
  112. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement