07.08.2010, 22:14
I made an Anti-Weapon hack. I don't know if it's not checking, or if it's not detecting the weapon.
pawn Код:
forward WeaponHack();
public WeaponHack()
{
for(new p = 0; p < MAX_PLAYERS; p++)
{
if(IsPlayerConnected(p) == 1)
{
if(AccountInfo[p][AdminLevel] < 1)
{
new weapons[13][2];
for (new i = 0; i < 13; i++)
{
GetPlayerWeaponData(p, i, weapons[i][0], weapons[i][1]);
if(i == 35 || i == 36 || i == 37 || i == 38 || i == 44 || i == 45)
{
AntiCheatReport(p, "Weapon Hacks");
}
}
}
}
}
return 1;
}