From b63963ef86ad1c97b70edf80ae808d0df5c234f4 Mon Sep 17 00:00:00 2001 From: Michael McKoy Date: Wed, 12 Dec 2007 02:24:57 +0000 Subject: [PATCH] Removed player_death event from beacon.sp, wasn't needed, lol --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401793 --- plugins/basefuncommands/beacon.sp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/plugins/basefuncommands/beacon.sp b/plugins/basefuncommands/beacon.sp index 63112378..2c89807c 100644 --- a/plugins/basefuncommands/beacon.sp +++ b/plugins/basefuncommands/beacon.sp @@ -5,7 +5,6 @@ new g_haloSprite; SetupBeacon() { - HookEvent("player_death", Event_BeaconPlayerDeath, EventHookMode_Post); HookEvent("round_end", Event_BeaconRoundEnd, EventHookMode_PostNoCopy); PrecacheSound("ambient/tones/elev1.wav", true); @@ -111,17 +110,6 @@ public Action:Timer_Beacon(Handle:timer, any:client) return Plugin_Handled; } -public Action:Event_BeaconPlayerDeath(Handle:event,const String:name[],bool:dontBroadcast) -{ - new client = GetClientOfUserId(GetEventInt(event, "userid")); - if (g_BeaconTimers[client] != INVALID_HANDLE) - { - KillBeacon(client); - } - - return Plugin_Continue; -} - public Action:Event_BeaconRoundEnd(Handle:event,const String:name[],bool:dontBroadcast) { KillAllBeacons();