GetVehiclePos in OnVehicleDeath - 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: GetVehiclePos in OnVehicleDeath (
/showthread.php?tid=620296)
GetVehiclePos in OnVehicleDeath -
MerryDeer - 28.10.2016
Hi,
Can i getvehiclepos in OnVehicleDeath?
Re: GetVehiclePos in OnVehicleDeath - Casttiel - 28.10.2016
Quote:
Originally Posted by MerryDeer
Hi,
Can i getvehiclepos in OnVehicleDeath?
|
Yes, you can do it this way, example:
PHP код:
public OnVehicleDeath(vehicleid, killerid)
{
static Float:Pos[3];
GetVehiclePos(vehicleid, Pos[0], Pos[1], Pos[2]);
printf("X: %f | Y: %f | Z: %f",Pos[0], Pos[1], Pos[2]);
return true;
}
PS:Only one example.
Re: GetVehiclePos in OnVehicleDeath -
GoldenLion - 28.10.2016
Seriously, you could just go in-game and get your answer in a minute instead of creating a thread.