Anti mingun hack
#1

can someone make anti mingun hack but only for players not an admin??
I had 50 players on my server but all quit because of some minigun hacker #murderhacker
i use jarnu admin which uses pAdmin detection
Reply
#2

under onplayerupdate
Код:
if(GetPlayerWeapon(playerid) == 38 && !IsPlayerAdmin){
Ban(playerid);}
That will ban anyone have minigun Except RCON admin!
Reply
#3

I want for lvl 1 and above please
Reply
#4

Well, show us how you check if a player is an admin or not in your gamemode.
Reply
#5

Can U Give Me Your Server IP?

USE THIS

Quote:

if(GetPlayerWeapon(playerid) == 38 ) //Mini gun
{
SendClientMessage(playerid, 0xFF0000AA, "AntiCheat: You have been banned Reason: Weapon Hacking");
Ban(playerid);
new pName[24];
new str[128];
GetPlayerName(playerid, pName, 24);
format(str, 128, "AdminBot: %s has been banned Reason: Weapon Hacking", pName);
SendClientMessageToAll(0xFF9900AA, str);
}
return 1;
}

Reply
#6

this is my old one
pawn Код:
new weapon2,ammo2;
    new minimsg[MAX_STRING];
    new cheater[MAX_PLAYER_NAME];
for (new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && playerisnotadmin) // <-- enter admin var here
        {
            GetPlayerWeaponData(i,7,weapon2,ammo2);
            if(weapon2 == 38 && ammo2 !=0 )  //minigun
            {
                    GetPlayerName(i,cheater,sizeof(cheater));
                    OwnPlayer(i); // custom function
                format(minimsg,sizeof(minimsg),"AUTO-OWN:%s was owned for cheating",cheater);
                SendClientMessageToAll(COLOR_YELLOW,minimsg);
            }
             }
Reply
#7

Show us your admin code.. so that we can give you the code according to your admin script
Reply
#8

Put yourself one level further and use a server-sided anti weapon hack script. https://sampforum.blast.hk/showthread.php?tid=220089
Reply


Forum Jump:


Users browsing this thread: