SA-MP Forums Archive
OnVehicleEnter Glitch - 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: OnVehicleEnter Glitch (/showthread.php?tid=585010)



OnVehicleEnter Glitch - NickMirra - 10.08.2015

Well, when a player tries to enter a vehicle its teleports them ontop of the driver side rooftop. and then to the driver side door. here is an example.

Video


Re: OnVehicleEnter Glitch - Abagail - 10.08.2015

OnVehicleEnter isn't a native SA-MP callback. It seems like maybe you use SetPlayerPos right after RemovePlayerFromVehicle - causing them to first teleport and then have exited the vehicle.


Re: OnVehicleEnter Glitch - NickMirra - 10.08.2015

Quote:
Originally Posted by Abagail
Посмотреть сообщение
OnVehicleEnter isn't a native SA-MP callback. It seems like maybe you use SetPlayerPos right after RemovePlayerFromVehicle - causing them to first teleport and then have exited the vehicle.
Here is my stock for RemovePlayerFromVehicle,
Код:
stock RemovePlayerFromVehicleEx(playerid)
{
    DeletePVar(playerid,"SeatID");
	TogglePlayerControllableEx(playerid,true);
	return RemovePlayerFromVehicle(playerid);
}



Re: OnVehicleEnter Glitch - NickMirra - 11.08.2015

bump