AntiDLL module
(?) Fix for AntiDLL module
This commit is contained in:
parent
708ae6cb90
commit
62b1987fde
3 changed files with 8 additions and 1 deletions
|
|
@ -86,8 +86,15 @@ public sealed class AntiDLL_CS2_SimpleAdmin : BasePlugin, IPluginConfig<PluginCo
|
|||
_bannedPlayers.Remove(playerSlot);
|
||||
}
|
||||
|
||||
private void OnDetection(CCSPlayerController player, string eventName)
|
||||
private void OnDetection(CCSPlayerController? player, string eventName)
|
||||
{
|
||||
if (player == null || !player.IsValid || player.IsBot) return;
|
||||
if (player.Connected != PlayerConnectedState.PlayerConnected)
|
||||
{
|
||||
AddTimer(3.0f, () => OnDetection(player, eventName));
|
||||
return;
|
||||
}
|
||||
|
||||
if (!_bannedPlayers.Add(player.Slot))
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue