Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(CrateTime[i] > 0) {
- CrateTime[i] --;
- new amount, rand = random(6);
- switch(rand) {
- case 0..3: {
- 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)
- {
- static stringg[100];
- GivePlayerCash(i, amount);
- PlayerTextDrawHide(i, CrateTD);
- format(stringg,sizeof stringg,"Ai castigat %d Respect Points",amount);
- SCM(i, COLOR_YELLOW,stringg);
- }
- }
- case 4..6: {
- amount = 100 + random(90);
- 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)
- {
- static stringg[100];
- GivePlayerCash(i, amount);
- PlayerTextDrawHide(i, CrateTD);
- format(stringg,sizeof stringg,"Ai castigat $%d",amount);
- SCM(i, COLOR_YELLOW,stringg);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement