Skip to content

Commit

Permalink
[l4d2lib] Fix error message (#726)
Browse files Browse the repository at this point in the history
* [l4d2lib] Fix error message

* Update l4d2_playstats.inc
  • Loading branch information
A1mDev authored Jan 1, 2024
1 parent 5ec7b6d commit 4e2631b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions addons/sourcemod/scripting/include/l4d2_playstats.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
native void PLAYSTATS_BroadcastRoundStats();
native void PLAYSTATS_BroadcastGameStats();

public SharedPlugin __pl_l4d2lib =
public SharedPlugin __pl_l4d2playstats =
{
name = "l4d2_playstats",
file = "l4d2_playstats.smx",
Expand All @@ -18,7 +18,7 @@ public SharedPlugin __pl_l4d2lib =
};

#if !defined REQUIRE_PLUGIN
public void __pl_l4d2lib_SetNTVOptional()
public void __pl_l4d2playstats_SetNTVOptional()
{
MarkNativeAsOptional("PLAYSTATS_BroadcastRoundStats");
MarkNativeAsOptional("PLAYSTATS_BroadcastGameStats");
Expand Down
10 changes: 5 additions & 5 deletions addons/sourcemod/scripting/l4d2lib.sp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public Plugin myinfo =
name = "L4D2Lib",
author = "Confogl Team",
description = "Useful natives and fowards for L4D2 Plugins",
version = "3.2",
version = "3.2.1",
url = "https://github.com/SirPlease/L4D2-Competitive-Rework"
};

Expand All @@ -53,16 +53,16 @@ public void OnPluginStart()
#endif

#if MODULE_TANKS
HookEvent("tank_spawn", TankSpawn_Event);
HookEvent("item_pickup", ItemPickup_Event);
HookEvent("tank_spawn", TankSpawn_Event, EventHookMode_Post);
HookEvent("item_pickup", ItemPickup_Event, EventHookMode_Post);
#endif

#if MODULE_TANKS || MODULE_SURVIVORS
HookEvent("player_death", PlayerDeath_Event);
HookEvent("player_death", PlayerDeath_Event, EventHookMode_Post);
#endif

#if MODULE_SURVIVORS || MODULE_MAPINFO
HookEvent("player_disconnect", PlayerDisconnect_Event, EventHookMode_PostNoCopy);
HookEvent("player_disconnect", PlayerDisconnect_Event, EventHookMode_Post);
#endif

#if MODULE_SURVIVORS
Expand Down

0 comments on commit 4e2631b

Please sign in to comment.