SA-MP Forums Archive
Can't exit 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: Can't exit vehicle (/showthread.php?tid=275145)



Can't exit vehicle - Kingunit - 08.08.2011

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.


Re: Can't exit vehicle - WoodPecker - 08.08.2011

Use this:

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



Respuesta: Can't exit vehicle - [J]ulian - 08.08.2011

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



Re: Can't exit vehicle - Kingunit - 08.08.2011

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.