Skip to content

Commit

Permalink
Merge pull request #127 from ipsvn/fix-cs2-update
Browse files Browse the repository at this point in the history
Fix: remove int userid to fix client crash
  • Loading branch information
zwolof authored Jun 26, 2024
2 parents 87c5ec9 + 6cff6b4 commit 00f9bc2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion RetakesPlugin/Modules/Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion RetakesPlugin/RetakesPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 00f9bc2

Please sign in to comment.