Enter vehicle
#1

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

Work with SetVehicleParamsForPlayer

Everything is explained in wiki

You just need to set the params correctly if the vehicle streams in
Reply
#3

Whats in your OnPlayerEnterVehicle callback?
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)