Update TopDefenders.sp
This commit is contained in:
		
							parent
							
								
									e80a902be4
								
							
						
					
					
						commit
						b3252295be
					
				@ -3,8 +3,7 @@
 | 
				
			|||||||
#include <multicolors>
 | 
					#include <multicolors>
 | 
				
			||||||
#include <sourcemod>
 | 
					#include <sourcemod>
 | 
				
			||||||
#include <sdktools>
 | 
					#include <sdktools>
 | 
				
			||||||
 | 
					#include <hlstatsx_loghelper>
 | 
				
			||||||
#include "loghelper.inc"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define SPECMODE_NONE           0
 | 
					#define SPECMODE_NONE           0
 | 
				
			||||||
#define SPECMODE_FIRSTPERSON    4
 | 
					#define SPECMODE_FIRSTPERSON    4
 | 
				
			||||||
@ -236,8 +235,6 @@ public void OnMapStart()
 | 
				
			|||||||
	AddFileToDownloadsTable("materials/models/unloze/crown/crown_bump.vtf");
 | 
						AddFileToDownloadsTable("materials/models/unloze/crown/crown_bump.vtf");
 | 
				
			||||||
	AddFileToDownloadsTable("materials/models/unloze/crown/crown_detail.vtf");
 | 
						AddFileToDownloadsTable("materials/models/unloze/crown/crown_detail.vtf");
 | 
				
			||||||
	AddFileToDownloadsTable("materials/models/unloze/crown/crown_lightwarp.vtf");
 | 
						AddFileToDownloadsTable("materials/models/unloze/crown/crown_lightwarp.vtf");
 | 
				
			||||||
 | 
					 | 
				
			||||||
	GetTeams();
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
//----------------------------------------------------------------------------------------------------
 | 
					//----------------------------------------------------------------------------------------------------
 | 
				
			||||||
@ -415,7 +412,7 @@ public void OnRoundEnding(Event hEvent, const char[] sEvent, bool bDontBroadcast
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
			g_iPlayerWinner[0] = GetSteamAccountID(iSortedList[0][0]);
 | 
								g_iPlayerWinner[0] = GetSteamAccountID(iSortedList[0][0]);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			LogPlayerEvent(iSortedList[0][0], "triggered", "ze_defender_first");
 | 
								LH_LogPlayerEvent(iSortedList[0][0], "triggered", "ze_defender_first", true);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (iSortedList[1][0])
 | 
							if (iSortedList[1][0])
 | 
				
			||||||
@ -424,7 +421,7 @@ public void OnRoundEnding(Event hEvent, const char[] sEvent, bool bDontBroadcast
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
			g_iPlayerWinner[1] = GetSteamAccountID(iSortedList[1][0]);
 | 
								g_iPlayerWinner[1] = GetSteamAccountID(iSortedList[1][0]);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			LogPlayerEvent(iSortedList[1][0], "triggered", "ze_defender_second");
 | 
								LH_LogPlayerEvent(iSortedList[1][0], "triggered", "ze_defender_second", true);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (iSortedList[2][0])
 | 
							if (iSortedList[2][0])
 | 
				
			||||||
@ -433,7 +430,7 @@ public void OnRoundEnding(Event hEvent, const char[] sEvent, bool bDontBroadcast
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
			g_iPlayerWinner[2] = GetSteamAccountID(iSortedList[2][0]);
 | 
								g_iPlayerWinner[2] = GetSteamAccountID(iSortedList[2][0]);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			LogPlayerEvent(iSortedList[2][0], "triggered", "ze_defender_third");
 | 
								LH_LogPlayerEvent(iSortedList[2][0], "triggered", "ze_defender_third", true);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		Format(sBuffer, sizeof(sBuffer), "%s\n*************************", sBuffer);
 | 
							Format(sBuffer, sizeof(sBuffer), "%s\n*************************", sBuffer);
 | 
				
			||||||
@ -520,7 +517,7 @@ public void OnClientHurt(Event hEvent, const char[] sEvent, bool bDontBroadcast)
 | 
				
			|||||||
	{
 | 
						{
 | 
				
			||||||
		g_iPlayerDamageFrom1K[client] -= 1000;
 | 
							g_iPlayerDamageFrom1K[client] -= 1000;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		LogPlayerEvent(client, "triggered", "ze_damage_zombie");
 | 
							LH_LogPlayerEvent(client, "triggered", "ze_damage_zombie", true);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user