SA-MP Forums Archive
How do i make Checkpoint on vehicles - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How do i make Checkpoint on vehicles (/showthread.php?tid=87783)



How do i make Checkpoint on vehicles - Mowgli - 22.07.2009

how do a i make a Marker/Checkpoint for a vehicle, Mainly want that little arrow thing on top of the vehicl.


i just need that line of code that makes the marker...THanks!


Re: How do i make Checkpoint on vehicles - James_Alex - 22.07.2009

juste set a timer
and get vehicles pos
like this
pawn Код:
SetTimerEx("CheckVeh", 100, true, "i", playerid);

}

forward CheckVeh(playerid);
public CheckVeh(playerid)
{
  new Float:X, Float:Y, Float:Z;
  GetVehiclePos(vehicle id, X, Y, Z);
  SetPlayerCheckpoint(playerid, X, Y, Z, 5);
  return 1;
}



Re: How do i make Checkpoint on vehicles - Mowgli - 22.07.2009

thanks james