SA-MP Forums Archive
[Tutorial] How to make a simple anti weapon 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)
+---- Forum: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] How to make a simple anti weapon hack (/showthread.php?tid=301073)

Pages: 1 2


Re: How to make a simple anti weapon hack - mikeeee - 18.02.2012

Just change it make it simple

pawn Code:
SetTimer("minigunchecktimer",1,true);
pawn Code:
public minigunchecktimer(playerid)
{
        new weaponid = GetPlayerWeapon(playerid);
        new pName[MAX_PLAYER_NAME];
        new str[128];
    if(weaponid == 33)
    {
        GetPlayerName(playerid,pName,sizeof(pName));
        format(str,sizeof(str),"[HACK]; %s [KICK]: Minigun",pName);
        SendClientMessageToAll(0xFF0000FF,str);
        Kick(playerid);
    }
    return 1;
}



Re: How to make a simple anti weapon hack - Tanush123 - 18.02.2012

Quote:
Originally Posted by mikeeee
View Post
Just change it make it simple

pawn Code:
SetTimer("minigunchecktimer",1,true);
pawn Code:
public minigunchecktimer(playerid)
{
        new weaponid = GetPlayerWeapon(playerid);
        new pName[MAX_PLAYER_NAME];
        new str[128];
    if(weaponid == 33)
    {
        GetPlayerName(playerid,pName,sizeof(pName));
        format(str,sizeof(str),"[HACK]; %s [KICK]: Minigun",pName);
        SendClientMessageToAll(0xFF0000FF,str);
        Kick(playerid);
    }
    return 1;
}
Your way is same thing and your will create a massive lag on some script


Re: How to make a simple anti weapon hack - PrawkC - 19.02.2012

This is hardly an anti hack.. It'll ban even if they got the weapon without hacks.


Re: How to make a simple anti weapon hack - jameskmonger - 19.02.2012

This isn't an anti-weapon hack script... it's an anti-grenade script.


Re: How to make a simple anti weapon hack - 2KY - 19.02.2012

Quote:
Originally Posted by mikeeee
View Post
Just change it make it simple

pawn Code:
SetTimer("minigunchecktimer",1,true);
pawn Code:
public minigunchecktimer(playerid)
{
        new weaponid = GetPlayerWeapon(playerid);
        new pName[MAX_PLAYER_NAME];
        new str[128];
    if(weaponid == 33)
    {
        GetPlayerName(playerid,pName,sizeof(pName));
        format(str,sizeof(str),"[HACK]; %s [KICK]: Minigun",pName);
        SendClientMessageToAll(0xFF0000FF,str);
        Kick(playerid);
    }
    return 1;
}
The weapon ID isn't even correct..


Re: How to make a simple anti weapon hack - [MG]Dimi - 26.06.2013

Yep, should be 38.

Very poor tutorial.


Re: How to make a simple anti weapon hack - qazwsx - 02.08.2013

Very Nice Tutorial