[HELP]Static Vehicle
#1

When i add a vehicle on my GM, another one spawns either in it or ontop of it.

Example.
i type /save sultan
When i go in the Gm, i see two sultans, one at top and one at bottom, but i only have the cords for one vehicle, it works only with the SAPD cars, Patriot, and at-400 (i have not seen it with any other car)
Reply
#2

post the line of your cars in your script, that you just made here, ill look at it.
Reply
#3

Ok here are the lines that the vehicels are, and i have no other vehicles with these positions.

pawn Код:
public OnGameModeInit()
{
    AddStaticVehicle(470,2756.0439,730.9312,11.0992,270.4599,43,0); // Patriot
    AddStaticVehicle(470,2756.4019,715.2147,11.1016,271.3373,43,0); // Patriot1
    AddStaticVehicle(598,2756.0566,719.4593,10.8476,93.1945,0,1); // LVPD1
    AddStaticVehicle(598,2756.4419,724.8686,10.8497,90.8881,0,1); // LVPD
    return 1;
}
These are not all the vehicles i have, but these are where it creates two of the same vehicle.
Reply
#4

Quote:
Originally Posted by zack3021
Посмотреть сообщение
Ok here are the lines that the vehicels are, and i have no other vehicles with these positions.

pawn Код:
public OnGameModeInit()
{
    AddStaticVehicle(470,2756.0439,730.9312,11.0992,270.4599,43,0); // Patriot
    AddStaticVehicle(470,2756.4019,715.2147,11.1016,271.3373,43,0); // Patriot1
    AddStaticVehicle(598,2756.0566,719.4593,10.8476,93.1945,0,1); // LVPD1
    AddStaticVehicle(598,2756.4419,724.8686,10.8497,90.8881,0,1); // LVPD
    return 1;
}
These are not all the vehicles i have, but these are where it creates two of the same vehicle.
it looks like your vehicles are very close together, why dont you try making them more apart?
Reply
#5

That won't work cuz i see on servers where vehicels are real close, but what i dont get, why did the vehicles get multiplied by 2?
Reply
#6

Quote:
Originally Posted by zack3021
Посмотреть сообщение
That won't work cuz i see on servers where vehicels are real close, but what i dont get, why did the vehicles get multiplied by 2?
Your the one that made them multiple by 2..........some how
Reply
#7

Why not copy the whole of the coords "2756.0439,730.9312,11.0992,270" and search it in your script... see if you find it twice.

*off topic* I do remember once getting some code in a MAX_PLAYERS loop for vehicle creation, and it was hilarious seeing those 200 vehicles spawn on top of each other .
Reply
#8

I made a silly mistake, i had the coords in my Gm and in another FS. Thanks to you all
Reply
#9

pawn Код:
for(new h = 184; h < sizeof(CarInfo); h++)
{
    CreateVehicle(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000);
}
// place your cars here
You need Like that
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)