Freeze and unfreeze
#1

Hello,
Can anyone help me with a working code for this:
When someone enters the checkpoint he needs to freeze for 5 seconds..
And than unfreeze with a message on his screen..
I know i can find the functions on the wiki, but i always use them wrong..
So if anyone please can make a working example for me.
Thanks
Reply
#2

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    TogglePlayerControllable(playerid, false);
    SetTimerEx("UnfreezePlayer", 5000, 0, "i", playerid);
}

forward UnfreezePlayer(playerid);
public UnfreezePlayer(playerid)
{
    TogglePlayerControllable(playerid, true);
    // + whatever you want to do else
}
Here, but do not just copy and paste it, but use it to learn
Reply
#3

Thanks it works!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)