Skip to content

Commit

Permalink
latest
Browse files Browse the repository at this point in the history
  • Loading branch information
B3none authored May 1, 2023
1 parent 6ef0df0 commit 15a3888
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions addons/sourcemod/scripting/retakes_autoplant.sp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public Plugin myinfo =
name = "[Retakes] Autoplant",
author = "B3none",
description = "Automatically plant the bomb at the start of the round. This will work with all versions of the retakes plugin.",
version = "2.3.4",
version = "2.3.5",
url = "https://github.com/b3none"
};

Expand Down Expand Up @@ -120,12 +120,14 @@ public void SendBombPlanted(int client)
{
Event event = CreateEvent("bomb_planted");

if (event != null)
if (event == null)
{
event.SetInt("userid", GetClientUserId(client));
event.SetInt("site", bombsite);
event.Fire();
return;
}

event.SetInt("userid", GetClientUserId(client));
event.SetInt("site", bombsite);
event.Fire();
}

stock bool SafeRemoveWeapon(int client, int weapon)
Expand Down

0 comments on commit 15a3888

Please sign in to comment.