SetPlayerCheckpoint to Vehicle
#1

How to SetPlayerCheckpoint to a vehicle when last Used?
Reply
#2

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 >.<
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)