- 0
Problema /skins.
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Shad0wdpbgd
Salut, am aceasta problema la comanda [/skins]. Daca am skin-uri, si sterg din ele, se sterg e ok, cand dau pe ele imi apare ca nu am skin pe slot, dar, problema este ca tot imi apare de ex skin 20 unequipped si nu inteleg de ce deoarece eu am facut sa imi puna none daca sterg un skin. Va rog frumos daca poate sa ma ajute cineva, chiar nu ii dau de cap.
COD DIALOGS:
switch(dialogid) {
case DIALOG_SKIN: {
if(!response) return 1;
new id = listitem;
if(PlayerInfo[playerid][pSkins][id] == -1) return SCM(playerid, COLOR_LGREEN, "Nu ai un skin pe acest slot.");
ShowPlayerDialog(playerid, DIALOG_SKIN+1, DIALOG_STYLE_MSGBOX, "My Skins", "Select the action you desire.", "Equip", "Delete");
SetPVarInt(playerid, "skin", id);
}
case DIALOG_SKIN+1: {
new id = PlayerInfo[playerid][pSkins][GetPVarInt(playerid, "skin")];
switch(response) {
case 0: {
if(GetPVarInt(playerid, "skin") == 0) return SCM(playerid, COLOR_LGREEN, "Nu poti sterge acest skin.");
if(GetPlayerSkin(playerid) == id) {
PlayerInfo[playerid][pChar] = 250;
SetPlayerSkinEx(playerid, 250);
UpdateVar(playerid, "CChar", id);
}
PlayerInfo[playerid][pSkins][GetPVarInt(playerid, "skin")] = -1;
save_skin(playerid);
SCM(playerid, COLOR_YELLOW, "Skin deleted!");
}
case 1: {
PlayerInfo[playerid][pChar] = id;
SetPlayerSkinEx(playerid, id);
UpdateVar(playerid, "CChar", id);
SCM(playerid, COLOR_YELLOW, "Skin equiped!");
}
}
DeletePVar(playerid, "skin");
}
COMANDA [/SKINS]:
CMD:skins(playerid, params[]) {
if(PlayerInfo[playerid][pMember] != 0) return SCM(playerid, COLOR_LGREEN, "Nu poti sa folosesti aceasta comanda deoarece faci parte dintr-o factiune.");
new szDialog[512], string[128];
strcat(szDialog, "#\tSkin ID\tStatus\n");
for(new i; i < 10; i++) {
if(PlayerInfo[playerid][pSkins][i] == GetPlayerSkin(playerid)) format(string, sizeof(string), "%d\t%d\t{00FF00}Equipped\n", i+1, PlayerInfo[playerid][pSkins][i]);
else if(PlayerInfo[playerid][pSkins][i] != -1) format(string, sizeof(string), "%d\t%d\t{B22222}Unequipped\n", i+1, PlayerInfo[playerid][pSkins][i]);
else if(PlayerInfo[playerid][pSkins][i] == 1) format(string, sizeof(string), "%d\tnone\t{FF8C00}Free\n", i+1, PlayerInfo[playerid][pSkins][i]);
strcat(szDialog, string);
}
ShowPlayerDialog(playerid, DIALOG_SKIN, DIALOG_STYLE_TABLIST_HEADERS, "My Skins", szDialog, "Select", "Cancel");
return 1;
}
0 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now