17.02.2012, 19:45
yes:
Usage:
the time is in seconds
pawn Код:
stock FreezePlayer(playerid, time)
{
TogglePlayerControllable(playerid, 0);
SetTimerEx("UnfreezePlayer", time * 1000, false, "i", playerid);
return 1;
}
forward UnfreezePlayer(playerid);
public UnfreezePlayer(playerid)
{
return TogglePlayerControllable(playerid, 1);
}
pawn Код:
FreezePlayer(playerid, 2);