Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(CrateTime[i] > 0) {
- CrateTime[i] --;
- new amount, rand;
- switch(rand) {
- case 10..15: {
- amount = random(5) + 5;
- format(string, sizeof(string), "~r~Crate System~w~~b~~n~~n~Step: %d/30~n~~y~%sx RP", 30-CrateTime[i], FormatNumber(amount));
- PlayerTextDrawSetString(i, CrateTD, string);
- if(CrateTime[i] == 0) PlayerInfo[i][pExp] += amount, Update(i, pRP), PlayerTextDrawHide(i, CrateTD), SCM(i, COLOR_YELLOW, "Ai castigat RP-uri!");
- }
- case 16..20: {
- amount = 100 + random(30);
- format(string, sizeof(string), "~r~Crate System~w~~b~~n~~n~Step: %d/30~n~~p~Skin ID: %s", 30-CrateTime[i], FormatNumber(amount));
- PlayerTextDrawSetString(i, CrateTD, string);
- if(CrateTime[i] == 0) {
- if(total_skins(i) == 10 ) {
- PlayerInfo[i][pCrates] ++;
- save_crates(i);
- PlayerTextDrawHide(i, CrateTD);
- SCM(i, COLOR_YELLOW, "Ai castigat skin, pentru ca ai deja 10 skin-uri ai primit crate-ul inapoi!");
- }
- else {
- PlayerTextDrawHide(i, CrateTD), SCM(i, COLOR_YELLOW, "Ai castigat Skin!");
- give_skin(i, amount);
- }
- }
- }
- default: {
- amount = random(700000) + 500000;
- format(string, sizeof(string), "~r~Crate System~w~~b~~n~~n~Step: %d/30~n~~g~$%s", 30-CrateTime[i], FormatNumber(amount));
- PlayerTextDrawSetString(i, CrateTD, string);
- if(CrateTime[i] == 0) GivePlayerCash(i, amount), PlayerTextDrawHide(i, CrateTD), SCM(i, COLOR_YELLOW, "Ai castigat bani!");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement