SA-MP Forums Archive
I ain't touching anything that hot! - vehicle id's needed - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I ain't touching anything that hot! - vehicle id's needed (/showthread.php?tid=88429)



I ain't touching anything that hot! - vehicle id's needed - ғαιιοцт - 26.07.2009

does anyone know all vehicleid's of the vehicles witch can't enter the pay'n spray?
thanks.


Re: I ain't touching anything that hot! - vehicle id's needed - member - 26.07.2009

Well, according to the GTA Wiki, it says that emergency/public vehicles cannot be driven into a Pay 'n' Spray and also bikes cannot use it. But there might also be other vehicles that cannot be modified, someone else might know.


Re: I ain't touching anything that hot! - vehicle id's needed - Criss_Angel - 26.07.2009

goto WIKI and see or just use Script King, you have to learn to do things yourself. You can't just keep asking others thinking they will waste there time.


Re: I ain't touching anything that hot! - vehicle id's needed - ғαιιοцт - 26.07.2009

Quote:
Originally Posted by Criss_Angel
goto WIKI and see or just use Script King, you have to learn to do things yourself. You can't just keep asking others thinking they will waste there time.
sorry about this,
but I WAS searching on the wiki
I just didn't find them all.. I thought that it were only police vehicles but there seem to be more of them

I could go ingame and test Every vehicle if they can enter the pay'n spray
Or
I could ask it here

what would you've done first?


Re: I ain't touching anything that hot! - vehicle id's needed - Correlli - 26.07.2009

Quote:
Originally Posted by Criss_Angel
goto WIKI and see or just use Script King, you have to learn to do things yourself. You can't just keep asking others thinking they will waste there time.
You should look at yourself first: http://forum.sa-mp.com/index.php?top...8152#msg698152
Everyone needs help sometimes if they can't find something.


Re: I ain't touching anything that hot! - vehicle id's needed - ғαιιοцт - 26.07.2009

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by Criss_Angel
goto WIKI and see or just use Script King, you have to learn to do things yourself. You can't just keep asking others thinking they will waste there time.
You should look at yourself first: http://forum.sa-mp.com/index.php?top...8152#msg698152
Everyone needs help sometimes if they can't find something.
I think you sent me the wrong link ц


Re: I ain't touching anything that hot! - vehicle id's needed - ғαιιοцт - 26.07.2009

ok.. so I tested every special car...
here is a function: you might need to use it one day

pawn Код:
stock IsValidPayNSprayVehicle(vehicleid)
{
    new InvalidVehicles[13] =
    {
        407, //firetruck
        416, //ambulance
        427, //enforcer
        432, //rhino
        433, //barracks
        490, //fbi rancher
        528, //fbi truck
        532, //hpv1000
        596, //police car lspd
        597, //police car sfpd
        598, //police car lvpd
        599, //police ranger
        601 //s.w.a.t. car
    };
    for(new i=0; i<13; i++)
    {
        if(GetVehicleModel(vehicleid) == InvalidVehicles[i])
        {
            return 0;
        }
    }
    return 1;
}



Re: I ain't touching anything that hot! - vehicle id's needed - member - 26.07.2009

Nice, you should post that function in the Useful Functions topic, but before u do that, you should add all the bicylesas well, because they also can't be pay'n'sprayed as i pointed out earlier.


Re: I ain't touching anything that hot! - vehicle id's needed - Fj0rtizFredde - 26.07.2009

Quote:
Originally Posted by °ғαιιοцт°
ok.. so I tested every special car...
here is a function: you might need to use it one day

pawn Код:
stock IsValidPayNSprayVehicle(vehicleid)
{
    new InvalidVehicles[13] =
    {
        407, //firetruck
        416, //ambulance
        427, //enforcer
        432, //rhino
        433, //barracks
        490, //fbi rancher
        528, //fbi truck
        532, //hpv1000
        596, //police car lspd
        597, //police car sfpd
        598, //police car lvpd
        599, //police ranger
        601 //s.w.a.t. car
    };
    for(new i=0; i<13; i++)
    {
        if(GetVehicleModel(vehicleid) == InvalidVehicles[i])
        {
            return 0;
        }
    }
    return 1;
}
Nice function I think I will use this in my new Gamemode


Re: I ain't touching anything that hot! - vehicle id's needed - ғαιιοцт - 26.07.2009

Quote:
Originally Posted by [B2K
Hustler ]
Nice, you should post that function in the Useful Functions topic, but before u do that, you should add all the bicylesas well, because they also can't be pay'n'sprayed as i pointed out earlier.
I already posted it there but I'll add bicycles later
Boats to :P