define vehicleid's ?? - 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: define vehicleid's ?? (
/showthread.php?tid=75401)
define vehicleid's ?? -
Bearfist - 01.05.2009
I want to cut the vehicleid's to: CARS, BOATS and PLANES
...
can you tell me how to make that ...
Or it is like this:
Код:
new cars:
{
//here the id's of the cars
}
new boats:
{
//here the id's of the boats
}
new planes:
{
//here the id's of the planes
}
It's because i made a driver license
but at mine it makes no difference between cars and the others...
but I want a difference XD
Re: define vehicleid's ?? -
Think - 01.05.2009
new Cars[] = { 411, 522, 523 };
Re: define vehicleid's ?? -
Andom - 01.05.2009
It's like this:
pawn Код:
new cars[] = {
401,402,403,404
};
new planes[] = {
405,406,407,408
};
new boats[] = {
409,410,411,412
};
Edit: shit, 21 seconds too late :<
Re: define vehicleid's ?? -
Bearfist - 01.05.2009
Alright I got it ^^
and how to add one in onplayerstatechange ?
like if the player enter a Car(before defined) do something
or if the player enters a boat do something
or at last if a player enters a plane do something
Код:
if(GetPlayerVehicleID(playerid) == cars[])
{
blablabla
}
Is that code right ?
...Could Anyone Help Me PLease