Opis problema : Pravio sam organizacije i rent auta i sve to napravim ali mi se mjesaju id-ovi auta znaci imam vako
ovo je rent auta
evo vozila
rent = AddStaticVehicle(462,1509.5031,-1744.8289,13.1467,89.2652,1,1); // rentb 1
rent = AddStaticVehicle(462,1509.4550,-1747.3982,13.1464,93.1761,1,1); // rentb 2
rent = AddStaticVehicle(462,1509.4941,-1750.2450,13.1456,88.9794,1,1); // rentb 3evo stock
stock rentbbike(carid)
{
if(carid == rent || rent || rent)
{
return 1;
}
return 0;
}evo od organizacije 1
policija = AddStaticVehicle(596,1536.0977,-1678.2588,13.1038,359.3639,0,1); //PD Auto 1
policija = AddStaticVehicle(596,1545.6848,-1613.6610,13.1032,268.3476,0,1); // PD Auto 2
policija = AddStaticVehicle(596,1545.9193,-1607.3193,13.1043,269.8954,0,1); // PD Auto 3
policija = AddStaticVehicle(596,1601.7441,-1684.2124,5.6101,91.7202,0,1); // PD Auto 4
policija = AddStaticVehicle(596,1601.5815,-1687.9525,5.6107,90.0457,0,1); // PD Auto 5evo stock za org 1
stock OrganizacijaPD(vozilo)
{
if(vozilo == policija || policija || policija || policija || policija)
{
return 1;
}
return 0;
}evo org 2
grovestreet = AddStaticVehicle(517,2483.0906,-1654.9543,13.1722,89.1095,128,128); // GSF 1 Auto 1
grovestreet = AddStaticVehicle(517,2498.0813,-1655.7118,13.2476,79.1960,128,128); // GSF 1 Auto 2
grovestreet = AddStaticVehicle(536,2508.3525,-1666.2518,13.1384,11.9956,128,128); // GSF 1 Auto 3
grovestreet = AddStaticVehicle(536,2499.1719,-1681.6779,13.1011,283.5645,128,128); // GSF 1 Auto 4
grovestreet = AddStaticVehicle(579,2473.4612,-1695.5299,13.4507,359.9520,128,128); // GSF 1 Auto 5stock org 2
stock OrganizacijaGSF(vozilo)
{
if(vozilo == grovestreet || grovestreet || grovestreet || grovestreet || grovestreet)
{
return 1;
}
return 0;
}evo vam pod OnPlayerStateChange (to je kad sjede u kola a da nije clan ili lider te organizacije da ga izbaci iz kola)
new voziloID = GetPlayerVehicleID(playerid);
if(newstate == 2)
{
if(OrganizacijaPD(voziloID))
{
if(PlayerInfo == 1 || PlayerInfo == 1)
{
return true;
}
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,0xFFFFFFFF,"{FFBF00}Organizacija | {FFFFFF}Niste clan ove organizacije.");
}
}
else if(OrganizacijaGSF(voziloID))
{
if(PlayerInfo == 2 || PlayerInfo == 2)
{
return true;
}
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,0xFFFFFFFF,"{FFBF00}Organizacija | {FFFFFF}Niste clan ove organizacije.");
}
}
}Ja kad sjedem u rent vozilo ispise mi "niste clan ove organizacije", to mi bude i kada sam lider org 1 i sjedem u kola org 1 opet mi pise "Niste clan ove organizacije" tako isto i sa org 2
Dio skripte : dao sam gore
Slika/Video : //
