1Dima0990
Умник
]в магазине одежды у меня тиакая фигня что мужик может подойти к магазину и одеть скин бабы ! это уже баг помогите его исправить как поставить проврку скажите плз
где тут а че ставить ?
PHP:
new ClothesSex[MAX_PLAYERS]; // íóæíî äëÿ ïîëà
new ClothesStyle[MAX_PLAYERS]; // íóæíà äëÿ ñòèëÿ
new ClothesRun[MAX_PLAYERS]; // äëÿ âûáîðà
static SportSkinMale[] = { // Ñïîðòèâíûå ñêèíû ìóæñêèå
20,19,23,22 };
static SportSkinFemale[] = { // Ñïîðòèâíûå ñêèíû æåíñêèå
41,65,75 };
static DelovSkinMale[] = { // Äåëîâûå ñêèíû ìóæñêèå
82,83,84,142,127};
static DelovSkinFemale[] = { // Äåëîâûå ñêèíû æåíñêèå
141,85};
static PovseSkinMale[] = { // Ïîâñåäíåâíûå ñêèíû ìóæ÷èíû
29,6,7,0,79,101 }; //
static PovseSkinFemale[] = { // Ïîâñåäíåâíûå ñêèíû æåíñêèå
90,89,215,219 }; //
PHP:
else if(dialogid == 221)
{
if(response) ClothesSex[playerid] = 1;
else ClothesSex[playerid] = 2;
ShowPlayerDialog(playerid,222,2,"Some-Box: Îäåæäà","{ffffff}Ñïîðòèâíàÿ îäåæäà\nÄåëîâàÿ îäåæäà\nÏîâñåäíåâíàÿ îäåæäà\n{ff0000}Íàçàä","Äàëåå","Îòìåíà");
return 1;
}
if(dialogid == 222)
{
if(!response)
{
SetCameraBehindPlayer(playerid); TogglePlayerControllable(playerid, 1);
SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
ClothesRun[playerid] = 0;
return 1;
}
else
{
if(listitem == 0)
{
ClothesStyle[playerid] = 1;
ShowPlayerDialog(playerid,224,0,"Ñïîðòèâíàÿ îäåæäà","Âûáåðèòå íóæíóþ:","Äàëüøå","Îòìåíà");
return 1;
}
if(listitem == 1)
{
ClothesStyle[playerid] = 2;
ShowPlayerDialog(playerid,224,0,"Äåëîâàÿ îäåæäà","Âûáåðèòå íóæíóþ:","Äàëüøå","Îòìåíà");
return 1;
}
if(listitem == 2)
{
ClothesStyle[playerid] = 3;
ShowPlayerDialog(playerid,224,0,"Ïîâñåäíåâíàÿ îäåæäà","Âûáåðèòå íóæíóþ:","Äàëüøå","Îòìåíà");
return 1;
}
if(listitem == 3)
{
ShowPlayerDialog(playerid,221,0,"Îäåæäà","Âûáåðèòå âèä îäåæäû:","Ìóæñêîé","Æåíñêèé");
return 1;
}
}
}
if(dialogid == 224)
{
if(response)
{
if(ClothesStyle[playerid] == 1)
{
if(ClothesSex[playerid] == 1)
{
ClothesRun[playerid]++;
if(ClothesRun[playerid] >= sizeof(SportSkinMale)) ClothesRun[playerid] = 0;
SetPlayerSkin(playerid, SportSkinMale[ClothesRun[playerid]]);
}
else if(ClothesSex[playerid] == 2)
{
ClothesRun[playerid]++;
if(ClothesRun[playerid] >= sizeof(SportSkinFemale)) ClothesRun[playerid] = 0;
SetPlayerSkin(playerid, SportSkinFemale[ClothesRun[playerid]]);
}
}
else if(ClothesStyle[playerid] == 2)
{
if(ClothesSex[playerid] == 1)
{
ClothesRun[playerid]++;
if(ClothesRun[playerid] >= sizeof(DelovSkinMale)) ClothesRun[playerid] = 0;
SetPlayerSkin(playerid, DelovSkinMale[ClothesRun[playerid]]);
}
else if(ClothesSex[playerid] == 2)
{
ClothesRun[playerid]++;
if(ClothesRun[playerid] >= sizeof(DelovSkinFemale)) ClothesRun[playerid] = 0;
SetPlayerSkin(playerid, DelovSkinFemale[ClothesRun[playerid]]);
}
}
else if(ClothesStyle[playerid] == 3)
{
if(ClothesSex[playerid] == 1)
{
ClothesRun[playerid]++;
if(ClothesRun[playerid] >= sizeof(PovseSkinMale)) ClothesRun[playerid] = 0;
SetPlayerSkin(playerid, PovseSkinMale[ClothesRun[playerid]]);
}
else if(ClothesSex[playerid] == 2)
{
ClothesRun[playerid]++;
if(ClothesRun[playerid] >= sizeof(PovseSkinFemale)) ClothesRun[playerid] = 0;
SetPlayerSkin(playerid, PovseSkinFemale[ClothesRun[playerid]]);
}
}
ShowPlayerDialog(playerid,224,0,"Some-Box","{FFFFFF}Âûáåðåòå ñåáå îäåæäó:","Äàëåå","Âûáðàòü");
return 1;
}
else return ShowPlayerDialog(playerid,225,0,"Êàññà","{FFFFFF}Âû õîòèòå âçÿòü ýòó îäåæäó","Äà","Íåò");
}
if(dialogid == 225)
{
if(response)
{
if(ClothesStyle[playerid] == 1) {
if(ClothesSex[playerid] == 1) PlayerInfo[playerid][pChar] = SportSkinMale[ClothesRun[playerid]];
else if(ClothesSex[playerid] == 2) PlayerInfo[playerid][pChar] = SportSkinFemale[ClothesRun[playerid]]; }
else if(ClothesStyle[playerid] == 2) {
if(ClothesSex[playerid] == 1) PlayerInfo[playerid][pChar] = DelovSkinMale[ClothesRun[playerid]];
else if(ClothesSex[playerid] == 2) PlayerInfo[playerid][pChar] = DelovSkinFemale[ClothesRun[playerid]]; }
else if(ClothesStyle[playerid] == 3) {
if(ClothesSex[playerid] == 1) PlayerInfo[playerid][pChar] = PovseSkinMale[ClothesRun[playerid]];
else if(ClothesSex[playerid] == 2) PlayerInfo[playerid][pChar] = PovseSkinFemale[ClothesRun[playerid]]; }
SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
//GivePlayerMoney(playerid, -1000);
ClothesRun[playerid] = 0;
//SendClientMessage(playerid, COLOR_YELLOW, "* Âû êóïèëè íîâóþ îäåæäó ñ âàñ âçÿëè {009000}1 000$");
SetCameraBehindPlayer(playerid); TogglePlayerControllable(playerid, 1);
return 1;
}
else
{
SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
ClothesRun[playerid] = 0;
ShowPlayerDialog(playerid,222,2,"Îäåæäà","{FFFFFF}Ñïîðòèâíàÿ îäåæäà\nÄåëîâàÿ îäåæäà\nÏîâñåäíåâíàÿ îäåæäà\nÍàçàä","Äàëåå","Îòìåíà");
return 1;
}
}
Последнее редактирование:
