- 0
Problema /skins.
-
Similar Content
-
Problema turf
By Soryn.,
- 3 answers
- 262 views
-
- 1 reply
- 179 views
-
Problema
By ImJustSlim,
- 3 answers
- 286 views
-
- 2 replies
- 157 views
-
- 1 answer
- 312 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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;
}
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.