Trailer Destroy - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Trailer Destroy (
/showthread.php?tid=577553)
Trailer Destroy -
Sn4ke2 - 12.06.2015
Hello all, my problem is:
I want when exit vehicle to destroy Truck an Trailer:
I make this:
PHP код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
new Trucker = GetPlayerVehicleID(playerid);
DestroyVehicle(Trucker);
new TrailerID = GetVehicleTrailer(vehicleid);
DestroyVehicle(TrailerID);
return 1;
}
But Trailer <b>NOT</b> Destroy !
Re: Trailer Destroy -
Huba - 12.06.2015
first destroy trailer, later vehicle:
Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
new TrailerID = GetVehicleTrailer(vehicleid);
DestroyVehicle(TrailerID);
DestroyVehicle(vehicleid);
return 1;
}
Re: Trailer Destroy -
Sn4ke2 - 12.06.2015
Thank you! + REP