14.12.2014, 09:39
Код:
if(weaponid[1] && weaponammo[1] > 0){ if(pArmedWeapon != weaponid[1]){ if(!IsPlayerAttachedObjectSlotUsed(playerid,0)){ SetPlayerAttachedObject(playerid,0,GetWeaponModel(weaponid[1]),1, 0.199999, -0.139999, 0.030000, 0.500007, -115.000000, 0.000000, 1.000000, 1.000000, 1.000000); } } else { if(IsPlayerAttachedObjectSlotUsed(playerid,0)){ RemovePlayerAttachedObject(playerid,0); } } } else if(IsPlayerAttachedObjectSlotUsed(playerid,0)){ RemovePlayerAttachedObject(playerid,0); }