29.06.2015, 06:28
hi , i have a function to put a vehicle in garage, everything is OK just the function of z Angle didn't work it's return to 0.0 angle idk why , please help , this is my code
PHP код:
stock SetPlayerCarSlotInGarage(playerid)
{
for(new i = 0; i < MAX_PLAYERVEHICLES; i++)
{
if(!VData[i][vehStatus]) continue;
if(!isnull(VData[i][vehOwner]) && !strcmp(VData[i][vehOwner], GetName(playerid)))
{
if(pInfo[playerid][pUsedVehSlot] == VData[i][vehSlot])
{
LinkVehicleToInterior(VData[i][vehicleData], 1);
SetVehicleVirtualWorld(VData[i][vehicleData], playerid+10);
SetVehiclePos(VData[i][vehicleData], 616.1086, -11.2587, 1001.5592);
SetVehicleZAngle(VData[i][vehicleData], -90.0);
break;
}
}
}
return 1;
}