i outcommented kickclient since madness figured out that you get kicked if you dont have a working spray, i was able to replicate that myself

This commit is contained in:
jenz 2023-11-29 16:59:07 +01:00
parent c6d13222ae
commit 80a593a31d

View File

@ -72,6 +72,7 @@ public Plugin myinfo =
public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max) public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max)
{ {
g_iEngine = GetEngineVersion(); g_iEngine = GetEngineVersion();
return APLRes_Success;
} }
public void OnPluginStart() public void OnPluginStart()
@ -129,6 +130,7 @@ public Action TimerNext(Handle timer, DataPack dPack)
hDir = dPack.ReadCell(); hDir = dPack.ReadCell();
RecursiveSearchDirs(client, recurse, sDir, count, counts, level, hDir); RecursiveSearchDirs(client, recurse, sDir, count, counts, level, hDir);
return Plugin_Handled;
} }
void RecursiveSearchDirs(int client, bool recurse, const char[] sDir, int &count, int &counts, int level, DirectoryListing hDir) void RecursiveSearchDirs(int client, bool recurse, const char[] sDir, int &count, int &counts, int level, DirectoryListing hDir)
@ -218,6 +220,7 @@ public MRESReturn FileReceived(int pThis, Handle hReturn, Handle hParams)
{ {
LogCustom("Deleted invalid spray: %s", g_sFilename); LogCustom("Deleted invalid spray: %s", g_sFilename);
PrintToServer("Invalid file: %s: %02d (%02X <> %02X)", g_sFilename, i, iRead[i], g_iVal[i]); PrintToServer("Invalid file: %s: %02d (%02X <> %02X)", g_sFilename, i, iRead[i], g_iVal[i]);
//LogCustom("Invalid file: %s: %02d (%02X <> %02X)", g_sFilename, i, iRead[i], g_iVal[i]);
DeleteFile(g_sFilename); DeleteFile(g_sFilename);
@ -232,7 +235,7 @@ public MRESReturn FileReceived(int pThis, Handle hReturn, Handle hParams)
{ {
char auth[20]; char auth[20];
GetClientAuthId(j, AuthId_Steam2, auth, sizeof(auth)); GetClientAuthId(j, AuthId_Steam2, auth, sizeof(auth));
KickClient(j, "Please change your spray"); //KickClient(j, "Please change your spray"); //if you have no spray you get flagged too by mistake. so better to remove kicking.
LogAction(j, -1, "\"%L\" is possibly using a bad spray. Client got kicked and spray got deleted.", j); LogAction(j, -1, "\"%L\" is possibly using a bad spray. Client got kicked and spray got deleted.", j);
LogCustom("Deleted invalid spray: %s from (%N) [%s]", sTemp2, j, auth); LogCustom("Deleted invalid spray: %s from (%N) [%s]", sTemp2, j, auth);
} }