Anti Ammo Hack doesn't work
#6

PHP код:
//Top of your script
new bool:Weapon[MAX_PLAYERS][47];
//OnPlayerDisconnect/Connect
for(new i46i++) Weapon[playerid][i] = false;
//Somewhere in your script
GivePlayerWeaponEx(playeridweaponidammo)
{
    
Weapon[playerid][weaponid] = true;
    return 
GivePlayerWeapon(playerid,weaponid,ammo);
}
ResetPlayerWeaponsEx(playerid)
{
    for(new 
i46i++) Weapon[playerid][i] = false;
    return 
ResetPlayerWeapons(playerid);
}
//Make timer to check whether the player is hacking or not
            
new weaponidammo;
            for (new 
0<= 12x++)
            {
                
GetPlayerWeaponData(playeridxweaponidammo);
                if(
weaponid && weaponid != 46 && Weapon[playerid][weaponid] == false)
                {
                    
ResetPlayerWeapons(playerid)
                    return 
Kick(playerid);
                }
            } 
This might work, Not tested tho.
Don't forgot to change all the GivePlayerWeapon/ResetPlayerWeapons to GivePlayerWeaponEx/ResetPlayerWeaponsEx.
Reply


Messages In This Thread
Anti Ammo Hack doesn't work - by NeXoR - 14.10.2016, 10:32
Re: Anti Ammo Hack doesn't work - by Owen007 - 14.10.2016, 10:39
Re: Anti Ammo Hack doesn't work - by NeXoR - 14.10.2016, 11:20
Re: Anti Ammo Hack doesn't work - by Mencent - 14.10.2016, 11:24
Re: Anti Ammo Hack doesn't work - by TheDrx - 14.10.2016, 11:25
Re: Anti Ammo Hack doesn't work - by oMa37 - 14.10.2016, 11:29
Re: Anti Ammo Hack doesn't work - by NeXoR - 14.10.2016, 11:50
Re: Anti Ammo Hack doesn't work - by Mencent - 14.10.2016, 12:03
Re: Anti Ammo Hack doesn't work - by TheDrx - 14.10.2016, 12:20
Re: Anti Ammo Hack doesn't work - by NeXoR - 14.10.2016, 12:37

Forum Jump:


Users browsing this thread: 1 Guest(s)