OnVehicleEnter Glitch
#1

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
Reply
#2

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

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);
}
Reply
#4

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)