GetPlayerWeaponData
new TarMeret[] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, //innen pedig a colttól kezdve, amennyi fér egy tárba.};stock GetPlayerAmmoEx(playerid) { new fegyo = GetPlayerWeapon(playerid), ammo = GetPlayerAmmo(playerid), tm = TarMeret[fegyo]; if(tm == 0) return 0; if(tm == 1) return ammo; return floatround((ammo/tm-floatround(ammo/tm, floatround_tozero))*tm);}
new TarMeret[] = {0, //Colt17, //Silenced7, //Deagle1, //Shotgun0, //Sawnoff7, //Combat0, //Uzi30, //MP530, //AK4750, //M40, //Tec-91, //Rifle5, //Sniper0, //RPG0, //Hõkövetõ Rakéta0, //Lángszóró0 //Minigun};