Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case DIALOG_SKIN: {
- if(!response) return 1;
- new id = listitem;
- if(PlayerInfo[playerid][pSkins][id] == -1) return SCM(playerid, -1, "Nu ai un skin pe acest slot!");
- ShowPlayerDialog(playerid, DIALOG_SKIN+1, DIALOG_STYLE_MSGBOX, "My Skins", "Selecteaza actiunea pe care doresti sa o faci:", "Pune", "Sterge");
- SetPVarInt(playerid, "skin", id);
- }
- case DIALOG_SKIN+1:
- {
- new id = PlayerInfo[id][pSkins][GetPVarInt(playerid, "skin")];
- switch(response)
- {
- case 0:
- {
- if(GetPVarInt(playerid, "skin") == 0) return SCM(playerid, COLOR_LGREEN, "Nu poti sterge skinul de civil!");
- if(GetPlayerSkin(playerid) == id)
- {
- PlayerInfo[playerid][pChar] = 250;
- SetPlayerSkin(playerid, 250);
- UpdateVar(playerid, "CChar", id);
- }
- PlayerInfo[playerid][pSkins][GetPVarInt(playerid, "skin")] = -1;
- save_skin(playerid);
- SCM(playerid, COLOR_YELLOW, "Skin sters!");
- }
- case 1:
- {
- SetPlayerSkin(playerid, id);
- PlayerInfo[playerid][pChar] = id;
- UpdateVar(playerid, "CChar", id);
- if(PlayerInfo[playerid][pChar] > 0) SetPlayerSkinEx(playerid, PlayerInfo[playerid][pChar]);
- SCM(playerid, COLOR_YELLOW, "Skin pus!");
- }
- }
- DeletePVar(playerid, "skin");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement