26.09.2011, 13:02
Please use the wiki next time!
https://sampwiki.blast.hk/wiki/OnPlayerInteriorChange
https://sampwiki.blast.hk/wiki/OnPlayerInteriorChange
pawn Код:
public OnPlayerInteriorChange(playerid,newinteriorid,oldinteriorid)
{
if(newinteriorid == 0)
{
TogglePlayerControllable(playerid, false);
SetTimerEx("Unfreeze", 5000, false, "i", playerid);
}
}
forward Unfreeze(playerid);
public Unfreeze(playerid)
{
TogglePlayerControllable(playerid, true);
return 1;
}