Skip to content

Commit

Permalink
Fix for other games other than csgo
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexer10 committed Jul 19, 2018
1 parent 02b0a0f commit 227eb07
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

*.smx
8 changes: 6 additions & 2 deletions addons/sourcemod/scripting/hexprops.sp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ public void OnPluginStart()
PropsArray = new ArrayList();

RegAdminCmd("sm_props", Cmd_Props, ADMFLAG_GENERIC);
HookEvent("round_poststart", Event_RoundPostStart);


if (!HookEvent("round_poststart", Event_RoundStart))
HookEvent("round_start", Event_RoundStart);

}

public void OnMapStart()
Expand Down Expand Up @@ -93,7 +97,7 @@ public void OnClientDisconnect(int client)
bPhysicProp[client] = false;
}

public void Event_RoundPostStart(Event event, const char[] name, bool dontBroadcast)
public void Event_RoundStart(Event event, const char[] name, bool dontBroadcast)
{
PropsArray.Clear();
LoadProps();
Expand Down

0 comments on commit 227eb07

Please sign in to comment.