diff --git a/addons/sourcemod/scripting/include/l4d2_playstats.inc b/addons/sourcemod/scripting/include/l4d2_playstats.inc index b0090e23a..0720a0719 100644 --- a/addons/sourcemod/scripting/include/l4d2_playstats.inc +++ b/addons/sourcemod/scripting/include/l4d2_playstats.inc @@ -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", @@ -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"); diff --git a/addons/sourcemod/scripting/l4d2lib.sp b/addons/sourcemod/scripting/l4d2lib.sp index e133202c6..c56d57d7a 100644 --- a/addons/sourcemod/scripting/l4d2lib.sp +++ b/addons/sourcemod/scripting/l4d2lib.sp @@ -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" }; @@ -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