Weapon holder script
#8

Quote:
Originally Posted by dominik523
Посмотреть сообщение
Код:
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);
                }
Quote:

can someone tell me how to edit this

Instead of showing me a couple of lines of code, can you explain what it means?
Etc this: "if(weaponid[1] && weaponammo[1] > 0)"
It's not the weapon ID 1 (Brass Knuckles) i dont think, because i dont see anyones mentioning 31(m4) and stuff.
Reply


Messages In This Thread
Weapon holder script - by CalvinC - 10.12.2014, 16:22
Re: Weapon holder script - by M4D - 10.12.2014, 16:24
Re: Weapon holder script - by zT KiNgKoNg - 10.12.2014, 16:25
Re: Weapon holder script - by CalvinC - 10.12.2014, 16:35
Re: Weapon holder script - by CalvinC - 11.12.2014, 12:53
Re: Weapon holder script - by CalvinC - 14.12.2014, 09:11
Re: Weapon holder script - by dominik523 - 14.12.2014, 09:39
Re: Weapon holder script - by CalvinC - 14.12.2014, 09:49
Re: Weapon holder script - by CalvinC - 15.12.2014, 11:46
Re: Weapon holder script - by pcp - 15.12.2014, 13:02

Forum Jump:


Users browsing this thread: 1 Guest(s)