Can't exit vehicle
#1

Hello,

I'm making some jumps for my server, but the player who is in the vehicle can't exit their car.
They just need to jump, then they automatic explode because they are falling down.
The only thing I need is a function that a player can't exit the car.
Reply
#2

Use this:

PHP код:
TogglePlayerControllable(playerid,0); 
Reply
#3

pawn Код:
public OnPlayerEnterVehicle(playerid,vehicleid)
{
    PutPlayerInVehicle(playerid, vehicleid, GetPlayerVehicleSeat(playerid));
    return 1;
}
Reply
#4

Quote:
Originally Posted by WoodPecker
Посмотреть сообщение
Use this:

PHP код:
TogglePlayerControllable(playerid,0); 
That's freezing the player, then he can't walk and drive.

@Other
You sure it works? Seems that code is only forcing the player in the vehicle. But he can still exit.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)