SA-MP Forums Archive
Anti mingun hack - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Anti mingun hack (/showthread.php?tid=572334)



Anti mingun hack - surya267 - 27.04.2015

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


Re: Anti mingun hack - Rockyyy - 27.04.2015

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


Re: Anti mingun hack - surya267 - 27.04.2015

I want for lvl 1 and above please


Re: Anti mingun hack - Karan007 - 27.04.2015

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


Re: Anti mingun hack - Devon007 - 28.04.2015

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;
}




Re: Anti mingun hack - (SF)Noobanatior - 28.04.2015

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);
            }
             }



Re: Anti mingun hack - fuckingcruse - 28.04.2015

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


Re: Anti mingun hack - Tamer - 28.04.2015

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