updated entwatch message and ban report message
This commit is contained in:
parent
4f57a8957c
commit
d45bcf955a
@ -17,7 +17,8 @@
|
||||
#tryinclude <calladmin>
|
||||
#tryinclude <oryx>
|
||||
#tryinclude <entWatch_restrictions>
|
||||
#tryinclude <jenz_ban_detector>
|
||||
//#tryinclude <jenz_ban_detector>
|
||||
#tryinclude <handicap_trouble_maker>
|
||||
|
||||
#pragma newdecls required
|
||||
|
||||
@ -674,7 +675,7 @@ public Action OnClientSayCommand(int client, const char[] sCommand, const char[]
|
||||
return Plugin_Continue;
|
||||
}
|
||||
|
||||
public void BanDetectorPost(int client, const char[] detected_sourceban)
|
||||
public void BanDetectorPost1(int client, const char[] detected_sourceban)
|
||||
{
|
||||
char sClientName[MAX_NAME_LENGTH];
|
||||
char sClientID[21];
|
||||
@ -687,7 +688,7 @@ public void BanDetectorPost(int client, const char[] detected_sourceban)
|
||||
if (!Steam32IDtoSteam64ID(sClientID, sAuthID64, sizeof(sAuthID64)))
|
||||
return;
|
||||
|
||||
Format(sMessage, sizeof(sMessage), "https://steamcommunity.com/profiles/%s\nName: %s\nSteamID: %s\nClient is ban avoiding the ban: https://bans.unloze.com/index.php?p=banlist&searchText=%s&Submit=Search ", sAuthID64, sClientName, sClientID, detected_sourceban);
|
||||
Format(sMessage, sizeof(sMessage), "https://steamcommunity.com/profiles/%s\nName: %s\nSteamID: %s\nMap: %s\nClient is ban avoiding the ban: https://bans.unloze.com/index.php?p=banlist&searchText=%s&Submit=Search ", sAuthID64, sClientName, sClientID, currentMap, detected_sourceban);
|
||||
if (g_sAvatarURL[client][0] != '\0')
|
||||
Discord_POST(DISCORD_BAN_DETECTOR, sMessage, true, sClientName, true, g_sAvatarURL[client], false);
|
||||
else
|
||||
@ -710,7 +711,7 @@ public void CallAdmin_OnReportPost(int client, int target, const char[] reason)
|
||||
serverPort = CallAdmin_GetHostPort();
|
||||
CallAdmin_GetHostName(sServerName, sizeof(sServerName));
|
||||
|
||||
// Reporter wasn't a real client (initiated by a module)
|
||||
// Reporter wasnt a real client (initiated by a module)
|
||||
if (client == REPORTER_CONSOLE)
|
||||
{
|
||||
strcopy(sClientName, sizeof(sClientName), "Server/Console");
|
||||
@ -839,7 +840,7 @@ public void EW_OnClientRestricted(int client, int target, int length)
|
||||
else if (length == 0)
|
||||
Format(sMessageTemp, sizeof(sMessageTemp), "%L got permanently restricted by %L", target, client);
|
||||
else
|
||||
Format(sMessageTemp, sizeof(sMessageTemp), "%L got restricted by %L for %d minutes", target, client, length);
|
||||
Format(sMessageTemp, sizeof(sMessageTemp), "%L got restricted by %L for %d Hours playtime", target, client, length);
|
||||
|
||||
char sMessage[1920]; // 128 x 15
|
||||
Format(sMessage, sizeof(sMessage), "[ %s ][ %s ]```%s```", sCurrentMap, sDemoInfo, sMessageTemp);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user