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

Title says it all.
Reply
#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
#3

Feel, use the thing i gaved you !
Reply
#4

Not tested.

pawn Код:
public OnPlayerInteriorChange(playerid,newinteriorid,oldinteriorid)
{
    if(newinteriorid == 0)
        TogglePlayerControllable(playerid,0);
    return 1;
}
Reply
#5

Alright, i did it and it worked, Now i have only one small request. How do i make that cars wont fall thro the map? I really need that badly, becouse i cant respawn cars every 5 minutes -.-
Reply
#6

Help
Reply
#7

Well if you want, I can make you a Vehicle Streamer ! ( It's Better, The Official Creator is Zh3r0 )
Reply
#8

Set a timer to spawn the cars 2 seconds after the objects.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)