30.01.2014, 02:24
(
Последний раз редактировалось Gill; 30.01.2014 в 09:58.
)
Solved!
stock UpdateGroupVehicleParkPosition(groupvehicleid, Float:newx, Float:newy, Float:newz, Float:newangle, VW, Int)
{
if(GetVehicleModel(DynVehicleInfo[DynVeh[groupvehicleid]][gv_iSQLID] != INVALID_GROUP_ID))
{
new Float:oldx, Float:oldy, Float:oldz;
oldx = DynVehicleInfo[DynVeh[groupvehicleid]][gv_fX];
oldy = DynVehicleInfo[DynVeh[groupvehicleid]][gv_fY];
oldz = DynVehicleInfo[DynVeh[groupvehicleid]][gv_fZ];
if(oldx == newx && oldy == newy && oldz == newz)
{
}
else
{
DynVehicleInfo[DynVeh[groupvehicleid]][gv_fX] = newx;
DynVehicleInfo[DynVeh[groupvehicleid]][gv_fY] = newy;
DynVehicleInfo[DynVeh[groupvehicleid]][gv_fZ] = newz;
DynVehicleInfo[DynVeh[groupvehicleid]][gv_fRotZ] = newangle;
DynVehicleInfo[DynVeh[groupvehicleid]][gv_iVW] = VW;
DynVehicleInfo[DynVeh[groupvehicleid]][gv_iInt] = Int;
UpdateGroupVehicleMods(DynVeh[groupvehicleid]);
DynVeh_Save(DynVeh[groupvehicleid]);
}
}
return 1
}