AntiCheat
#1

...........
Reply
#2

Why not just check this under OnPlayerDeath to see if the killer used a bad gun?
Reply
#3

Quote:
Originally Posted by Backwardsman97
Why not just check this under OnPlayerDeath to see if the killer used a bad gun?
I do right now, temporarily. People can /q bind to avoid a ban, and to avoid a player from taking damage this should detect & ban, straight away.
Reply
#4

Bump (12+ hours later).
Reply
#5

Anyoneee?
Reply
#6

Still no help..?

I added:

if(GetPlayerWeapon(i) != 0)

Then start the anticheat if statements, still doesn't work.. Anyone?
Reply
#7

pawn Код:
#define GivePlayerWeapon mGivePlayerWeapon
pawn Код:
forward mGivePlayerWeapon(playerid,weaponid,ammo);
public mGivePlayerWeapon(playerid,weaponid,ammo)
{
if(weaponid = 38 || weaponid = 39) // add more weapon ids
// kick/ban/remove weapon whatever you want
return 1;
}
Reply
#8

Look for UAC (ultimate anti cheat).. i use their anti weapon thing but remember there is a bug.. there are no satchel charges in slot 7! xD i think he forgot to add the flame thrower.. <LOL>
nvm i use this.. i just set a timer:
pawn Код:
forward AntiWeaponHack();
public AntiWeaponHack(){
    new string[256];
    for(new i; i<MAX_PLAYERS; i++){
      if(IsPlayerConnected(i)){
            new weapon, ammo;
            GetPlayerWeaponData(i, 7, weapon, ammo);
            if(IsInMinigunArena[i] == 0 && weapon == 38 && ammo >= 1){
                ResetPlayerWeapons(i);GiveStandardWeapons(i);
                SendClientMessage(i,CDRED,"Twoje Bronie Zostaly usuniete z powodu minigun-a.");
                format(string,sizeof(string),"RAPORT SYSTEM: Wykryto Minigun u gracza %s poza Arena, Usunieto go.",PlayerName(i));
                SendClientMessageToAdmins(CDRED,string);
            }
            if(weapon == 36 && ammo >= 1){
                ResetPlayerWeapons(i);GiveStandardWeapons(i);
                SendClientMessage(i,CDRED,"Twoje Bronie Zostaly usuniete z powodu Bazooki.");
                format(string,sizeof(string),"RAPORT SYSTEM: Wykryto Bazooke u gracza %s , Usunieto ja.",PlayerName(i));
                SendClientMessageToAdmins(CDRED,string);
            }
            if(weapon == 35 && ammo >= 1){
                ResetPlayerWeapons(i);GiveStandardWeapons(i);
                SendClientMessage(i,CDRED,"Twoje Bronie Zostaly usuniete z powodu Bazooki.");
                format(string,sizeof(string),"RAPORT SYSTEM: Wykryto Bazooke u gracza %s , Usunieto ja.",PlayerName(i));
                SendClientMessageToAdmins(CDRED,string);
            }
            if(weapon == 37 && ammo >= 1){
                ResetPlayerWeapons(i);GiveStandardWeapons(i);
                SendClientMessage(i,CDRED,"Twoje Bronie Zostaly usuniete z powodu miotacza ognia.");
                format(string,sizeof(string),"RAPORT SYSTEM: Wykryto miotacz ognia u gracza %s , Usunieto go.",PlayerName(i));
                SendClientMessageToAdmins(CDRED,string);
            }
        }
    }
    return 1;
}
credits go to the crators of ultimate anti cheat!
i suggest a timer every 5-6 sek.. (ex SetTimer("BAD_WEAPON_CHECK",6317,1);
Reply
#9

Read the code, it's not for blacklisting weapons. It's for checking if their weapon is bad or good.
Reply
#10

man don't u know where to put the "ban(playerid);" function -,-...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)