SA-MP Forums Archive
SetPlayerCheckpoint to Vehicle - 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: SetPlayerCheckpoint to Vehicle (/showthread.php?tid=544738)



SetPlayerCheckpoint to Vehicle - Greaper - 03.11.2014

How to SetPlayerCheckpoint to a vehicle when last Used?


Respuesta: SetPlayerCheckpoint to Vehicle - Tusso4 - 03.11.2014

Try it:

Search OnPlayerEnterVehicle and add this:

Код:
lastveh[playerid]=vehicleid;
And add this variable to gamemode or sistem

Код:
lastveh[MAX_PLAYERS];
Finally only add in command or funnction this script:
Код:
new Float: x, Float:y, Float:z;
GetVehiclePos(lastveh[playerid], x, y, z);
SetPlayerCheckpoint(playerid, x, y, z, 5);
Note: Sorry for me english but i only help in spanish version >.<