Question

У меня баг с фракционными машинами. Смотрите, допустим я выдал себе лидерку Русской мафии, мне пишет транспорт принадлежит мэрии, выдаю себе лидерку мэрии, и пишет Транспорт принадлежит Русской мафии. Если что говорите какой код скинуть)

Share this post


Link to post

10 answers to this question

  • 0

@f0295655, по тексту из чата найдите блок кода в своем моде, его и скидывайте.

Share this post


Link to post
  • 0

@odosenok     

Цитата

else if(vehicleid >= ruscar[0] && vehicleid <= ruscar[2] && PlayerInfo[playerid][pMember] != 14) return SendClientMessage(playerid, -1, ""#net"Òðàíñïîðò ïðåíàäëåæèò íåëåãàëüíîé îðãàíèçàöèè: Russian Mafia."), RemovePlayerFromVehicle(playerid);

 

Текст исказился, но это не меняет сути. Ид фракции подходящий проверял)

Share this post


Link to post
  • 0
32 минуты назад, f0295655 сказал:

@odosenok     

Текст исказился, но это не меняет сути. Ид фракции подходящий проверял)

проверь "ruscar", там точно машины русской мафии?

Share this post


Link to post
  • 0

@legendabrn 

Спойлер

   	Машинки русской мафии
	ruscar[0] = CreateVehicle(580,964.5038,1707.7654,8.4717,270.1920,0,0,CAR_SPAWN); //
	CreateVehicle(580,956.1552,1707.7443,8.4642,270.0861,0,0,CAR_SPAWN); //
	CreateVehicle(409,950.5296,1716.1368,8.4151,180.2047,0,0,CAR_SPAWN); //
	CreateVehicle(487,955.2507,1754.7340,8.8090,227.3316,0,0,CAR_SPAWN); //
	CreateVehicle(487,955.2507,1754.7340,8.8090,227.3316,0,0,CAR_SPAWN); //
	CreateVehicle(579,983.6653,1742.5369,8.6459,89.9983,0,0,CAR_SPAWN); //
	CreateVehicle(579,983.6631,1738.1848,8.6445,89.9981,0,0,CAR_SPAWN); //
	CreateVehicle(579,983.6636,1733.8856,8.6452,89.9983,0,0,CAR_SPAWN); //
	CreateVehicle(579,983.6652,1729.5123,8.6482,89.9982,0,0,CAR_SPAWN); //
	CreateVehicle(579,983.6371,1725.3397,8.6656,90.2309,0,0,CAR_SPAWN); //
	CreateVehicle(579,983.6531,1721.2339,8.6647,89.9953,0,0,CAR_SPAWN); //
	ruscar[1] = CreateVehicle(579,983.6689,1746.4585,8.6421,89.9979,0,0,CAR_SPAWN); //
	ruscar[2] = CreateVehicle(413,972.7570,1700.6257,8.7394,180.3831,0,0,CAR_SPAWN);
	хз чё
GetVehicleKey(playerid, vehicleid)
{
	return ((PlayerInfo[playerid][pMember] == 15 &&	((vehicleid >= grovecar[0] && vehicleid <= grovecar[1]) || vehicleid == matsfuragrove[0]))	|| (PlayerInfo[playerid][pMember] == 12 &&
	((vehicleid >= ballascar[0] && vehicleid <= ballascar[1]) || vehicleid == matsfuraballas[0]))	|| (PlayerInfo[playerid][pMember] == 13 &&	((vehicleid >= vagoscar[0] && vehicleid <= vagoscar[1]) || vehicleid == matsfuravagos[0]))	|| (PlayerInfo[playerid][pMember] == 17 &&	((vehicleid >= coronoscar[0] && vehicleid <= coronoscar[1]) || vehicleid == matsfuraactek[0]))
	|| (PlayerInfo[playerid][pMember] == 18 &&	((vehicleid >= rifacar[0] && vehicleid <= rifacar[1]) || vehicleid == matsfurarifa[0]))	|| (PlayerInfo[playerid][pMember] == 5 &&	vehicleid >= lcncar[0] && vehicleid <= lcncar[1])	|| (PlayerInfo[playerid][pMember] == 6 &&
	vehicleid >= yakcar[0] && vehicleid <= yakcar[1])	|| (PlayerInfo[playerid][pMember] == 14 &&	vehicleid >= ruscar[0] && vehicleid <= ruscar[1])	|| (PlayerInfo[playerid][pMember] == 16 &&	vehicleid >= lsnewscar[0] && vehicleid <= lsnewscar[1])
	|| (PlayerInfo[playerid][pMember] == 11 &&	vehicleid >= liccar[0] && vehicleid <= liccar[1])	|| (PlayerInfo[playerid][pMember] == 1 &&	vehicleid >= sapdcar[0] && vehicleid <= sapdcar[1])	|| (PlayerInfo[playerid][pMember] == 2 &&
	vehicleid >= fbicar[0] && vehicleid <= fbicar[4])	|| (PlayerInfo[playerid][pMember] == 3 &&	vehicleid >= armycar[0] && vehicleid <= armycar[1])	|| (IsAMayor(playerid) &&	vehicleid >= govcar[0] && vehicleid <= govcar[1])	|| (PlayerInfo[playerid][pMember] == 19 &&	vehicleid >= armcar[0] && vehicleid <= armcar[1])
	|| (PlayerInfo[playerid][pJob] == 1 &&	vehicleid >= mehanik[0] && vehicleid <= mehanik[1])	|| (RentCar[vehicleid] == playerid &&	vehicleid >= rentcarsf[0] && vehicleid <= rentcarsf[1])
	|| (PlayerInfo[playerid][pMember] == 27 &&	vehicleid >= vmfcar[0] && vehicleid <= vmfcar[1]) || (PlayerInfo[playerid][pMember] == 20 && vehicleid >= USACar[0] && vehicleid <= USACar[1]) || (PlayerInfo[playerid][pMember] == 25 &&	vehicleid >= SwatCar[0] && vehicleid <= SwatCar[13])	|| (PlayerInfo[playerid][pMember] == 26 &&
	vehicleid >= ministrcar[0] && vehicleid <= ministrcar[1])	|| (PlayerInfo[playerid][pMember] == 21 &&	vehicleid >= lvpdcar[0] && vehicleid <= lvpdcar[1])	|| (PlayerInfo[playerid][pMember] == 10 &&
	vehicleid >= sfpdcar[0] && vehicleid <= sfpdcar[1]) || (PlayerInfo[playerid][pMember] == 1 && vehicleid >= sapdpatrul[0] && vehicleid <= sapdpatrul[1]) || (PlayerInfo[playerid][pMember] == 24 && vehicleid >= hitcar[0] && vehicleid < hitcar[1])	|| (IsAMedic(playerid) &&	vehicleid >= MedCar[0] && vehicleid <= MedCar[1])) ? true : false;
}
 Хз тоже чё
 
CarEnter(playerid, vehicleid)
{
	if(VodPrava(vehicleid) && !PlayerInfo[playerid][pLicenses][0] && pTemp[playerid][pOnExam]) return SendClientMessage(playerid, -1, ""#net"У Вас нет лицензии на управление т/c."), RemovePlayerFromVehicle(playerid);
	else if(IsABoat(vehicleid) && !PlayerInfo[playerid][pLicenses][2]) return SendClientMessage(playerid, COLOR_WHITE, ""#net"У Вас нет лицензии на управление водным транспортом"), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= SwatCar[0] && vehicleid <= SwatCar[13] && PlayerInfo[playerid][pMember] != 25) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит государственной организации: SWAT."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= hitcar[0] && vehicleid <= hitcar[1] && PlayerInfo[playerid][pMember] != 24) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: Hitmen."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= lsnewscar[0] && vehicleid <= lsnewscar[1] && PlayerInfo[playerid][pMember] != 16) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит государственной организации: San News."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= sfpdcar[0] && vehicleid <= sfpdcar[1] && PlayerInfo[playerid][pMember] != 10) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит государственной организации: SFPD."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= lvpdcar[0] && vehicleid <= lvpdcar[1] && PlayerInfo[playerid][pMember] != 21) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит государственной организации: LVPD."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= ruscar[0] && vehicleid <= ruscar[2] && PlayerInfo[playerid][pMember] != 14) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: Russian Mafia."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= lcncar[0] && vehicleid <= lcncar[2] && PlayerInfo[playerid][pMember] != 5) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: La Cosa Nostra."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= yakcar[0] && vehicleid <= yakcar[2] && PlayerInfo[playerid][pMember] != 6) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: Yakuza."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= govcar[0] && vehicleid <= govcar[1] && !IsAMayor(playerid)) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит государственной организации: Мэрия"), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= bikecar[0] && vehicleid <= bikecar[1] && PlayerInfo[playerid][pMember] != 23) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: Байкеры."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= matsfuraballas[0] && vehicleid <= matsfuraballas[0] && PlayerInfo[playerid][pMember] != 12) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: The Ballas Gang."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= fbicar[0] && vehicleid <= fbicar[4] && PlayerInfo[playerid][pMember] != 2) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит государственной организации: FBI."), RemovePlayerFromVehicle(playerid);
	else if(((vehicleid >= sapdpatrul[0] && vehicleid <= sapdpatrul[1]) || (vehicleid >= sapdcar[0] && vehicleid <= sapdcar[1])) && PlayerInfo[playerid][pMember] != 1) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит государственной организации: LSPD."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= MedCar[0] && vehicleid <= MedCar[1] && !IsAMedic(playerid)) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит государственной организации: Больница"), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= ministrcar[0] && vehicleid <= ministrcar[1] && PlayerInfo[playerid][pMember] != 26) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит государственной организации: Правительству штата."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= mehanik[0] && vehicleid <= mehanik[1] && PlayerInfo[playerid][pJob] != 1) return SendClientMessage(playerid, -1, ""#net"Вы не работаете механиком."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= matsfuragrove[0] && vehicleid <= matsfuragrove[0] && PlayerInfo[playerid][pMember] != 15) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: Grove Street Gang."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= matsfuraactek[0] && vehicleid <= matsfuraactek[0] && PlayerInfo[playerid][pMember] != 17) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: Varios Los Aztecas Gang."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= matsfuravagos[0] && vehicleid <= matsfuravagos[0] && PlayerInfo[playerid][pMember] != 13) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: Los Santos Vagos Gang."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= matsfurarifa[0] && vehicleid <= matsfurarifa[0] && PlayerInfo[playerid][pMember] != 18) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: The Rifa Gang."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= ballascar[0] && vehicleid <= ballascar[1] && PlayerInfo[playerid][pMember] != 12) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: The Ballas Gang."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= grovecar[0] && vehicleid <= grovecar[1] && PlayerInfo[playerid][pMember] != 15) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: Grove Street Gang."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= coronoscar[0] && vehicleid <= coronoscar[1] && PlayerInfo[playerid][pMember] != 17) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: Varios Los Aztecas Gang."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= vagoscar[0] && vehicleid <= vagoscar[1] && PlayerInfo[playerid][pMember] != 13) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: Los Santos Vagos Gang."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= rifacar[0] && vehicleid <= rifacar[1] && PlayerInfo[playerid][pMember] != 18) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: The Rifa Gang."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= armycar[0] && vehicleid <= armycar[1] && PlayerInfo[playerid][pMember] != 3) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит государственной организации: Армии Авианосец."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= vmfcar[0] && vehicleid <= vmfcar[1] && PlayerInfo[playerid][pMember] != 27) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит государственной организации: Военно Морскому Флоту."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= armcar[0] && vehicleid <= armcar[1] && PlayerInfo[playerid][pMember] != 19 && !GetPVarInt(playerid, "Keys") && !GetPVarInt(playerid, "ArmySkin_Check")) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит государственной организации: Сухопутные Войска."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= liccar[0] && vehicleid <= liccar[1] && PlayerInfo[playerid][pMember] != 11 && !pTemp[playerid][pOnExam]) return SendClientMessage(playerid,-1, ""#net"Транспорт пренадлежит государственной организации: Инструкторы."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= StreetCar[0] && vehicleid <= StreetCar[16] && PlayerInfo[playerid][pMember] != 22) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: Street Racers Club."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= USACar[0] && vehicleid <= USACar[1] && PlayerInfo[playerid][pMember] != 20) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: Армии U.S.A."), RemovePlayerFromVehicle(playerid);
 	if(vehicleid >= rentcarsf[0] && vehicleid <= rentcarsf[1])
                                                             
Там дальше ток захват бизов)

 

Вставил что мог

Edited by DEST

Заметка от DEST , создано

3.2. Код больше 10 строк необходимо брать в теги "Код" и "Спойлер". Как это сделать рассказано в разделе "FAQ".

Устное предупреждение.

Share this post


Link to post
  • 0
1 час назад, f0295655 сказал:

@legendabrn 

  Код (закрыть спойлер)


   	Машинки русской мафии
	ruscar[0] = CreateVehicle(580,964.5038,1707.7654,8.4717,270.1920,0,0,CAR_SPAWN); //
	CreateVehicle(580,956.1552,1707.7443,8.4642,270.0861,0,0,CAR_SPAWN); //
	CreateVehicle(409,950.5296,1716.1368,8.4151,180.2047,0,0,CAR_SPAWN); //
	CreateVehicle(487,955.2507,1754.7340,8.8090,227.3316,0,0,CAR_SPAWN); //
	CreateVehicle(487,955.2507,1754.7340,8.8090,227.3316,0,0,CAR_SPAWN); //
	CreateVehicle(579,983.6653,1742.5369,8.6459,89.9983,0,0,CAR_SPAWN); //
	CreateVehicle(579,983.6631,1738.1848,8.6445,89.9981,0,0,CAR_SPAWN); //
	CreateVehicle(579,983.6636,1733.8856,8.6452,89.9983,0,0,CAR_SPAWN); //
	CreateVehicle(579,983.6652,1729.5123,8.6482,89.9982,0,0,CAR_SPAWN); //
	CreateVehicle(579,983.6371,1725.3397,8.6656,90.2309,0,0,CAR_SPAWN); //
	CreateVehicle(579,983.6531,1721.2339,8.6647,89.9953,0,0,CAR_SPAWN); //
	ruscar[1] = CreateVehicle(579,983.6689,1746.4585,8.6421,89.9979,0,0,CAR_SPAWN); //
	ruscar[2] = CreateVehicle(413,972.7570,1700.6257,8.7394,180.3831,0,0,CAR_SPAWN);
	хз чё
GetVehicleKey(playerid, vehicleid)
{
	return ((PlayerInfo[playerid][pMember] == 15 &&	((vehicleid >= grovecar[0] && vehicleid <= grovecar[1]) || vehicleid == matsfuragrove[0]))	|| (PlayerInfo[playerid][pMember] == 12 &&
	((vehicleid >= ballascar[0] && vehicleid <= ballascar[1]) || vehicleid == matsfuraballas[0]))	|| (PlayerInfo[playerid][pMember] == 13 &&	((vehicleid >= vagoscar[0] && vehicleid <= vagoscar[1]) || vehicleid == matsfuravagos[0]))	|| (PlayerInfo[playerid][pMember] == 17 &&	((vehicleid >= coronoscar[0] && vehicleid <= coronoscar[1]) || vehicleid == matsfuraactek[0]))
	|| (PlayerInfo[playerid][pMember] == 18 &&	((vehicleid >= rifacar[0] && vehicleid <= rifacar[1]) || vehicleid == matsfurarifa[0]))	|| (PlayerInfo[playerid][pMember] == 5 &&	vehicleid >= lcncar[0] && vehicleid <= lcncar[1])	|| (PlayerInfo[playerid][pMember] == 6 &&
	vehicleid >= yakcar[0] && vehicleid <= yakcar[1])	|| (PlayerInfo[playerid][pMember] == 14 &&	vehicleid >= ruscar[0] && vehicleid <= ruscar[1])	|| (PlayerInfo[playerid][pMember] == 16 &&	vehicleid >= lsnewscar[0] && vehicleid <= lsnewscar[1])
	|| (PlayerInfo[playerid][pMember] == 11 &&	vehicleid >= liccar[0] && vehicleid <= liccar[1])	|| (PlayerInfo[playerid][pMember] == 1 &&	vehicleid >= sapdcar[0] && vehicleid <= sapdcar[1])	|| (PlayerInfo[playerid][pMember] == 2 &&
	vehicleid >= fbicar[0] && vehicleid <= fbicar[4])	|| (PlayerInfo[playerid][pMember] == 3 &&	vehicleid >= armycar[0] && vehicleid <= armycar[1])	|| (IsAMayor(playerid) &&	vehicleid >= govcar[0] && vehicleid <= govcar[1])	|| (PlayerInfo[playerid][pMember] == 19 &&	vehicleid >= armcar[0] && vehicleid <= armcar[1])
	|| (PlayerInfo[playerid][pJob] == 1 &&	vehicleid >= mehanik[0] && vehicleid <= mehanik[1])	|| (RentCar[vehicleid] == playerid &&	vehicleid >= rentcarsf[0] && vehicleid <= rentcarsf[1])
	|| (PlayerInfo[playerid][pMember] == 27 &&	vehicleid >= vmfcar[0] && vehicleid <= vmfcar[1]) || (PlayerInfo[playerid][pMember] == 20 && vehicleid >= USACar[0] && vehicleid <= USACar[1]) || (PlayerInfo[playerid][pMember] == 25 &&	vehicleid >= SwatCar[0] && vehicleid <= SwatCar[13])	|| (PlayerInfo[playerid][pMember] == 26 &&
	vehicleid >= ministrcar[0] && vehicleid <= ministrcar[1])	|| (PlayerInfo[playerid][pMember] == 21 &&	vehicleid >= lvpdcar[0] && vehicleid <= lvpdcar[1])	|| (PlayerInfo[playerid][pMember] == 10 &&
	vehicleid >= sfpdcar[0] && vehicleid <= sfpdcar[1]) || (PlayerInfo[playerid][pMember] == 1 && vehicleid >= sapdpatrul[0] && vehicleid <= sapdpatrul[1]) || (PlayerInfo[playerid][pMember] == 24 && vehicleid >= hitcar[0] && vehicleid < hitcar[1])	|| (IsAMedic(playerid) &&	vehicleid >= MedCar[0] && vehicleid <= MedCar[1])) ? true : false;
}
 Хз тоже чё
 
CarEnter(playerid, vehicleid)
{
	if(VodPrava(vehicleid) && !PlayerInfo[playerid][pLicenses][0] && pTemp[playerid][pOnExam]) return SendClientMessage(playerid, -1, ""#net"У Вас нет лицензии на управление т/c."), RemovePlayerFromVehicle(playerid);
	else if(IsABoat(vehicleid) && !PlayerInfo[playerid][pLicenses][2]) return SendClientMessage(playerid, COLOR_WHITE, ""#net"У Вас нет лицензии на управление водным транспортом"), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= SwatCar[0] && vehicleid <= SwatCar[13] && PlayerInfo[playerid][pMember] != 25) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит государственной организации: SWAT."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= hitcar[0] && vehicleid <= hitcar[1] && PlayerInfo[playerid][pMember] != 24) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: Hitmen."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= lsnewscar[0] && vehicleid <= lsnewscar[1] && PlayerInfo[playerid][pMember] != 16) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит государственной организации: San News."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= sfpdcar[0] && vehicleid <= sfpdcar[1] && PlayerInfo[playerid][pMember] != 10) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит государственной организации: SFPD."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= lvpdcar[0] && vehicleid <= lvpdcar[1] && PlayerInfo[playerid][pMember] != 21) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит государственной организации: LVPD."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= ruscar[0] && vehicleid <= ruscar[2] && PlayerInfo[playerid][pMember] != 14) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: Russian Mafia."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= lcncar[0] && vehicleid <= lcncar[2] && PlayerInfo[playerid][pMember] != 5) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: La Cosa Nostra."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= yakcar[0] && vehicleid <= yakcar[2] && PlayerInfo[playerid][pMember] != 6) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: Yakuza."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= govcar[0] && vehicleid <= govcar[1] && !IsAMayor(playerid)) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит государственной организации: Мэрия"), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= bikecar[0] && vehicleid <= bikecar[1] && PlayerInfo[playerid][pMember] != 23) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: Байкеры."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= matsfuraballas[0] && vehicleid <= matsfuraballas[0] && PlayerInfo[playerid][pMember] != 12) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: The Ballas Gang."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= fbicar[0] && vehicleid <= fbicar[4] && PlayerInfo[playerid][pMember] != 2) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит государственной организации: FBI."), RemovePlayerFromVehicle(playerid);
	else if(((vehicleid >= sapdpatrul[0] && vehicleid <= sapdpatrul[1]) || (vehicleid >= sapdcar[0] && vehicleid <= sapdcar[1])) && PlayerInfo[playerid][pMember] != 1) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит государственной организации: LSPD."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= MedCar[0] && vehicleid <= MedCar[1] && !IsAMedic(playerid)) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит государственной организации: Больница"), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= ministrcar[0] && vehicleid <= ministrcar[1] && PlayerInfo[playerid][pMember] != 26) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит государственной организации: Правительству штата."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= mehanik[0] && vehicleid <= mehanik[1] && PlayerInfo[playerid][pJob] != 1) return SendClientMessage(playerid, -1, ""#net"Вы не работаете механиком."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= matsfuragrove[0] && vehicleid <= matsfuragrove[0] && PlayerInfo[playerid][pMember] != 15) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: Grove Street Gang."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= matsfuraactek[0] && vehicleid <= matsfuraactek[0] && PlayerInfo[playerid][pMember] != 17) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: Varios Los Aztecas Gang."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= matsfuravagos[0] && vehicleid <= matsfuravagos[0] && PlayerInfo[playerid][pMember] != 13) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: Los Santos Vagos Gang."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= matsfurarifa[0] && vehicleid <= matsfurarifa[0] && PlayerInfo[playerid][pMember] != 18) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: The Rifa Gang."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= ballascar[0] && vehicleid <= ballascar[1] && PlayerInfo[playerid][pMember] != 12) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: The Ballas Gang."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= grovecar[0] && vehicleid <= grovecar[1] && PlayerInfo[playerid][pMember] != 15) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: Grove Street Gang."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= coronoscar[0] && vehicleid <= coronoscar[1] && PlayerInfo[playerid][pMember] != 17) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: Varios Los Aztecas Gang."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= vagoscar[0] && vehicleid <= vagoscar[1] && PlayerInfo[playerid][pMember] != 13) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: Los Santos Vagos Gang."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= rifacar[0] && vehicleid <= rifacar[1] && PlayerInfo[playerid][pMember] != 18) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: The Rifa Gang."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= armycar[0] && vehicleid <= armycar[1] && PlayerInfo[playerid][pMember] != 3) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит государственной организации: Армии Авианосец."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= vmfcar[0] && vehicleid <= vmfcar[1] && PlayerInfo[playerid][pMember] != 27) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит государственной организации: Военно Морскому Флоту."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= armcar[0] && vehicleid <= armcar[1] && PlayerInfo[playerid][pMember] != 19 && !GetPVarInt(playerid, "Keys") && !GetPVarInt(playerid, "ArmySkin_Check")) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит государственной организации: Сухопутные Войска."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= liccar[0] && vehicleid <= liccar[1] && PlayerInfo[playerid][pMember] != 11 && !pTemp[playerid][pOnExam]) return SendClientMessage(playerid,-1, ""#net"Транспорт пренадлежит государственной организации: Инструкторы."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= StreetCar[0] && vehicleid <= StreetCar[16] && PlayerInfo[playerid][pMember] != 22) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: Street Racers Club."), RemovePlayerFromVehicle(playerid);
	else if(vehicleid >= USACar[0] && vehicleid <= USACar[1] && PlayerInfo[playerid][pMember] != 20) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: Армии U.S.A."), RemovePlayerFromVehicle(playerid);
 	if(vehicleid >= rentcarsf[0] && vehicleid <= rentcarsf[1])
                                                             
Там дальше ток захват бизов)

 

Вставил что мог

 

замени старый ruscar и govcar, на это

	else if(vehicleid >= ruscar[0] && vehicleid <= ruscar[1] && !IsAMayor(playerid)) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит государственной организации: Мэрия"), RemovePlayerFromVehicle(playerid);

	else if(vehicleid >= govcar[0] && vehicleid <= govcar[2] && PlayerInfo[playerid][pMember] != 14) return SendClientMessage(playerid, -1, ""#net"Транспорт пренадлежит нелегальной организации: Russian Mafia."), RemovePlayerFromVehicle(playerid);
	

 

Share this post


Link to post
  • 0

@legendabrn 

C:\Users\Danil or XeanOC\Desktop\SGL-RP\gamemodes\ind.pwn(45149) : error 032: array index out of bounds (variable "govcar")

это та-же строка которую вставил

Share this post


Link to post
  • 0

@f0295655  замени:

govcar[2] на govcar[1]

Share this post


Link to post
  • 0

@keyl Ничем не помогло, только с машин мэрии выкидывает 

Share this post


Link to post
  • 0
40 минут назад, f0295655 сказал:

@keyl Ничем не помогло, только с машин мэрии выкидывает 

с машинами русской мафии все нормально, не выкидывает?

Share this post


Link to post
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • SheikhMAN
      By SheikhMAN
      Приветствую дорогие коллеги. Намучался, хочу решить одну проблему, делаю проверку на правильность введенной почты,
      и не могу правильно настроить это дело в диалоге. Кто поможет, буду очень рад. Внизу прикрепил скрипт.

      Внутри спойлера код.