31.12.2011, 19:50
Or maybe like that?
pawn Код:
public FreezePlayer(playerid, time)
{
if(time > 0)
{
TogglePlayerControllable(playerid, false);
SetTimerEx("FreezePlayer", 1000, false, "ii", playerid, time-1);
}
else
{
TogglePlayerControllable(playerid, true);
}
return true;
}