Posts: 672
Threads: 89
Joined: Jan 2010
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
Posts: 734
Threads: 8
Joined: Jun 2009
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,
Posts: 88
Threads: 11
Joined: Sep 2009
Reputation:
0
and how to freeze car in the air..?