[Pomoc] Vozila za organizacije

Započeo Black22, Januar 05, 2014, 21:45:03 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: DGRP
Detaljan opis problema: Ovako, napravio sam organizacije i bande. I Svi mogu voziti vozila organizacija. Kad idem u MD vozilo normalno me izbaci i da mi WL ali za SWAT PD I FBI neće, njihova mogu voziti. .. Bandina nemogu voziti piše da su zaključana normalno radi i TAxi vozila mogu voziti
Dio skripte:
if(v >= LSPDVozilo[0] && v <= LSPDVozilo[18])
{
    if(PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1)
        {
    TogglePlayerControllable(playerid, 0);
TogglePlayerControllable(playerid, 1);
RemovePlayerFromVehicleEx(playerid);
PostaviZlocin(playerid, "Kradja LSPD vozila!", "Nepoznat");
}
else
{
}
}
if(v >= FBIVozilo[0] && v <= FBIVozilo[17])
{
    if(PlayerInfo[playerid][pMember] != 2 && PlayerInfo[playerid][pLeader] != 2)
        {
    TogglePlayerControllable(playerid, 0);
TogglePlayerControllable(playerid, 1);
RemovePlayerFromVehicleEx(playerid);
PostaviZlocin(playerid, "Kradja FBI vozila!", "Nepoznat");
}
else
{
}
}
if(v >= SWATVozilo[0] && v <= SWATVozilo[13])
{
    if(PlayerInfo[playerid][pMember] != 3 && PlayerInfo[playerid][pLeader] != 3)
        {
    TogglePlayerControllable(playerid, 0);
TogglePlayerControllable(playerid, 1);
RemovePlayerFromVehicleEx(playerid);
PostaviZlocin(playerid, "Kradja S.W.A.T. vozila!", "Nepoznat");
}
else
{
}
}
if(v >= MDVozilo[0] && v <= MDVozilo[7])
{
    if(PlayerInfo[playerid][pMember] != 4 && PlayerInfo[playerid][pLeader] != 4)
        {
    TogglePlayerControllable(playerid, 0);
TogglePlayerControllable(playerid, 1);
RemovePlayerFromVehicleEx(playerid);
PostaviZlocin(playerid, "Kradja MD vozila!", "Nepoznat");
}
else
{
}
}
        if(v >= TAXIVozilo[0] && v <= TAXIVozilo[22])
{
    if(PlayerInfo[playerid][pMember] != 7 && PlayerInfo[playerid][pLeader] != 7)
        {
    TogglePlayerControllable(playerid, 0);
TogglePlayerControllable(playerid, 1);
RemovePlayerFromVehicleEx(playerid);
}
else
{
}
}
}


public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(!ispassenger)
{
new Float:Poz[3];
GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
if(vehicleid >= GSFVozilo[0] && vehicleid <= GSFVozilo[15])
{
    if(PlayerInfo[playerid][pMember] != 10 && PlayerInfo[playerid][pLeader] != 10)
        {
                TogglePlayerControllable(playerid, 0);
        TogglePlayerControllable(playerid, 1);
            GameTextForPlayer(playerid, "~w~ZAKLJUCANO!~n~~r~GSF", 3000, 3);
        }
        else
        {

        }
}
//if(vehicleid >= TSCVozilo[0] && vehicleid <= TSCVozilo[8])
if(vehicleid == TSCVozilo[0] || vehicleid == TSCVozilo[1] || vehicleid == TSCVozilo[2] || vehicleid == TSCVozilo[3] || vehicleid == TSCVozilo[4] || vehicleid == TSCVozilo[5] || vehicleid == TSCVozilo[6] || vehicleid == TSCVozilo[7] )
{
    if(PlayerInfo[playerid][pMember] != 11 && PlayerInfo[playerid][pLeader] != 11)
        {
                TogglePlayerControllable(playerid, 0);
        TogglePlayerControllable(playerid, 1);
//RemovePlayerFormVehicle(playerid);
            GameTextForPlayer(playerid, "~w~ZAKLJUCANO!~n~~r~TSC", 3000, 3);
        }
        else
        {

        }
}
if(vehicleid >= URVozilo[0] && vehicleid <= URVozilo[16])
{
    if(PlayerInfo[playerid][pMember] != 12 && PlayerInfo[playerid][pLeader] != 12)
        {
                TogglePlayerControllable(playerid, 0);
        TogglePlayerControllable(playerid, 1);
            GameTextForPlayer(playerid, "~w~ZAKLJUCANO!~n~~r~UR", 3000, 3);
        }
        else
        {

        }
}
if(vehicleid >= LCNVozilo[0] && vehicleid <= LCNVozilo[12])
{
    if(PlayerInfo[playerid][pMember] != 5 && PlayerInfo[playerid][pLeader] != 5)
        {
                TogglePlayerControllable(playerid, 0);
        TogglePlayerControllable(playerid, 1);
            GameTextForPlayer(playerid, "~w~ZAKLJUCANO!~n~~r~LCN", 3000, 3);
        }
        else
        {

        }
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):