SA-MP Forums Archive
Help, SetVehicleParamsForPlayer, little question - 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: Help, SetVehicleParamsForPlayer, little question (/showthread.php?tid=110007)



Help, SetVehicleParamsForPlayer, little question - jonybomb - 23.11.2009

Hi, I want know, if in this version, it is possible put the marker, to all players, and when it is far away of the player, like, the player in Los Santos and the car in Las venturas, the player see the mark?

I am trying to fix a little problem in pen gm, and it is very dificult


Re: Help, SetVehicleParamsForPlayer, little question - niCe - 23.11.2009

It's not possible, use checkpoint instead, to mark the vehicle.


Re: Help, SetVehicleParamsForPlayer, little question - jonybomb - 23.11.2009

Sh1t.. Kye removed that?

And, what is the checkoint instead? That follows the vehicle?


Re: Help, SetVehicleParamsForPlayer, little question - niCe - 23.11.2009

Standart checkpoint. https://sampwiki.blast.hk/wiki/SetPlayerCheckpoint

If the vehicle is in move, you will need to update the checkpoint position with a timer. When the vehicle gets streamed in, you can disable chekpoint and switch to vehicle marker.


Re: Help, SetVehicleParamsForPlayer, little question - jonybomb - 26.11.2009

That works when player is inside of vehicle.. But when is nobody inside, how i put a checkpoint?...


Re: Help, SetVehicleParamsForPlayer, little question - Zeromanster - 26.11.2009

Quote:
Originally Posted by jonybomb
That works when player is inside of vehicle.. But when is nobody inside, how i put a checkpoint?...
pawn Код:
new Float:vehx, Float:vehy, Float:vehz;
GetVehiclePos(vehicleid, vehx, vehy, vehz);
SetPlayerCheckpoint(playerid, vehx, vehy, vehz, 5.0);



Re: Help, SetVehicleParamsForPlayer, little question - jonybomb - 29.11.2009

Hm... I have to test, thanks men