Guest User

dsd

a guest
May 16th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.77 KB | None | 0 0
  1.  case DIALOG_CRATES: {
  2.             if(!response) return 1;
  3.             switch(listitem) {
  4.                 case 0: {
  5.                     if(PlayerInfo[playerid][pCrates][0] == 0); return SCM(playerid, -1, "EROARE: Nu ai un crate normal!");
  6.                     PlayerInfo[playerid][pCrates][0] --;
  7.                     save_crates(playerid);
  8.                 }
  9.                 case 1: {
  10.                     if(PlayerInfo[playerid][pCrates][1] == 0) return SCM(playerid, -1, "EROARE: Nu ai un crate premium!");
  11.                     PlayerInfo[playerid][pCrates][1] --;
  12.                     save_crates(playerid);
  13.                 }
  14.             }
  15.             CrateType[playerid] = listitem;
  16.             CrateTime[playerid] = 20;
  17.             PlayerTextDrawSetString(playerid, CrateTD, "Loading...");
  18.             PlayerTextDrawhow(playerid, CrateTD);
  19.          }
Add Comment
Please, Sign In to add comment