Advertisement
Guest User

Untitled

a guest
Apr 17th, 2020
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. case DIALOG_SKIN: {
  2. if(!response) return 1;
  3. new id = listitem;
  4. if(PlayerInfo[playerid][pSkins][id] == -1) return SCM(playerid, -1, "Nu ai un skin pe acest slot!");
  5. ShowPlayerDialog(playerid, DIALOG_SKIN+1, DIALOG_STYLE_MSGBOX, "My Skins", "Selecteaza actiunea pe care doresti sa o faci:", "Pune", "Sterge");
  6. SetPVarInt(playerid, "skin", id);
  7. }
  8.  
  9. case DIALOG_SKIN+1:
  10. {
  11. new id = PlayerInfo[id][pSkins][GetPVarInt(playerid, "skin")];
  12. switch(response)
  13. {
  14. case 0:
  15. {
  16. if(GetPVarInt(playerid, "skin") == 0) return SCM(playerid, COLOR_LGREEN, "Nu poti sterge skinul de civil!");
  17. if(GetPlayerSkin(playerid) == id)
  18. {
  19. PlayerInfo[playerid][pChar] = 250;
  20. SetPlayerSkin(playerid, 250);
  21. UpdateVar(playerid, "CChar", id);
  22. }
  23. PlayerInfo[playerid][pSkins][GetPVarInt(playerid, "skin")] = -1;
  24. save_skin(playerid);
  25. SCM(playerid, COLOR_YELLOW, "Skin sters!");
  26. }
  27. case 1:
  28. {
  29. SetPlayerSkin(playerid, id);
  30. PlayerInfo[playerid][pChar] = id;
  31. UpdateVar(playerid, "CChar", id);
  32. if(PlayerInfo[playerid][pChar] > 0) SetPlayerSkinEx(playerid, PlayerInfo[playerid][pChar]);
  33. SCM(playerid, COLOR_YELLOW, "Skin pus!");
  34. }
  35. }
  36. DeletePVar(playerid, "skin");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement