I have been seeing since 2 days that some players are using an exploit by which they plant the c4 and explode instantly and same for defuse under 1 second.
I know earlier this was patched by valve back in 2018 or 19.
Anyone here who can tell me any possible solution.
// Log only, because of those instant defuse plugins...
if(defusing_time <= 1.0)
{
char reason[PLATFORM_MAX_PATH];
int client = GetClientOfUserId(userid_defuser);
// If c4 explode in second or less, ban player with week and log player;
if(c4lifetime <= 1.0)
{
Format(reason, sizeof(reason), "Banned player '%L' for C4 instant explosion exploit/hack suspicion (under 1.0 second delay)", client);
LogAction(-1, -1, reason);
BanClient(client, 10080, BANFLAG_AUTO,
reason,
"There were unexpected event, try contact server Admin",
"sm_ban", 0);
}
}
else
{
Format(reason, sizeof(reason), "Player with userid #%i, C4 instant explosion exploit/hack suspicion. Planted C4 lifetime was %f, server convar mp_c4timer is %f (Explosion happens +1.0 second)", userid_planted, c4lifetime, c4timer);
LogAction(-1, -1, reason);
}
}
}