26.09.2011, 11:57
pawn Код:
public OnPlayerSpawn(playerid)
{
TogglePlayerControllable(playerid, false); // Freeze the player
SetTimerEx("Unfreeze", 5000, false, "i", playerid); // Make a 5 second timer for that player to get unfrozen
return 1;
}
forward Unfreeze(playerid);
public Unfreeze(playerid)
{
TogglePlayerControllable(playerid, true); // Unfreeze the player after 5 seconds
return 1;
}