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

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

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

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

помогите с командой

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

I'm Misha

Специалист
Доброго времени суток, у меня такая проблема, я написал команду /object, когда пишу и выбираю объект, то все объекты идут на 0 ид, что я только не пробовал.
Вот сама команда
HTML:
CMD:object(playerid, params[])
	{
	    new giveplayerid;
		if(sscanf(params, "d", giveplayerid)) return  SendClientMessage(playerid, COLOR_WHITE, "Введите: /object [id]");
		if(dostup[playerid] != 1) return ShowPlayerDialog(playerid, 2934, DIALOG_STYLE_INPUT, "Админ авторизация", "Введите пароль\n\nПароль должен состоять из латинских букв и цифр\n	размером от 6 до 15 символов", "Вход", "Отмена");
  		if (PlayerInfo[playerid][pAdminAnew] < 3 ) return SendClientMessage(playerid, COLOR_GRAD1, "Нет прав для использования этой команды");
  		if(giveplayerid != INVALID_PLAYER_ID) { } else {SendClientMessage(playerid, COLOR_GREY, "[Ошибка] Человек не найден!");}
  		if(IsPlayerConnected(giveplayerid))
		{
				ShowPlayerDialog(playerid,8000,DIALOG_STYLE_LIST,"Обьекты","{FFFFFF}Шляпа курицы\nОгонек на голову\nМигалка на голову\nЧерная маска\nБандана №1\nБандана №2\nБандана №3\nБандана №4\nБандана №5\nМаска дракона\nЛазер на голову\nКомплект всемогущий\nПопугай на плечо\nЯркий свет\nБольшой М4 в руку\nПенис\nКостюм попугая\nУдалить все объекты","Выбрать","Закрыть");
		}
		return true;
	}
HTML:
	case 8000:
		{
			new giveplayer[MAX_PLAYER_NAME], bilyash1[128],bilyash2[128],giveplayerid;
			GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
			GetPlayerName(playerid, sendername, sizeof(sendername));
			if(response)
			{
				switch(listitem)
				{
				case 0:
					{
						if(IsPlayerAttachedObjectSlotUsed(giveplayerid, 2)) RemovePlayerAttachedObject(giveplayerid, 2);
						SetPlayerAttachedObject(giveplayerid,2,19137,2,0.100000,0.000000,0.000000,0.000000,0.000000,0.000000,1.000000,1.000000,1.000000);
						format(bilyash1,sizeof(bilyash1),"Администратор %s выдал вам объект [Шляпа Курицы]",sendername);
						format(bilyash2,sizeof(bilyash2),"Вы выдали объект игроку %s [Шляпа Курицы]",giveplayer);
						SendClientMessage(giveplayerid, COLOR_BLUE,bilyash1);
						SendClientMessage(playerid, COLOR_BLUE, bilyash2);
						return true;
					}
				case 1:
					{
						if(IsPlayerAttachedObjectSlotUsed(giveplayerid, 7)) RemovePlayerAttachedObject(giveplayerid, 7);
						SetPlayerAttachedObject(giveplayerid,7, 19270, 2, 0.111052, 0.021643, -0.000846, 92.280899, 92.752510, 358.071044, 1.200000, 1.283168, 1.200000);
						format(bilyash1,sizeof(bilyash1),"Администратор %s выдал вам объект [Огонь на голову]",sendername);
						format(bilyash2,sizeof(bilyash2),"Вы выдали объект игроку %s [Огонь на голову]",giveplayer);
						SendClientMessage(giveplayerid, COLOR_BLUE,bilyash1);
						SendClientMessage(playerid, COLOR_BLUE, bilyash2);
						return true;
					}
				case 2:
					{
						if(IsPlayerAttachedObjectSlotUsed(giveplayerid, 4)) RemovePlayerAttachedObject(giveplayerid, 4);
						SetPlayerAttachedObject(giveplayerid,4, 18646, 2, 0.111052, 0.021643, -0.000846, 92.280899, 92.752510, 358.071044, 1.200000, 1.283168, 1.200000);
						format(bilyash1,sizeof(bilyash1),"Администратор %s выдал вам объект [Мигалка на голову]",sendername);
						format(bilyash2,sizeof(bilyash2),"Вы выдали объект игроку %s [Мигалка на голову]",giveplayer);
						SendClientMessage(giveplayerid, COLOR_BLUE,bilyash1);
						SendClientMessage(playerid, COLOR_BLUE, bilyash2);
						return true;
					}
				case 3:
					{
						if(IsPlayerAttachedObjectSlotUsed(giveplayerid, 7)) RemovePlayerAttachedObject(giveplayerid, 7);
						SetPlayerAttachedObject(giveplayerid,7, 19163, 2, 0.111052, 0.021643, -0.000846, 100.280899, 100.752510, 445.071044, 1.100000, 1.300000, 1.300000);
						format(bilyash1,sizeof(bilyash1),"Администратор %s выдал вам объект [Черная маска]",sendername);
						format(bilyash2,sizeof(bilyash2),"Вы выдали объект игроку %s [Черная маска]",giveplayer);
						SendClientMessage(giveplayerid, COLOR_BLUE,bilyash1);
						SendClientMessage(playerid, COLOR_BLUE, bilyash2);
						return true;
					}
				case 4:
					{
						if(IsPlayerAttachedObjectSlotUsed(giveplayerid, 0)) RemovePlayerAttachedObject(giveplayerid, 0);
						SetPlayerAttachedObject(giveplayerid,0, 18915, 2, 0.1, 0.03, -0.005, 90.0, 180.0, 90.0);
						format(bilyash1,sizeof(bilyash1),"Администратор %s выдал вам объект [Бандана №1]",sendername);
						format(bilyash2,sizeof(bilyash2),"Вы выдали объект игроку %s [Бандана №1]",giveplayer);
						SendClientMessage(giveplayerid, COLOR_BLUE,bilyash1);
						SendClientMessage(playerid, COLOR_BLUE, bilyash2);
						return true;
					}
				case 5:
					{
						if(IsPlayerAttachedObjectSlotUsed(giveplayerid, 0)) RemovePlayerAttachedObject(giveplayerid, 0);
						SetPlayerAttachedObject(giveplayerid,0, 18912, 2, 0.1, 0.03, -0.005, 90.0, 180.0, 90.0);
						format(bilyash1,sizeof(bilyash1),"Администратор %s выдал вам объект [Бандана №2]",sendername);
						format(bilyash2,sizeof(bilyash2),"Вы выдали объект игроку %s [Бандана №2]",giveplayer);
						SendClientMessage(giveplayerid, COLOR_BLUE,bilyash1);
						SendClientMessage(playerid, COLOR_BLUE, bilyash2);
						return true;
					}
				case 6:
					{
						if(IsPlayerAttachedObjectSlotUsed(giveplayerid, 0)) RemovePlayerAttachedObject(giveplayerid, 0);
						SetPlayerAttachedObject(giveplayerid,0, 18916, 2, 0.1, 0.03, -0.005, 90.0, 180.0, 90.0);
						format(bilyash1,sizeof(bilyash1),"Администратор %s выдал вам объект [Бандана №3]",sendername);
						format(bilyash2,sizeof(bilyash2),"Вы выдали объект игроку %s [Бандана №3]",giveplayer);
						SendClientMessage(giveplayerid, COLOR_BLUE,bilyash1);
						SendClientMessage(playerid, COLOR_BLUE, bilyash2);
						return true;
					}
				case 7:
					{
						if(IsPlayerAttachedObjectSlotUsed(giveplayerid, 0)) RemovePlayerAttachedObject(giveplayerid, 0);
						SetPlayerAttachedObject(giveplayerid,0, 18917, 2, 0.1, 0.03, -0.005, 90.0, 180.0, 90.0);
						format(bilyash1,sizeof(bilyash1),"Администратор %s выдал вам объект [Бандана №4]",sendername);
						format(bilyash2,sizeof(bilyash2),"Вы выдали объект игроку %s [Бандана №4]",giveplayer);
						SendClientMessage(giveplayerid, COLOR_BLUE,bilyash1);
						SendClientMessage(playerid, COLOR_BLUE, bilyash2);
						return true;
					}
				case 8:
					{
						if(IsPlayerAttachedObjectSlotUsed(giveplayerid, 0)) RemovePlayerAttachedObject(giveplayerid, 0);
						SetPlayerAttachedObject(giveplayerid,0, 18918, 2, 0.1, 0.03, -0.005, 90.0, 180.0, 90.0);
						format(bilyash1,sizeof(bilyash1),"Администратор %s выдал вам объект [Бандана №5]",sendername);
						format(bilyash2,sizeof(bilyash2),"Вы выдали объект игроку %s [Бандана №5]",giveplayer);
						SendClientMessage(giveplayerid, COLOR_BLUE,bilyash1);
						SendClientMessage(playerid, COLOR_BLUE, bilyash2);
						return true;
					}
				case 9:
					{
						if(IsPlayerAttachedObjectSlotUsed(giveplayerid, 4)) RemovePlayerAttachedObject(giveplayerid, 4);
						SetPlayerAttachedObject(giveplayerid,4, 3528, 2, 0.111052, 0.021643, -0.000846, 92.280899, 92.752510, 358.071044, 0.100000, 0.100000, 0.100000);
						format(bilyash1,sizeof(bilyash1),"Администратор %s выдал вам объект [Маска Дракона]",sendername);
						format(bilyash2,sizeof(bilyash2),"Вы выдали объект игроку %s [Маска Дракона]",giveplayer);
						SendClientMessage(giveplayerid, COLOR_BLUE,bilyash1);
						SendClientMessage(playerid, COLOR_BLUE, bilyash2);
						return true;
					}
				case 10:
					{
						if(IsPlayerAttachedObjectSlotUsed(giveplayerid, 4)) RemovePlayerAttachedObject(giveplayerid, 4);
						SetPlayerAttachedObject(giveplayerid,4, 18643, 2, 0.111052, 0.021643, -0.000846, 92.280899, 92.752510, 358.071044, 1.200000, 1.283168, 1.200000);
						format(bilyash1,sizeof(bilyash1),"Администратор %s выдал вам объект [Лазер на голову]",sendername);
						format(bilyash2,sizeof(bilyash2),"Вы выдали объект игроку %s [Лазер на голову]",giveplayer);
						SendClientMessage(giveplayerid, COLOR_BLUE,bilyash1);
						SendClientMessage(playerid, COLOR_BLUE, bilyash2);
						return true;
					}
				case 11:
					{
						if(IsPlayerAttachedObjectSlotUsed(giveplayerid, 0) || IsPlayerAttachedObjectSlotUsed(giveplayerid, 1) || IsPlayerAttachedObjectSlotUsed(giveplayerid, 4))
						{
							RemovePlayerAttachedObject(giveplayerid, 0);
							RemovePlayerAttachedObject(giveplayerid, 1);
							RemovePlayerAttachedObject(giveplayerid, 4);
						}
						SetPlayerAttachedObject(giveplayerid,0, 18693, 5, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000);
						SetPlayerAttachedObject(giveplayerid,1, 18693, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000);
						SetPlayerAttachedObject(giveplayerid,4, 18965, 2, 0.111052, 0.021643, -0.000846, 92.280899, 92.752510, 358.071044, 1.200000, 1.283168, 1.200000);
						format(bilyash1,sizeof(bilyash1),"Администратор %s выдал вам объект [Комплект всемогущий]",sendername);
						format(bilyash2,sizeof(bilyash2),"Вы выдали объект игроку %s [Комплект всемогущий]",giveplayer);
						SendClientMessage(giveplayerid, COLOR_BLUE,bilyash1);
						SendClientMessage(playerid, COLOR_BLUE, bilyash2);
						return true;
					}
				case 12:
					{
						if(IsPlayerAttachedObjectSlotUsed(giveplayerid, 7)) RemovePlayerAttachedObject(giveplayerid, 7);
						SetPlayerAttachedObject(giveplayerid,7, 19078, 1, 0.329150, -0.072101, 0.156082, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
						format(bilyash1,sizeof(bilyash1),"Администратор %s выдал вам объект [Попугай на плечо]",sendername);
						format(bilyash2,sizeof(bilyash2),"Вы выдали объект игроку %s [Попугай на плечо]",giveplayer);
						SendClientMessage(giveplayerid, COLOR_BLUE,bilyash1);
						SendClientMessage(playerid, COLOR_BLUE, bilyash2);
						return true;
					}
				case 13:
					{
						if(IsPlayerAttachedObjectSlotUsed(giveplayerid, 7)) RemovePlayerAttachedObject(giveplayerid, 7);
						SetPlayerAttachedObject(giveplayerid,7, 354, 1, 0.329150, -0.072101, 0.156082, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
						format(bilyash1,sizeof(bilyash1),"Администратор %s выдал вам объект [Яркий свет]",sendername);
						format(bilyash2,sizeof(bilyash2),"Вы выдали объект игроку %s [Яркий свет]",giveplayer);
						SendClientMessage(giveplayerid, COLOR_BLUE,bilyash1);
						SendClientMessage(playerid, COLOR_BLUE, bilyash2);
						return true;
					}
				case 14:
					{
						if(IsPlayerAttachedObjectSlotUsed(giveplayerid, 1)) RemovePlayerAttachedObject(giveplayerid, 1);
						SetPlayerAttachedObject(giveplayerid,1, 356, 6, 0.013610, -0.021393, -0.144862, 2.354303, 354.413848, 0.219168, 3.034477, 3.000000, 3.000000);
						format(bilyash1,sizeof(bilyash1),"Администратор %s выдал вам объект [Большой М4 в руку]",sendername);
						format(bilyash2,sizeof(bilyash2),"Вы выдали объект игроку %s [Большой М4 в руку]",giveplayer);
						SendClientMessage(giveplayerid, COLOR_BLUE,bilyash1);
						SendClientMessage(playerid, COLOR_BLUE, bilyash2);
						return true;
					}
				case 15:
					{
						if(IsPlayerAttachedObjectSlotUsed(giveplayerid, 1)) RemovePlayerAttachedObject(giveplayerid, 1);
						SetPlayerAttachedObject(giveplayerid,1, 19086, 8, -0.049768, -0.014062, -0.108385, 87.458297, 263.478149, 184.123764, 0.622413, 1.041609, 1.012785);
						format(bilyash1,sizeof(bilyash1),"Администратор %s выдал вам объект [Пенис]",sendername);
						format(bilyash2,sizeof(bilyash2),"Вы выдали объект игроку %s [Пенис]",giveplayer);
						SendClientMessage(giveplayerid, COLOR_BLUE,bilyash1);
						SendClientMessage(playerid, COLOR_BLUE, bilyash2);
						return true;
					}
				case 16:
					{
						if(IsPlayerAttachedObjectSlotUsed(giveplayerid, 0)) RemovePlayerAttachedObject(giveplayerid, 0);
						SetPlayerAttachedObject(giveplayerid,0, 19078, 1, -1.097527, -0.348305, -0.008029, 0.000000, 0.000000, 0.000000, 8.073966, 8.073966, 8.073966);
						format(bilyash1,sizeof(bilyash1),"Администратор %s выдал вам объект [Костюм попугая]",sendername);
						format(bilyash2,sizeof(bilyash2),"Вы выдали объект игроку %s [Костюм попугая]",giveplayer);
						SendClientMessage(giveplayerid, COLOR_BLUE,bilyash1);
						SendClientMessage(playerid, COLOR_BLUE, bilyash2);
						return true;
					}
				case 17:
					{
						RemovePlayerAttachedObject(giveplayerid, 0);
						RemovePlayerAttachedObject(giveplayerid, 1);
						RemovePlayerAttachedObject(giveplayerid, 2);
						RemovePlayerAttachedObject(giveplayerid, 3);
						RemovePlayerAttachedObject(giveplayerid, 4);
						RemovePlayerAttachedObject(giveplayerid, 5);
						RemovePlayerAttachedObject(giveplayerid, 6);
						RemovePlayerAttachedObject(giveplayerid, 7);
						RemovePlayerAttachedObject(giveplayerid, 8);
						RemovePlayerAttachedObject(giveplayerid, 9);
						format(bilyash1,sizeof(bilyash1),"Администратор %s удалил все ваши объекты",sendername);
						format(bilyash2,sizeof(bilyash2),"Вы удалили все объекты игроку %s",giveplayer);
						SendClientMessage(giveplayerid, COLOR_BLUE,bilyash1);
						SendClientMessage(playerid, COLOR_BLUE, bilyash2);
						return true;
					}
				}
			}
		}
Помогите

---------- Post added at 23:08 ---------- Previous post was at 22:21 ----------

подниму:br:
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу