CarID help
#1

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?

Reply
#2

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
Reply
#3

do you mean AddStaticVehicle?
Reply
#4

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)
Reply
#5

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?


Reply
#6

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);
Reply
#7

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)