12.04.2015, 08:05
Hello !
GetPlayerWeaponData is bugged?
If I have a Desert Eagle with 30 ammos and I switch for a Knife (1 ammo), it tell me that the knife has 30 balls for example.
[quote=Baltimore;3427993]
GetPlayerWeaponData is bugged?
If I have a Desert Eagle with 30 ammos and I switch for a Knife (1 ammo), it tell me that the knife has 30 balls for example.
[quote=Baltimore;3427993]
pawn Код:
for(new slot = 0; slot < 13; slot++)
{
new gun,
ammo,
munis;
GetPlayerWeaponData(i, slot, gun, ammo);
new wslot = getSlotByWeaponID(GetPlayerWeapon(i));
if(ammo < WeaponInfos[i][wslot][Ammo])
WeaponInfos[i][wslot][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][wslot][Model])
{
id = w;
}
}
if(WeaponInfos[i][wslot][Ammo] < ammo || wep_Data[id][wep_MaxAmmo] < ammo)
munis = gun;
if(munis > 0)
{
// Detect cheats
}
}