15.03.2011, 13:06
This callback will help you.
https://sampwiki.blast.hk/wiki/OnPlayerInteriorChange
Also, when the callback is called you should freeze the player with
and put a timer to unfreeze
the player.
EDIT: Help for timers:
https://sampwiki.blast.hk/wiki/SetTimer
https://sampwiki.blast.hk/wiki/OnPlayerInteriorChange
Also, when the callback is called you should freeze the player with
pawn Код:
TogglePlayerControllable(playerid, 0);
pawn Код:
TogglePlayerControllable(playerid, 1);
EDIT: Help for timers:
https://sampwiki.blast.hk/wiki/SetTimer