13.01.2015, 18:00
Hello !
I have an anticheat, but, it's not work, look:
In my command for give weapon:
But it still detects a cheat while no ..
I have an anticheat, but, it's not work, look:
pawn Код:
static pWeapons[12] = {0};
static pAmmo[12] = {0};
public OnPlayerUpdate(playerid)
{
new weapons[12], ammo[12];
for(new s = 0; s < 12; s++)
{
GetPlayerWeaponData(playerid, s, weapons[s], ammo[s]);
if(weapons[s] != pWeapons[s] && GetPVarInt(playerid, "Weapons") != 1) BanEx(playerid, "Cheat!");
pWeapons[s] = weapons[s];
}
}
pawn Код:
SetPVarInt(playerid, "Weapon", 1);