Skip to content

Commit 0a9d3e2

Browse files
authored
Update Hooks.cs
1 parent bfd1a32 commit 0a9d3e2

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

Hooks.cs

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -155,42 +155,6 @@ public HookResult OnRoundStart(EventRoundStart @event, GameEventInfo info)
155155
}
156156
}
157157

158-
if (GameRules().WarmupPeriod)
159-
{
160-
WriteColor($"VIP Plugin - *[GAMERULES]* Warmup dosen't real Round, set on 0.", ConsoleColor.Yellow);
161-
162-
Round = 0;
163-
}
164-
if (GameRules().OvertimePlaying == 1)
165-
{
166-
WriteColor($"VIP Plugin - *[GAMERULES]* Overtime dosen't real Round, set on 0.", ConsoleColor.Yellow);
167-
168-
Round = 0;
169-
}
170-
if (GameRules().SwitchingTeamsAtRoundReset)
171-
{
172-
Round = -1;
173-
DisableGiving = true;
174-
foreach (var l_player in Utilities.GetPlayers())
175-
{
176-
CCSPlayerController player = l_player;
177-
if (player == null && !player.IsValid)
178-
{
179-
return HookResult.Continue;
180-
}
181-
var client = player.Index;
182-
183-
if (IsVIP[client] == 1)
184-
{
185-
Round = -1;
186-
Used[client] = 0;
187-
LastUsed[client] = 0;
188-
}
189-
}
190-
WriteColor($"VIP Plugin - *[GAMERULES]* Halftime/switch sites dosen't real Round, set on {Round}.", ConsoleColor.Yellow);
191-
WriteColor($"VIP Plugin - *[GAMERULES]* Restarting rounds number to zero..", ConsoleColor.Yellow);
192-
WriteColor($"VIP Plugin - *[GAMERULES]* Removing all weapons to players and giving C4, Knife, Glock, HKP2000.", ConsoleColor.Yellow);
193-
}
194158
if(Round == 0 || Round == -1)
195159
{
196160
foreach (var l_player in Utilities.GetPlayers())

0 commit comments

Comments
 (0)