Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: remove int userid to fix client crash #127

Merged
merged 2 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading