[POMOC](newcar = Bikeri)...

Započeo |ex:CH|Muhamed_Omerdic, Septembar 18, 2011, 13:40:22 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skriptu koju Koristim: Street Stories
Opis Problema:Napisao sam sve,definao auta,radilo mi je prije a sad nce...Udjem u auto kao Lider necega (npr LSPD)
mogu uci u auto i stavim sbi civila opet mogu uci ?
Evo kod :
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new string[128];
new pveh = GetVehicleModel(GetPlayerVehicleID(playerid));
new vehicle = GetPlayerVehicleID(playerid);
new newcar = GetPlayerVehicleID(playerid);
if(newstate == PLAYER_STATE_DRIVER && (pveh != 509 && pveh != 481 && pveh != 510) && IsPlayerInAnyVehicle(playerid) && !IsAPlane(vehicle) && !IsAHarvest(vehicle) && !IsADrugHarvest(vehicle) && !IsASweeper(vehicle))
{
SetTimerEx("Startup", 1, false, "ii", playerid, vehicle);
SetTimerEx("engine2", 2500, false, "ii", playerid);
}
else if(newstate == PLAYER_STATE_DRIVER && (pveh != 509 && pveh != 481 && pveh != 510) && IsPlayerInAnyVehicle(playerid) && !IsAPlane(vehicle) && !IsAHarvest(vehicle) && !IsADrugHarvest(vehicle) && !IsASweeper(vehicle))
{
    if(newcar == Bikeri1 || newcar == Bikeri2 || newcar == Bikeri3 || newcar == Bikeri4 || newcar == Bikeri5 || newcar == Bikeri6 || newcar == Bikeri7 || newcar == Bikeri8 || newcar == Bikeri9 || newcar == Bikeri10 || newcar == Bikeri11 || newcar == Bikeri12 )
{
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12){ }
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Nisi clan Bikera !");
    RemovePlayerFromVehicle(playerid);
}
}
if(newcar == LCN1 || newcar == LCN2 || newcar == LCN3 || newcar == LCN4 || newcar == LCN5 || newcar == LCN6 || newcar == LCN7 || newcar == LCN8 || newcar == LCN9 || newcar == LCN10 || newcar == LCN11 || newcar == LCN12 )
{
if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6){ }
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Nisi clan LCN-a !");
    RemovePlayerFromVehicle(playerid);
}
}
if(newcar == GSF1 || newcar == GSF2 || newcar == GSF3 || newcar == GSF4 || newcar == GSF5 || newcar == GSF6 || newcar == GSF7 || newcar == GSF8 || newcar == GSF9 || newcar == GSF10 || newcar == GSF11 || newcar == GSF12 || newcar == GSF13 || newcar == GSF14 || newcar == GSF15 || newcar == GSF16 || newcar == GSF17 || newcar == GSF18 || newcar == GSF19 || newcar == GSF20 || newcar == GSF21 )
{
if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15){ }
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Nisi clan GSF-a !");
    RemovePlayerFromVehicle(playerid);
}
}
if(newcar == Autoskola1 || newcar == Autoskola2 || newcar == Autoskola3 || newcar == Autoskola4 )
{
if(PlayerInfo[playerid][pPolaganje] > 0)
               {
                     SendClientMessage(playerid, COLOR_GREY, "[INSTRUKTOR]: Vec imate aktivirano polaganje!");
                    return 1;
               }
            if(PlayerInfo[playerid][pCarLic] == 0){}
                    else
                    {
                    SendClientMessage(playerid, COLOR_GREY,"Nemas aktivirano polaganje !")
                    }
                    }
                    if(newcar == Autoskolahelic )
                    {
            if(PlayerInfo[playerid][pFlyLic] == 0) {}
                    else
{
SendClientMessage(playerid, COLOR_RED, " Vec imate ovu licensu");
return 1;
}
}
if(newcar == FireTruck)
{
    if(PlayerInfo[playerid][pMember] == 4) { }
    else
    {
        SendClientMessage(playerid,COLOR_GREY,"   Nisi clan !");
        RemovePlayerFromVehicle(playerid);
    }
    }

if(newcar == LSPDMaverick)
{
    if(PlayerInfo[playerid][pRank] >= 3) { }
    else
    {
        SendClientMessage(playerid,COLOR_GREY,"   Moras biti Rank 3 najmanje da bi ovo Koristio !");
        RemovePlayerFromVehicle(playerid);
    }
}
if(newcar == truck ||newcar == truck1 ||newcar == truck2 )
{
    if(PlayerInfo[playerid][pJob] != 16) {}
    else
    {
        SendClientMessage(playerid,COLOR_GREY,"   Nemas ovaj posao !");
        RemovePlayerFromVehicle(playerid);
    }
}
if(newcar == Taxi || newcar == Taxi1 || newcar == Taxi2 || newcar == Taxi3 || newcar == Taxi4 || newcar == Taxi5 || newcar == Taxi6 || newcar == Taxi7 || newcar == Taxi8 || newcar == Taxi9 )
{
    if(PlayerInfo[playerid][pMember] == 10||PlayerInfo[playerid][pLeader] == 10) { }
    else
{
        SendClientMessage(playerid,COLOR_GREY,"   Nisi clan Taxi-a !");
        RemovePlayerFromVehicle(playerid);
    }
}
if(newcar == RTL || newcar == RTL1 || newcar == RTL2 )
{
if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9){ }
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Nisi clan RTL-a !");
    RemovePlayerFromVehicle(playerid);
}
}
if(newcar == kart || newcar == kart1 || newcar == kart2 || newcar == kart3 || newcar == kart4 || newcar == kart5 )
{
    if(PlayerKarting[playerid] != 1)
    {
        RemovePlayerFromVehicle(playerid);
    }
}

if(newcar == Surenos || newcar == Surenos1 || newcar == Surenos2 || newcar == Surenos3 || newcar == Surenos4 || newcar == Surenos5 || newcar == Surenos6 || newcar == Surenos7 || newcar == Surenos8 || newcar == Surenos9 || newcar == Surenos10 )
        {
         if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5){ }
         else
         {
             SendClientMessage(playerid, COLOR_GREY, "   Nisi clan Surenosa !");
             RemovePlayerFromVehicle(playerid);
}
}
if(newcar == LSPD || newcar == LSPD1 || newcar == LSPD2 || newcar == LSPD3 || newcar == LSPD4 || newcar == LSPD5 || newcar == LSPD6 || newcar == LSPD7 || newcar == LSPD8 || newcar == LSPD9 || newcar == LSPD10 ||
newcar == LSPD11 || newcar == LSPD12 || newcar == LSPD13 || newcar == LSPD14 || newcar == LSPD15 || newcar == LSPD16 || newcar == LSPD17 || newcar == LSPD18 || newcar == LSPD19 || newcar == LSPD20 || newcar == LSPD21 || newcar == LSPD22 || newcar == LSPD23 || newcar == LSPD24 || newcar == LSPD25 || newcar == LSPD26 || newcar == LSPD27 || newcar == LSPD28 || newcar == LSPD29 || newcar == LSPD30 || newcar == LSPD31 )
        {
         if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1){ }
         else
         {
             SendClientMessage(playerid, COLOR_GREY, "   Nisi clan LSPD-a !");
             RemovePlayerFromVehicle(playerid);
}
}
if(newcar == Corleone || newcar == Corleone1 || newcar == Corleone2 || newcar == Corleone3 || newcar == Corleone4 || newcar == Corleone5 || newcar == Corleone6 || newcar == Corleone7 || newcar == Corleone8 || newcar == Corleone9 || newcar == Corleone10 || newcar == Corleone11 || newcar == Corleone12 || newcar == Corleone13 || newcar == Corleone14 || newcar == Corleone15 )
        {
         if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11){ }
         else
         {
             SendClientMessage(playerid, COLOR_GREY, "   Nisi clan Corleone Mafije !");
             RemovePlayerFromVehicle(playerid);
}
}

if(newcar == Ballas || newcar == Ballas1 || newcar == Ballas2 || newcar == Ballas3 || newcar == Ballas4 || newcar == Ballas5 || newcar == Ballas6 || newcar == Ballas7 || newcar == Ballas8 || newcar == Ballas9 || newcar == Ballas10 || newcar == Ballas11 || newcar == Ballas12 || newcar == Ballas13 || newcar == Ballas14 || newcar == Ballas15 )
        {
         if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13){ }
         else
         {
             SendClientMessage(playerid, COLOR_GREY, "   Niste clan Ballas-a !");
             RemovePlayerFromVehicle(playerid);
}
}
if(newcar == FBI || newcar == FBI1 || newcar == FBI2 || newcar == FBI3 || newcar == FBI4 )
{
if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) {}//FBI
else
{
             SendClientMessage(playerid, COLOR_GREY, "   Niste clan FBI-a !");
             RemovePlayerFromVehicle(playerid);
}
}
if(newcar == Mayor || newcar == Mayor1 || newcar == Mayor2 || newcar == Mayor3 )
{
if(PlayerInfo[playerid][pLeader] == 7) {}//Mayor
else
{
             SendClientMessage(playerid, COLOR_GREY, "   Nisi Predsjednik Drzave !");
             RemovePlayerFromVehicle(playerid);
}
}
if(newcar == Medic || newcar == Medic1 || newcar == Medic2 || newcar == Medic3 )
   {
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) {} //MD
else
{
             SendClientMessage(playerid, COLOR_GREY, "   Nisi Clan MD-a !");
             RemovePlayerFromVehicle(playerid);
}
}
if(newcar == Hitman || newcar == Hitman1 || newcar == Hitman2 || newcar == Hitman3 || newcar == Hitman4 )
{
if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) {}
else
{
             SendClientMessage(playerid, COLOR_GREY, "   Nisi clan Hitmana !");
             RemovePlayerFromVehicle(playerid);
}
}
SetTimerEx("Startup", 1, false, "ii", playerid, vehicle);
SetTimerEx("engine2", 2500, false, "ii", playerid);
}


HITNO Mi treba..Hvala

OptX


Bili su se pomijesali pa sam htjeo da to uklonim i svako aut/motor definisao :S