PDA

View Full Version : Anti mingun hack


surya267
27/04/2015, 10:14 AM
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

Rockyyy
27/04/2015, 11:14 AM
under onplayerupdate
if(GetPlayerWeapon(playerid) == 38 && !IsPlayerAdmin){
Ban(playerid);}

That will ban anyone have minigun Except RCON admin!

surya267
27/04/2015, 12:50 PM
I want for lvl 1 and above please

Karan007
27/04/2015, 02:43 PM
Well, show us how you check if a player is an admin or not in your gamemode.

Devon007
28/04/2015, 07:18 AM
Can U Give Me Your Server IP?

USE THIS

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

(SF)Noobanatior
28/04/2015, 07:41 AM
this is my old one

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

fuckingcruse
28/04/2015, 07:44 AM
Show us your admin code.. so that we can give you the code according to your admin script

Tamer
28/04/2015, 09:29 AM
Put yourself one level further and use a server-sided anti weapon hack script. http://forum.sa-mp.com/showthread.php?t=220089