Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward LevelSistem(playerid);
- public LevelSistem(playerid)
- {
- foreach(Player, i) //oviepazi
- {
- new string[128];
- new nxtlevel = PlayerInfo[i][pLevel]+1;
- new expamount = nxtlevel*levelexp;
- format(string, sizeof(string), "%d/%d",PlayerInfo[i][pExp],expamount);
- TextDrawSetString(EXPTD21[i], string);
- if(PlayerInfo[i][pExp] <= (expamount/24)*1)
- {
- TextDrawSetString(mockoto4[i], "I");
- }
- if(PlayerInfo[i][pExp] <= (expamount/24)*2 && PlayerInfo[i][pExp] > (expamount/24)*1)
- {
- TextDrawSetString(mockoto4[i], "II");
- }
- if(PlayerInfo[i][pExp] <= (expamount/24)*3 && PlayerInfo[i][pExp] > (expamount/24)*2)
- {
- TextDrawSetString(mockoto4[i], "III");
- }
- if(PlayerInfo[i][pExp] <= (expamount/24)*4 && PlayerInfo[i][pExp] > (expamount/24)*3)
- {
- TextDrawSetString(mockoto4[i], "IIII");
- }
- if(PlayerInfo[i][pExp] <= (expamount/24)*5 && PlayerInfo[i][pExp] > (expamount/24)*4)
- {
- TextDrawSetString(mockoto4[i], "IIIII");
- }
- if(PlayerInfo[i][pExp] <= (expamount/24)*6 && PlayerInfo[i][pExp] > (expamount/24)*5)
- {
- TextDrawSetString(mockoto4[i], "IIIIII");
- }
- if(PlayerInfo[i][pExp] <= (expamount/24)*7 && PlayerInfo[i][pExp] > (expamount/24)*6)
- {
- TextDrawSetString(mockoto4[i], "IIIIIII");
- }
- if(PlayerInfo[i][pExp] <= (expamount/24)*8 && PlayerInfo[i][pExp] > (expamount/24)*7)
- {
- TextDrawSetString(mockoto4[i], "IIIIIIII");
- }
- if(PlayerInfo[i][pExp] <= (expamount/24)*9 && PlayerInfo[i][pExp] > (expamount/24)*8)
- {
- TextDrawSetString(mockoto4[i], "IIIIIIIII");
- }
- if(PlayerInfo[i][pExp] <= (expamount/24)*10 && PlayerInfo[i][pExp] > (expamount/24)*9)
- {
- TextDrawSetString(mockoto4[i], "IIIIIIIIII");
- }
- if(PlayerInfo[i][pExp] <= (expamount/24)*11 && PlayerInfo[i][pExp] > (expamount/24)*10)
- {
- TextDrawSetString(mockoto4[i], "IIIIIIIIIII");
- }
- if(PlayerInfo[i][pExp] <= (expamount/24)*12 && PlayerInfo[i][pExp] > (expamount/24)*11)
- {
- TextDrawSetString(mockoto4[i], "IIIIIIIIIIII");
- }
- if(PlayerInfo[i][pExp] <= (expamount/24)*13 && PlayerInfo[i][pExp] > (expamount/24)*12)
- {
- TextDrawSetString(mockoto4[i], "IIIIIIIIIIIII");
- }
- if(PlayerInfo[i][pExp] <= (expamount/24)*14 && PlayerInfo[i][pExp] > (expamount/24)*13)
- {
- TextDrawSetString(mockoto4[i], "IIIIIIIIIIIIII");
- }
- if(PlayerInfo[i][pExp] <= (expamount/24)*15 && PlayerInfo[i][pExp] > (expamount/24)*14)
- {
- TextDrawSetString(mockoto4[i], "IIIIIIIIIIIIIII");
- }
- if(PlayerInfo[i][pExp] <= (expamount/24)*16 && PlayerInfo[i][pExp] > (expamount/24)*15)
- {
- TextDrawSetString(mockoto4[i], "IIIIIIIIIIIIIIII");
- }
- if(PlayerInfo[i][pExp] <= (expamount/24)*17 && PlayerInfo[i][pExp] > (expamount/24)*16)
- {
- TextDrawSetString(mockoto4[i], "IIIIIIIIIIIIIIIII");
- }
- if(PlayerInfo[i][pExp] <= (expamount/24)*18 && PlayerInfo[i][pExp] > (expamount/24)*17)
- {
- TextDrawSetString(mockoto4[i], "IIIIIIIIIIIIIIIIII");
- }
- if(PlayerInfo[i][pExp] <= (expamount/24)*19 && PlayerInfo[i][pExp] > (expamount/24)*18)
- {
- TextDrawSetString(mockoto4[i], "IIIIIIIIIIIIIIIIIII");
- }
- if(PlayerInfo[i][pExp] <= (expamount/24)*20 && PlayerInfo[i][pExp] > (expamount/24)*19)
- {
- TextDrawSetString(mockoto4[i], "IIIIIIIIIIIIIIIIIIII");
- }
- if(PlayerInfo[i][pExp] <= (expamount/24)*21 && PlayerInfo[i][pExp] > (expamount/24)*20)
- {
- TextDrawSetString(mockoto4[i], "IIIIIIIIIIIIIIIIIIIII");
- }
- if(PlayerInfo[i][pExp] <= (expamount/24)*22 && PlayerInfo[i][pExp] > (expamount/24)*21)
- {
- TextDrawSetString(mockoto4[i], "IIIIIIIIIIIIIIIIIIIIII");
- }
- if(PlayerInfo[i][pExp] <= (expamount/24)*23 && PlayerInfo[i][pExp] > (expamount/24)*22)
- {
- TextDrawSetString(mockoto4[i], "IIIIIIIIIIIIIIIIIIIIIII");
- }
- if(PlayerInfo[i][pExp] <= (expamount/24)*24 && PlayerInfo[i][pExp] > (expamount/24)*23)
- {
- TextDrawSetString(mockoto4[i], "IIIIIIIIIIIIIIIIIIIIIIII");
- }
- new TAB = PlayerInfo[i][pLevel];
- SetPlayerScore(i, TAB);
- PlayerInfo[playerid][pKesh] = GetPlayerMoney(playerid);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement