SA-MP Forums Archive
ayuda problema con vehнculos - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: ayuda problema con vehнculos (/showthread.php?tid=641357)



ayuda problema con vehнculos - iSrPipolRD - 14.09.2017

El server no guarda el angle, cuando aparcу el coche que luego lo respawnneo no se guarda el angle, cuando reiniciу el sv si se pone el angle




Este es mi OnvehicleSpawn.

Quote:

Quote:
public OnVehicleSpawn(vehicleid)
{
if(GetVehicleModel(vehicleid) == 528 ) //aca puse un espacio para poder publicarlo ya que el foro agrega un emoji.
{
SetVehicleHealthEx(vehicleid, 2000);
}
CargaDelCamion[vehicleid] = 0;
luzlanewestado[vehicleid] = 0;
luzlanews1[vehicleid] = 0;
luzlanews2[vehicleid] = 0;
luzlanews3[vehicleid] = 0;
luzlanews4[vehicleid] = 0;
DestroyObject(luzlanews1[vehicleid]);
DestroyObject(luzlanews2[vehicleid]);
DestroyObject(luzlanews3[vehicleid]);
DestroyObject(luzlanews4[vehicleid]);
DestroyDynamicObject(LuzSS[0][vehicleid]);
DestroyDynamicObject(LuzSS[1][vehicleid]);
DestroyDynamicObject(LuzSS[2][vehicleid]);
DestroyDynamicObject(LuzSS[3][vehicleid]);
SinSonido[vehicleid] = 0;
VehAlquilado[vehicleid] = 0;
AutoInfo[vehicleid][aMotor] = 0;

if(VehExploto[vehicleid] == 1)
{
SetVehicleHealthEx(vehicleid, 350.0);
AutoInfo[vehicleid][aRoto] = 1;
UpdateVehicleDamageStatus(vehicleid, 3565161, 33554946, 4, 0);
}
SetVehiclePos(vehicleid, AutoInfo[vehicleid][ax], AutoInfo[vehicleid][ay], AutoInfo[vehicleid][az]);
SetVehicleZAngle(vehicleid, AutoInfo[vehicleid][aa]);
LinkVehicleToInterior(vehicleid, AutoInfo[vehicleid][aInteriorID]);
new matricula[40];
format(matricula, sizeof(matricula), "LS-%d", AutoInfo[vehicleid][aID]);
SetVehicleNumberPlate(vehicleid, matricula);
SetTimerEx("SetVehicleZAngle", 1500, false, "i", vehicleid);
return 1;
}