Removed player_death event from beacon.sp, wasn't needed, lol
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401793
This commit is contained in:
		
							parent
							
								
									0e4ea825d3
								
							
						
					
					
						commit
						b63963ef86
					
				@ -5,7 +5,6 @@ new g_haloSprite;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
SetupBeacon()
 | 
					SetupBeacon()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	HookEvent("player_death", Event_BeaconPlayerDeath, EventHookMode_Post);
 | 
					 | 
				
			||||||
	HookEvent("round_end", Event_BeaconRoundEnd, EventHookMode_PostNoCopy);	
 | 
						HookEvent("round_end", Event_BeaconRoundEnd, EventHookMode_PostNoCopy);	
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	PrecacheSound("ambient/tones/elev1.wav", true);
 | 
						PrecacheSound("ambient/tones/elev1.wav", true);
 | 
				
			||||||
@ -111,17 +110,6 @@ public Action:Timer_Beacon(Handle:timer, any:client)
 | 
				
			|||||||
	return Plugin_Handled;
 | 
						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)
 | 
					public Action:Event_BeaconRoundEnd(Handle:event,const String:name[],bool:dontBroadcast)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	KillAllBeacons();
 | 
						KillAllBeacons();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user