12.04.2015, 08:11
I didnt check all of the code but try this
pawn Код:
for(new slot = 0; slot < 12; slot++)
{
new gun,
ammo,
munis;
GetPlayerWeaponData(i, slot, gun, ammo);
if(ammo < WeaponInfos[i][slot][Ammo])
WeaponInfos[i][slot][Ammo] = ammo;
new id = -1;
for(new w; w < sizeof(wep_Data); w++)
{
if(wep_Data[w][wep_CustomWeapon] != 0 && wep_Data[w][wep_CustomWeapon] == WeaponInfos[i][slot][Model])
{
id = w;
}
}
if(WeaponInfos[i][slot][Ammo] < ammo || wep_Data[id][wep_MaxAmmo] < ammo)
munis = gun;
if(munis > 0)
{
// Detect cheats
}
}