logging when madness elite ze hack detector kicks somebody
This commit is contained in:
		
							parent
							
								
									c683de31e1
								
							
						
					
					
						commit
						ca37605983
					
				| @ -18,6 +18,7 @@ | ||||
| #tryinclude <oryx> | ||||
| #tryinclude <entWatch_restrictions> | ||||
| #tryinclude <jenz_ban_detector> | ||||
| #tryinclude <testingjust> | ||||
| 
 | ||||
| #pragma newdecls required | ||||
| 
 | ||||
| @ -674,6 +675,26 @@ public Action OnClientSayCommand(int client, const char[] sCommand, const char[] | ||||
| 	return Plugin_Continue; | ||||
| } | ||||
| 
 | ||||
| public void KickEliteHackDetectorPost(int client) | ||||
| { | ||||
|     char sClientName[MAX_NAME_LENGTH]; | ||||
|     char sClientID[21]; | ||||
|     GetClientName(client, sClientName, sizeof(sClientName)); | ||||
|     GetClientAuthId(client, AuthId_Steam2, sClientID, sizeof(sClientID)); | ||||
|     char currentMap[64]; | ||||
|     GetCurrentMap(currentMap, sizeof(currentMap)); | ||||
|     char sMessage[1900]; | ||||
|     char sAuthID64[32]; | ||||
|     if (!Steam32IDtoSteam64ID(sClientID, sAuthID64, sizeof(sAuthID64))) | ||||
|         return; | ||||
| 
 | ||||
|     Format(sMessage, sizeof(sMessage), "https://steamcommunity.com/profiles/%s\nName: %s\nSteamID: %s\nClient got kicked for potentially using ZE elite hack. might have squashed the guy crashing the server. map was: %s", sAuthID64, sClientName, sClientID, currentMap); | ||||
|     if (g_sAvatarURL[client][0] != '\0') | ||||
|         Discord_POST(DISCORD_BAN_DETECTOR, sMessage, true, sClientName, true, g_sAvatarURL[client], false); | ||||
|     else | ||||
|         Discord_POST(DISCORD_BAN_DETECTOR, sMessage, true, sClientName, false, "", false); | ||||
| } | ||||
| 
 | ||||
| public void BanDetectorPost(int client, const char[] detected_sourceban) | ||||
| { | ||||
|     char sClientName[MAX_NAME_LENGTH]; | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user