Доступ к архиву

Переход в группу "Пользователь"

300.00 ₽
Одноразовый платёж
Быстрый переход в группу "Пользователи", без надобности написания постов и ожидания.

Покупка дает возможность:
Быть полноправным участником форума
Нормальное копирование кода
Создавать темы
Скачивать файлы
Доступ к архиву Pawno-Info

/changeskin

Статус
В этой теме нельзя размещать новые ответы.

Sweet_Bridges

Умник
Здравствуйте уважаемые пользователи pawno-info.ru

Мне нужна помощь с командой /changeskin, лидеры дают скины, но после релога скин пропадает. Не могли-бы вы мне помочь?
​

PHP:
if(strcmp(cmd,"/changeskin",true)==0){
       if(PlayerInfo[playerid][pLeader] >= 1 || PlayerInfo[playerid][pRang] >= 9){
            new skinid;
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp)) return SCM(playerid, -1, " Используй: /changeskin [id]");
            skinid = ReturnUser(tmp);
            new Leader;
            if(PlayerInfo[playerid][pLeader] >0) Leader = PlayerInfo[playerid][pLeader];
            else Leader = PlayerInfo[playerid][pMember];
            if(Leader == PlayerInfo[skinid][pMember]){
                SetPVarInt(playerid,"SKIN",skinid);
                SPD(playerid, 2351, DIALOG_STYLE_LIST,"Выдача скина", "Скин №1\nСкин №2\nСкин №3\nСкин №4\nСкин №5\nСкин №6\nСкин №7\nСкин №8\nСкин №9\nСкин №10\nСкин №11\nСкин №12","Выдать","Отмена");return 1;}else{SendClientMessage(playerid, COLOR_GRAD1, "Этот человек не в вашей фракции!");return 1;}}return true;}
PHP:
case 2351:
		{
			if(response)
			{
				switch(listitem)
				{
				case 0: // СКИН №1
					{
						switch(PlayerInfo[playerid][pMember])
						{
						case 1: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 98);//Адм призидент -_-
						case 2..4: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 98);//Правительство
						case 5: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 295);// МО
						case 6..8: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 255);// Армии
						case 9: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 294);// МВД
						case 10..12: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 265);// Полиция
						case 13: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 286);// ФБР
						case 14: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 295);//СМИ УПРОВЛ
						case 15..17: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 170);//СМИ
						case 18: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 274); //Медики
						case 19: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 105); //грув
						case 20: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 102); //Баллас
						case 21: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 175); //РиФА
						case 22: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 116); //Азтеки
						case 23: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 108); //Вагосы
						case 24: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 98); // ЛКН
						case 25: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 112); //Русская Мафия
						case 26: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 121); //Яки
						case 27: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 216); //Медики МИНИСТ
						case 28..29: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 274); //Медики
						case 30: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 170);//СМИ ТВ
						}
						PlayerInfo[GetPVarInt(playerid,"SKIN")][pSkin] = GetPlayerSkin(playerid);
					}
				case 1:// СКИН №2
					{
						switch(PlayerInfo[playerid][pMember])
						{
						case 1: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 164); //Адм призидент -_-
						case 2..4: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 164); //Правительство
						case 5: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 191); //МО
						case 6..8: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 61); // Армии
						case 9: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 93);// МВД
						case 10..12: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 266);// Полиция
						case 13: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 164);// ФБР
						case 14: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 233);//СМИ УПРОВЛ
						case 15..17: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 250);//СМИ
						case 18: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 276); //Медики
						case 19: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 106); //грув
						case 20: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 103); //Баллас
						case 21: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 174); //РиФА
						case 22: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 114); //Азтеки
						case 23: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 110); //Вагосы
						case 24: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 124); // ЛКН
						case 25: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 125); //Русская Мафия
						case 26: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 122); //Яки
						case 27: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 295); //Медики МИНИСТ
						case 28..29: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 276); //Медики
						case 30: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 250);//СМИ ТВ
						}
						PlayerInfo[GetPVarInt(playerid,"SKIN")][pSkin] = GetPlayerSkin(playerid);
					}
				case 2:// СКИН №3
					{
						switch(PlayerInfo[playerid][pMember])
						{
						case 1: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 165); //Адм призидент -_-
						case 2..4: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 165); //Правительство
						case 6..8: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 287); // Армии
						case 10..12: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 267);// Полиция
						case 13: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 163);// ФБР
						case 15..17: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 188);//СМИ
						case 18: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 275); //Медики
						case 19: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 107); //грув
						case 20: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 104); //Баллас
						case 21: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 173); //РиФА
						case 22: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 115); //Азтеки
						case 23: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 109); //Вагосы
						case 24: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 127); // ЛКН
						case 25: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 46); //Русская Мафия
						case 26: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 123); //Яки
						case 28..29: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 275); //Медики
						case 30: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 188);//СМИ ТВ
						}
						PlayerInfo[GetPVarInt(playerid,"SKIN")][pSkin] = GetPlayerSkin(playerid);
					}
				case 3:// СКИН №4
					{
						switch(PlayerInfo[playerid][pMember])
						{
						case 1: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 185); //Адм призидент -_-
						case 2..4: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 185); //Правительство
						case 6..8: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 191); // Армии
						case 10..12: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 280);// Полиция
						case 13: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 165);// ФБР
						case 15..17: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 187);//СМИ
						case 18: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 70); //Медики
						case 19: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 195); //грув
						case 20: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 195); //Баллас
						case 21: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 226); //РиФА
						case 22: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 193); //Азтеки
						case 23: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 56); //Вагосы
						case 24: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 216); // ЛКН
						case 25: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 233); //Русская Мафия
						case 26: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 169); //Яки
						case 28..29: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 70); //Медики
						case 30: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 187);//СМИ ТВ
						}
						PlayerInfo[GetPVarInt(playerid,"SKIN")][pSkin] = GetPlayerSkin(playerid);
					}
				case 4:// СКИН №5
					{
						switch(PlayerInfo[playerid][pMember])//case 1..4 это значит с 1 по 4 фракцию одинаковые скины
						{
						case 1: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 59); //Адм призидент -_-
						case 2..4: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 59); //Правительство
						case 10..12: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 281);// Полиция
						case 13: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 166);// ФБР
						case 15..17: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 186);//СМИ
						case 18: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 148); //Медики
						case 19: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 269); //грув
						case 21: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 273); //РиФА
						case 22: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 292); //Азтеки
						case 24: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 113); // ЛКН
						case 25: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 111); //Русская Мафия
						case 26: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 186); //Яки
						case 28..29: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 148); //Медики
						case 30: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 186);//СМИ ТВ
						}
						PlayerInfo[GetPVarInt(playerid,"SKIN")][pSkin] = GetPlayerSkin(playerid);
					}
				case 5:// СКИН №6
					{
						switch(PlayerInfo[playerid][pMember])//case 1..4 это значит с 1 по 4 фракцию одинаковые скины
						{
						case 1: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 240); //Адм призидент -_-
						case 2..4: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 240); //Правительство
						case 10..12: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 282);// Полиция
						case 13: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 192);// ФБР
						case 15..17: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 223);//СМИ
						case 19: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 270); //грув
						case 24: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 93); // ЛКН
						case 25: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 126); //Русская Мафия
						case 26: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 120); //Яки
						case 30: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 223);//СМИ ТВ
						}
						PlayerInfo[GetPVarInt(playerid,"SKIN")][pSkin] = GetPlayerSkin(playerid);
					}
				case 6:// СКИН №7
					{
						switch(PlayerInfo[playerid][pMember])//case 1..4 это значит с 1 по 4 фракцию одинаковые скины
						{
						case 1: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 187); //Адм призидент -_-
						case 2..4: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 187); //Правительство
						case 10..12: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 283);// Полиция
						case 15..17: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 150);//СМИ
						case 19: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 271); //грув
						case 25: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 91); //Русская Мафия
						case 26: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 12); //Яки
						case 30: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 150);//СМИ ТВ
						}
						PlayerInfo[GetPVarInt(playerid,"SKIN")][pSkin] = GetPlayerSkin(playerid);
					}
				case 7:// СКИН №8
					{
						switch(PlayerInfo[playerid][pMember])//case 1..4 это значит с 1 по 4 фракцию одинаковые скины
						{
						case 1: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 17); //Адм призидент -_-
						case 2..4: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 17); //Правительство
						case 10..12: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 284);// Полиция
						case 15..17: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 141);//СМИ
						case 19: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 149); //грув
						case 26: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 294); //Яки
						case 30: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 141);//СМИ ТВ
						}
						PlayerInfo[GetPVarInt(playerid,"SKIN")][pSkin] = GetPlayerSkin(playerid);
					}
				case 8:// СКИН №9
					{
						switch(PlayerInfo[playerid][pMember])//case 1..4 это значит с 1 по 4 фракцию одинаковые скины
						{
						case 1: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 147); //Адм призидент -_-
						case 2..4: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 227); //Правительство
						case 10..12: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 285);// Полиция
						case 19: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 86); //грув
						}
						PlayerInfo[GetPVarInt(playerid,"SKIN")][pSkin] = GetPlayerSkin(playerid);
					}
				case 9:// СКИН №10
					{
						switch(PlayerInfo[playerid][pMember])//case 1..4 это значит с 1 по 4 фракцию одинаковые скины
						{
						case 1: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 150); //Адм призидент -_-
						case 2..4: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 150); //Правительство
						case 10..12: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 288);// Полиция
						}
						PlayerInfo[GetPVarInt(playerid,"SKIN")][pSkin] = GetPlayerSkin(playerid);
					}
				case 10:// СКИН №11
					{
						switch(PlayerInfo[playerid][pMember])//case 1..4 это значит с 1 по 4 фракцию одинаковые скины
						{
						case 1: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 141); //Адм призидент -_-
						case 2..4: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 141); //Правительство
						case 10..12: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 192);// Полиция
						}
						PlayerInfo[GetPVarInt(playerid,"SKIN")][pSkin] = GetPlayerSkin(playerid);
					}
				case 11:// СКИН №12
					{
						switch(PlayerInfo[playerid][pMember])//case 1..4 это значит с 1 по 4 фракцию одинаковые скины
						{
						case 1: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 219); //Адм призидент -_-
						case 2..4: SetPlayerSkin(GetPVarInt(playerid,"SKIN"), 219); //Правительство
						}
						PlayerInfo[GetPVarInt(playerid,"SKIN")][pSkin] = GetPlayerSkin(playerid);
					}
				} 	} }
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу