Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case DIALOG_CRATES: {
- if(!response) return 1;
- switch(listitem) {
- case 0: {
- if(PlayerInfo[playerid][pCrates][0] == 0); return SCM(playerid, -1, "EROARE: Nu ai un crate normal!");
- PlayerInfo[playerid][pCrates][0] --;
- save_crates(playerid);
- }
- case 1: {
- if(PlayerInfo[playerid][pCrates][1] == 0) return SCM(playerid, -1, "EROARE: Nu ai un crate premium!");
- PlayerInfo[playerid][pCrates][1] --;
- save_crates(playerid);
- }
- }
- CrateType[playerid] = listitem;
- CrateTime[playerid] = 20;
- PlayerTextDrawSetString(playerid, CrateTD, "Loading...");
- PlayerTextDrawhow(playerid, CrateTD);
- }
Add Comment
Please, Sign In to add comment