12.08.2011, 14:51
pawn Код:
function FreezePlayer(playerid, time)
{
new string[16];
if(time > 0)
{
TogglePlayerControllable(playerid, false);
SetTimerEx("FreezePlayer", 1000, 0, "ii", playerid, time-1);
}
else
{
TogglePlayerControllable(playerid, true);
}
return true;
}
pawn Код:
FreezePlayer(playerid, Your_time);