How can i make that players freeze when they exit interiors.
#2

Please use the wiki next time!

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;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)