29.10.2011, 19:54
(
Последний раз редактировалось Kayaque; 30.10.2011 в 14:44.
)
How to use
- Simply use FreezePlayer(playerid, seconds);
- After the given seconds the player will be unfreezed.
Areas of use
- Custom interiors
- Admin freezing of players
Comment from scripter
- Nothing special, but useful for those who's new to scripting.
- You can simply see how I put together this function below.
- Simply use FreezePlayer(playerid, seconds);
- After the given seconds the player will be unfreezed.
Areas of use
- Custom interiors
- Admin freezing of players
Comment from scripter
- Nothing special, but useful for those who's new to scripting.
- You can simply see how I put together this function below.
pawn Код:
forward Unfreeze(playerid);
public Unfreeze(playerid)
{
TogglePlayerControllable(playerid, 1);
return 1;
}
stock FreezePlayer(playerid, time)
{
SetTimerEx("Unfreeze", time*1000, false, "u", playerid);
TogglePlayerControllable(playerid, 0);
return 1;
}