Results 1 to 4 of 4
  1. #1
    Locke's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Bergen, Norway
    Posts
    804
    Reputation
    6
    Thanks
    67
    My Mood
    Yeehaw

    Code for weapon without ammo?

    What is the gsc code I have to use to give a player a weapon without any ammo?

    (The reason I want this is for a sniper mod where you can do the weapon switch thing with the intervention, but unable to use the secondary weapon for anything)
    Last edited by Archangel; 05-22-2011 at 05:55 PM.

  2. #2
    Nachos's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Between Equator and The North Pole
    Posts
    2,986
    Reputation
    176
    Thanks
    913
    My Mood
    Blah
    This should work:
    Code:
    	self setWeaponAmmoClip( weapon_mp, 0);
    	self setWeaponAmmoStock( weapon_mp, 0);


    The lines in my Steam are i's

  3. The Following User Says Thank You to Nachos For This Useful Post:

    Locke (05-22-2011)

  4. #3
    Locke's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Bergen, Norway
    Posts
    804
    Reputation
    6
    Thanks
    67
    My Mood
    Yeehaw
    Yep, it did. Thanks, Scandinavian brotha!

  5. #4
    Archangel's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Between Both Worlds
    Posts
    8,868
    Reputation
    1021
    Thanks
    8,868
    My Mood
    Angelic
    /marked as solved

  6. The Following User Says Thank You to Archangel For This Useful Post:

    Skyline. (05-22-2011)