From 99b42616a22cd4fd5401c2452612696a12c2745f Mon Sep 17 00:00:00 2001 From: svn Date: Wed, 26 Jun 2024 01:12:00 +0100 Subject: [PATCH 1/2] Fix: remove int userid to fix client crash --- RetakesPlugin/Modules/Helpers.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/RetakesPlugin/Modules/Helpers.cs b/RetakesPlugin/Modules/Helpers.cs index fa0e6ff..1081dae 100644 --- a/RetakesPlugin/Modules/Helpers.cs +++ b/RetakesPlugin/Modules/Helpers.cs @@ -307,7 +307,6 @@ private static void SendBombPlantedEvent(CCSPlayerController bombCarrier, Bombsi var eventPtr = NativeAPI.CreateEvent("bomb_planted", true); NativeAPI.SetEventPlayerController(eventPtr, "userid", bombCarrier.Handle); - NativeAPI.SetEventInt(eventPtr, "userid", (int)bombCarrier.PlayerPawn.Value.Index); NativeAPI.SetEventInt(eventPtr, "site", (int)bombsite); NativeAPI.FireEvent(eventPtr, false); From 6cff6b47d278127e13ec48f6c14aa48c427948a0 Mon Sep 17 00:00:00 2001 From: svn Date: Wed, 26 Jun 2024 11:08:00 +0100 Subject: [PATCH 2/2] Bump plugin version --- RetakesPlugin/RetakesPlugin.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RetakesPlugin/RetakesPlugin.cs b/RetakesPlugin/RetakesPlugin.cs index da4311c..f7466fa 100644 --- a/RetakesPlugin/RetakesPlugin.cs +++ b/RetakesPlugin/RetakesPlugin.cs @@ -20,7 +20,7 @@ namespace RetakesPlugin; [MinimumApiVersion(220)] public class RetakesPlugin : BasePlugin { - private const string Version = "2.0.5"; + private const string Version = "2.0.6"; #region Plugin info public override string ModuleName => "Retakes Plugin";