Enter 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Enter vehicle (
/showthread.php?tid=259573)
Enter vehicle -
Wesley221 - 05.06.2011
Hey guys,
If you enter a specific car, i want that you're not able to get in. I know there is RemovePlayerFromVehicle(playerid);, but then you're still able to get inside the car.
Ive also tried OnPlayerEnterVehicle, but that doesnt work that good neither (read below).
pawn Код:
GetPlayerPos(playerid, Float:x, Float:y, Float:z);
SetPlayerPos(playerid, Float:x, Float:y, Float:z);
When youre running to a car, and press ENTER/F it just stops the person from running and put him at the position he "entered" the vehicle.
Anything else i could try?
~Wesley
AW: Enter vehicle -
Nero_3D - 05.06.2011
Work with
SetVehicleParamsForPlayer
Everything is explained in wiki
You just need to set the params correctly if the vehicle streams in
Re: Enter vehicle -
linuxthefish - 05.06.2011
Whats in your OnPlayerEnterVehicle callback?
Re: Enter vehicle -
Wesley221 - 05.06.2011
Nero, Thanks, i will try that
Linux, like i said before:
pawn Код:
GetPlayerPos(playerid, Float:x, Float:y, Float:z);
SetPlayerPos(playerid, Float:x, Float:y, Float:z);
It DOES work, just not fine.