1Dima0990
Умник
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;
}
}
