Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2014
821
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.10 KB | None | 0 0
  1. // skripta je izdradjena od William Bonin!
  2. //===================================TextDrawvovi======================================
  3. expsistem1[playerid] = TextDrawCreate(499.000000, 98.000000, "IIIIIIIIIIIIIIIIIIIIIIII");
  4. TextDrawBackgroundColor(mockoto4[playerid], 255);
  5. TextDrawFont(mockoto4[playerid], 1);
  6. TextDrawLetterSize(mockoto4[playerid], 0.409999, 3.000000);
  7. TextDrawColor(mockoto4[playerid], -65451);
  8. TextDrawSetOutline(mockoto4[playerid], 0);
  9. TextDrawSetProportional(mockoto4[playerid], 1);
  10. TextDrawSetShadow(mockoto4[playerid], 0);
  11. TextDrawSetSelectable(mockoto4[playerid], 0);
  12.  
  13. expsistem[playerid] = TextDrawCreate(553.000000, 106.000000, "3/960");
  14. TextDrawAlignment(exp[playerid], 2);
  15. TextDrawBackgroundColor(exp[playerid], 255);
  16. TextDrawFont(exp[playerid], 2);
  17. TextDrawLetterSize(exp[playerid], 0.300000, 1.300000);
  18. TextDrawColor(exp[playerid], -1);
  19. TextDrawSetOutline(exp[playerid], 1);
  20. TextDrawSetProportional(exp[playerid], 1);
  21. TextDrawSetSelectable(exp[playerid], 0);
  22.  
  23. new Text:expsistem1[MAX_PLAYERS];
  24. //--------------------------------------------------
  25. forward LevelSistem(playerid);
  26. public LevelSistem(playerid)
  27. {
  28.  
  29. for(new i = 0; i < MAX_PLAYERS; i++)
  30. {
  31. new string[128];
  32. new nxtlevel = PlayerInfo[i][pLevel]+1;
  33. new expamount = nxtlevel*levelexp;
  34. format(string, sizeof(string), "%d/%d",PlayerInfo[i][pExp],expamount);
  35. TextDrawSetString(exp[i], string);
  36. if(PlayerInfo[i][pExp] <= (expamount/24)*1)
  37. {
  38. TextDrawSetString(expsistem1[i], "I");
  39. }
  40. if(PlayerInfo[i][pExp] <= (expamount/24)*2 && PlayerInfo[i][pExp] > (expamount/24)*1)
  41. {
  42. TextDrawSetString(expsistem1[i], "II");
  43. }
  44. if(PlayerInfo[i][pExp] <= (expamount/24)*3 && PlayerInfo[i][pExp] > (expamount/24)*2)
  45. {
  46. TextDrawSetString(expsistem1[i], "III");
  47. }
  48. if(PlayerInfo[i][pExp] <= (expamount/24)*4 && PlayerInfo[i][pExp] > (expamount/24)*3)
  49. {
  50. TextDrawSetString(expsistem1[i], "IIII");
  51. }
  52. if(PlayerInfo[i][pExp] <= (expamount/24)*5 && PlayerInfo[i][pExp] > (expamount/24)*4)
  53. {
  54. TextDrawSetString(expsistem1[i], "IIIII");
  55. }
  56. if(PlayerInfo[i][pExp] <= (expamount/24)*6 && PlayerInfo[i][pExp] > (expamount/24)*5)
  57. {
  58. TextDrawSetString(expsistem1[i], "IIIIII");
  59. }
  60. if(PlayerInfo[i][pExp] <= (expamount/24)*7 && PlayerInfo[i][pExp] > (expamount/24)*6)
  61. {
  62. TextDrawSetString(expsistem1[i], "IIIIIII");
  63. }
  64. if(PlayerInfo[i][pExp] <= (expamount/24)*8 && PlayerInfo[i][pExp] > (expamount/24)*7)
  65. {
  66. TextDrawSetString(expsistem1[i], "IIIIIIII");
  67. }
  68. if(PlayerInfo[i][pExp] <= (expamount/24)*9 && PlayerInfo[i][pExp] > (expamount/24)*8)
  69. {
  70. TextDrawSetString(expsistem1[i], "IIIIIIIII");
  71. }
  72. if(PlayerInfo[i][pExp] <= (expamount/24)*10 && PlayerInfo[i][pExp] > (expamount/24)*9)
  73. {
  74. TextDrawSetString(expsistem1[i], "IIIIIIIIII");
  75. }
  76. if(PlayerInfo[i][pExp] <= (expamount/24)*11 && PlayerInfo[i][pExp] > (expamount/24)*10)
  77. {
  78. TextDrawSetString(expsistem1[i], "IIIIIIIIIII");
  79. }
  80. if(PlayerInfo[i][pExp] <= (expamount/24)*12 && PlayerInfo[i][pExp] > (expamount/24)*11)
  81. {
  82. TextDrawSetString(expsistem1[i], "IIIIIIIIIIII");
  83. }
  84. if(PlayerInfo[i][pExp] <= (expamount/24)*13 && PlayerInfo[i][pExp] > (expamount/24)*12)
  85. {
  86. TextDrawSetString(expsistem1[i], "IIIIIIIIIIIII");
  87. }
  88. if(PlayerInfo[i][pExp] <= (expamount/24)*14 && PlayerInfo[i][pExp] > (expamount/24)*13)
  89. {
  90. TextDrawSetString(expsistem1[i], "IIIIIIIIIIIIII");
  91. }
  92. if(PlayerInfo[i][pExp] <= (expamount/24)*15 && PlayerInfo[i][pExp] > (expamount/24)*14)
  93. {
  94. TextDrawSetString(expsistem1[i], "IIIIIIIIIIIIIII");
  95. }
  96. if(PlayerInfo[i][pExp] <= (expamount/24)*16 && PlayerInfo[i][pExp] > (expamount/24)*15)
  97. {
  98. TextDrawSetString(expsistem1[i], "IIIIIIIIIIIIIIII");
  99. }
  100. if(PlayerInfo[i][pExp] <= (expamount/24)*17 && PlayerInfo[i][pExp] > (expamount/24)*16)
  101. {
  102. TextDrawSetString(expsistem1[i], "IIIIIIIIIIIIIIIII");
  103. }
  104. if(PlayerInfo[i][pExp] <= (expamount/24)*18 && PlayerInfo[i][pExp] > (expamount/24)*17)
  105. {
  106. TextDrawSetString(expsistem1[i], "IIIIIIIIIIIIIIIIII");
  107. }
  108. if(PlayerInfo[i][pExp] <= (expamount/24)*19 && PlayerInfo[i][pExp] > (expamount/24)*18)
  109. {
  110. TextDrawSetString(expsistem1[i], "IIIIIIIIIIIIIIIIIII");
  111. }
  112. if(PlayerInfo[i][pExp] <= (expamount/24)*20 && PlayerInfo[i][pExp] > (expamount/24)*19)
  113. {
  114. TextDrawSetString(expsistem1[i], "IIIIIIIIIIIIIIIIIIII");
  115. }
  116. if(PlayerInfo[i][pExp] <= (expamount/24)*21 && PlayerInfo[i][pExp] > (expamount/24)*20)
  117. {
  118. TextDrawSetString(expsistem1[i], "IIIIIIIIIIIIIIIIIIIII");
  119. }
  120. if(PlayerInfo[i][pExp] <= (expamount/24)*22 && PlayerInfo[i][pExp] > (expamount/24)*21)
  121. {
  122. TextDrawSetString(expsistem1[i], "IIIIIIIIIIIIIIIIIIIIII");
  123. }
  124. if(PlayerInfo[i][pExp] <= (expamount/24)*23 && PlayerInfo[i][pExp] > (expamount/24)*22)
  125. {
  126. TextDrawSetString(expsistem1[i], "IIIIIIIIIIIIIIIIIIIIIII");
  127. }
  128. if(PlayerInfo[i][pExp] <= (expamount/24)*24 && PlayerInfo[i][pExp] > (expamount/24)*23)
  129. {
  130. TextDrawSetString(expsistem1[i], "IIIIIIIIIIIIIIIIIIIIIIII");
  131. }
  132. new TAB = PlayerInfo[i][pLevel];
  133. SetPlayerScore(i, TAB);
  134. PlayerInfo[playerid][pPari] = GetPlayerMoney(playerid);
  135. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement