28.05.2011, 21:19
pawn Код:
stock GetWeaponModel(weaponid)
{
if(weaponid == 0 || weaponid == 1) return 331;
else if(weaponid > 1 && weaponid < 9) return weaponid+331;
else if(weaponid == 9) return 341;
else if(weaponid > 9 && weaponid < 16) return weaponid+311;
else if(weaponid == 16 || weaponid == 17 || weaponid == 18) return weaponid+326;
else if(weaponid > 21 && weaponid < 30 || weaponid > 32 && weaponid < 46) return weaponid+324;
else if(weaponid == 30 || weaponid == 31) return weaponid+325;
else if(weaponid == 32) return 372;
else if(weaponid == 46) return 371;
return false;
}