Freeze at teleport
#1

hey guys!
can someone tell me how can i set the player frozen when i teleport to a place?!
How do i do the timer?
Thanks
Reply
#2

Something like this;
pawn Код:
forward FreezePlayer(playerid);
forward UnfreezePlayer(playerid);

public FreezePlayer(playerid)
{
    TogglePlayerControllable(playerid, 0);
    SetTimerEx("UnfreezePlayer", 1500, 0, i, playerid);
    return 1;
}
And if, for some reason you want to unfreeze him;
pawn Код:
public UnfreezePlayer(playerid)
{
    TogglePlayerControllable(playerid, 1);
    return 1;
}
You use the Freeze, and Unfreeze at your teleport commands,
Reply
#3

and how to freeze car in the air..?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)