SA-MP Forums Archive
CarID help - 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: CarID help (/showthread.php?tid=125518)



CarID help - r9x - 04.02.2010

i have a question.


how looks the code ( in an GF/LARP ) wich gives the cars an ID ?

i mean where is the function wich says "this" car has to be "carID" 234 or whatever?




Re: CarID help - Torran - 04.02.2010

What do you mean?

If you mean like this:

CarName = CreateVehicle

Then OnGameModeInit..

But if you mean something else, Explain it a bit better,
also this belongs in the godfather/larp topic


Re: CarID help - patchkinson - 04.02.2010

do you mean AddStaticVehicle?



Re: CarID help - nastoe - 04.02.2010

you have this codes

Код:
CreateVehicle(522, 1425.885254, 1516.292969, 211.052948, 112, -1, -1, 300);
this is funcions

Код:
(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay)
example if you wanna change model then change number 522 (that is vehicle id)


Re: CarID help - r9x - 04.02.2010

I mean if i type in


/vehid

it show me the ID of my car becuz its the 236st it shows me 236

but wich script says that the cars have to get IDs ?
sry for my bad english

maybe sum1 is german here:


wo wird festegelegt das die autos eine ingame ID bekommen?





Re: CarID help - notime - 04.02.2010

well u have to be inside the car
then do something like:

Код:
new string[128];
new vehid = GetPlayerVehicleID(playerid);
format(string, sizeof(string), "Vehicleid: %d", vehid);
SendClientMessage(playerid, COLOR, string);



Re: CarID help - MadeMan - 04.02.2010

Vehicleid's are assigned automatically you can't change them.


Re: CarID help - notime - 04.02.2010

u speak english?
who said something about changing the vehicleid?