Problem with GetPlayerWeaponData.
#2

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
    }
}
Reply


Messages In This Thread
Problem with GetPlayerWeaponData. - by Baltimore - 12.04.2015, 08:05
Re: Problem with GetPlayerWeaponData. - by R0 - 12.04.2015, 08:11

Forum Jump:


Users browsing this thread: 1 Guest(s)