01.08.2017, 13:02
This is my anti weapon hack but this sometimes ban for no reason !
PHP код:
if(newkeys & KEY_SECONDARY_ATTACK || newkeys & KEY_FIRE || newkeys & KEY_ACTION && GetPlayerWeapon(playerid) != 0)
{
if(sSecure[DETECT_WEAPON] == 1)
{
if(!CheckWeapons(playerid))
{
new m_weapons[13][2];
for (new x=0; x<13; x++)
{
GetPlayerWeaponData(playerid, x, m_weapons[x][0], m_weapons[x][1]);
}
pClient[playerid][SECURE_DELAY] = gettime()+3;
format(pClient[playerid][STRING_MEDIUM],SIZE_MEDIUM,""COLOR_GREY" %s(%d) > probably corrupted [weapons:onfoot]",pGeneral[playerid][PLR_NAME],playerid);
AdminMessage(pClient[playerid][STRING_MEDIUM]);
format(pClient[playerid][SECURE_WARN_TXT],26,"corrupted weapons");
pClient[playerid][SECURE_WARN]++;
return 1;
}
}
}