Command /acar doesn't seem to work well.
#10

They both gave the same coordinates, yet I might found the issue.
Vehicle data file:
pawn Код:
Model = 560
vX = 1706.440307
vY = 1434.831298
vZ = 10.336604
Color1 = 1
Color2 = 1
Respawn = -1
Owner = Marco_Baccalieri
FactionCar = 0
NoobCar = 0
[data]
Model = 560
vX = 1695.949584
vY = 1442.413696
vZ = 10.762247
vA = 242.479843
Color1 = 1
Color2 = 1
Respawn = -1
Owner = Marco_Baccalieri
FactionCar = 0
NoobCar = 0
I'll try to fix this, and then tell you if it worked or not.
Edit: Didn't seem to work, the coordinates are both the same and the carfile seems unharmed, yet the car doesn't spawn at those coordinates. I use this timer to respawn the vehicles: (also, the angle doesn't seem to save)

pawn Код:
forward RespawnTimer();
public RespawnTimer()
{
    new bool:VehicleUsed[MAX_VEHICLES] = false;
    foreach(Character, i)//for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerInAnyVehicle(i)) VehicleUsed[GetPlayerVehicleID(i)] = true;
    }
    for(new i = 1; i < MAX_VEHICLES; i++)
    {
        if(VehicleUsed[i] == false)
        SetVehiclePos(i, VehicleInfo[i][vX], VehicleInfo[i][vY], VehicleInfo[i][vZ]);
        SetVehicleZAngle(i, VehicleInfo[i][vA]);
    }
    new string[128];
    format(string, sizeof(string), "[ADMIN]{FCF507} All unused vehicle's have been respawned.");
    SendClientMessageToAll(COLOR_AMESSAGE, string);
}
edit2: The angle problem got fixed, made a mistake in the savecar function.
edit3: Fixed the respawn, seems like it's working, also SetVehicleZAngle seems to be acting weird, as he flips the car 180 degrees at respawn.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)