01.05.2012, 13:11
Hello,
I don't how but a guy with cheats can spawn sniper rifle without getting detected by anti-cheat.
This is my anti-cheat.
It's kind of impossible to evade from weapon detection right?
Also this thing doesn't happen only on my server...
I don't how but a guy with cheats can spawn sniper rifle without getting detected by anti-cheat.
This is my anti-cheat.
pawn Код:
public OnWeaponCheck(){ // Timer is set to 1 sec to check if someone has spawned some weps.
new string[128], Ip[16], gun_name[30], day, month, year, query[200];
foreach(Player, i){
if(PlayerInfo[i][pLogged] != -1){
if(PlayerInfo[i][pSpawned] != -1){
GetPlayerName(i, pname, sizeof(pname));
GetPlayerIp(i, Ip, sizeof(Ip));
if(GetPlayerWeapon(i) >= 1 && GetPlayerWeapon(i) <= 45){
GetWeaponName(GetPlayerWeapon(i), gun_name, sizeof(gun_name));
format(string, sizeof(string), "Admin-Log: %s has been banned for weapon hack (Wep:%s)(%s).", pname, gun_name, Ip);
SendAdminMessage(COLOR_RED, string);
getdate(year, month, day);
format(string, sizeof(string), "%02d/%02d/%d", day, month, year);
format(query, sizeof(query), "INSERT INTO `player_ban` (`name` ,`banned_by` ,`time` , `date` ,`reason` ,`ip`) VALUES ('%s', 'Steve', %i, '%s', 'WEAPON HACK: %s', '%s')", pname, gettime(), string, gun_name, Ip);
mysql_query(query);
SendClientMessage(i, COLOR_GREY, "You are banned from this server for 'weapon hacking'.");
TogglePlayerControllable(i,0);
Kick(i);
}
}
}
}
return 1;
}
Also this thing doesn't happen only on my server...