[Tutorial] How to make a simple anti weapon hack
#21

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;
}
Reply
#22

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
Reply
#23

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

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

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..
Reply
#26

Yep, should be 38.

Very poor tutorial.
Reply
#27

Very Nice Tutorial
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)