27.12.2012, 17:33
Код:
freezeTeam(team, bool:freeze = true, seconds_to_unfreeze = 5000) { // freeze = true, unfreeze = false for (new i = GetMaxPlayers()-1; i >= 0; i--) { if (GetPlayerTeam(i) == team) TogglePlayerControllable(i, freeze); } if (freeze) SetTimerEx("_unfreezeTeam", seconds_to_unfreeze, false, "i", team); } forward _unfreezeTeam(team); public _unfreezeTeam(team) { for (new i = GetMaxPlayers()-1; i >= 0; i--) { if (GetPlayerTeam(i) == team) TogglePlayerControllable(i, false); } return 1; }