Skip to content

Commit

Permalink
Fix client id
Browse files Browse the repository at this point in the history
  • Loading branch information
softashell committed Mar 1, 2024
1 parent ae02f65 commit 45b58eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripting/nt_tachifix.sp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#pragma semicolon 1
#pragma newdecls required

#define PLUGIN_VERSION "0.2.0"
#define PLUGIN_VERSION "0.2.1"
#define FIREMODE_DELAY 0.5
#define DEBUG 0

Expand Down Expand Up @@ -36,7 +36,9 @@ public void OnPlayerSpawn(Handle event, const char[] name, bool dontBroadcast)
PrintToServer("[nt_tachifix] OnPlayerSpawn %d", GetGameTime() - FIREMODE_DELAY);
#endif

g_fLastFireModeChange[GetEventInt(event, "userid")] = GetGameTime() - FIREMODE_DELAY;
int client = GetClientOfUserId(GetEventInt(event, "userid"));

g_fLastFireModeChange[client] = GetGameTime() - FIREMODE_DELAY;
}

public void OnRoundStart(Handle event, const char[] name, bool dontBroadcast)
Expand Down

0 comments on commit 45b58eb

Please sign in to comment.