added oryx forward for detection
This commit is contained in:
		
							parent
							
								
									db85191b35
								
							
						
					
					
						commit
						52c6cb87c9
					
				@ -14,6 +14,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#tryinclude <AntiBhopCheat>
 | 
					#tryinclude <AntiBhopCheat>
 | 
				
			||||||
#tryinclude <calladmin>
 | 
					#tryinclude <calladmin>
 | 
				
			||||||
 | 
					#tryinclude <oryx>
 | 
				
			||||||
#tryinclude <entWatch_restrictions>
 | 
					#tryinclude <entWatch_restrictions>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#pragma newdecls required
 | 
					#pragma newdecls required
 | 
				
			||||||
@ -738,6 +739,26 @@ public void CallAdmin_OnReportHandled(int client, int id)
 | 
				
			|||||||
	else
 | 
						else
 | 
				
			||||||
		Discord_POST(DISCORD_CALLADMIN_WEBHOOKURL, sMessage, true, sUsername, false, "", false);
 | 
							Discord_POST(DISCORD_CALLADMIN_WEBHOOKURL, sMessage, true, sUsername, false, "", false);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					//'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public Action Oryx_OnTrigger(int client, int &level, char[] cheat)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    char sUsername[MAX_NAME_LENGTH];
 | 
				
			||||||
 | 
					    GetClientName(client, sUsername, sizeof(sUsername));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    char currentMap[64];
 | 
				
			||||||
 | 
					    GetCurrentMap(currentMap, sizeof(currentMap));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    char sMessage[4096];
 | 
				
			||||||
 | 
					    Format(sMessage, sizeof(sMessage), "```%s - Tick: %d``````TRIGGER LEVEL: %i\n%s```", currentMap, GetGameTickCount(), level, cheat);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if (g_sAvatarURL[client][0] != '\0')
 | 
				
			||||||
 | 
					        Discord_POST(DISCORD_ANTIBHOPCHEAT_WEBHOOKURL, sMessage, true, sUsername, true, g_sAvatarURL[client], false);
 | 
				
			||||||
 | 
					    else
 | 
				
			||||||
 | 
					        Discord_POST(DISCORD_ANTIBHOPCHEAT_WEBHOOKURL, sMessage, true, sUsername, false, "", false);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    return Plugin_Continue;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public void AntiBhopCheat_OnClientDetected(int client, char[] sReason, char[] sStats)
 | 
					public void AntiBhopCheat_OnClientDetected(int client, char[] sReason, char[] sStats)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user