24.02.2009, 15:27
I want that the player cannot exit the vehicle using the Enter / F key. But i cannot get it done, each time when i return 0 at OnVehicleExit (or whatever the callback is called) it just steps out. I've also tried this but this wouldn't work also:
I just want that he wont be able to exit, but can use everything else like normally. Without TogglePlayerControlable.
Thanks!
pawn Код:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
if(locked[playerid] == 1)
{
if(newkeys == 16) return 0;
}
return 1;
}
Thanks!