Jump to content

[HELP] weap drop


K4stic

Recommended Posts

This is because when the player hits the pickup, you give him the ammo again.

You don't need those lines in the "onPickupHit" event:

      local weapid = getPickupWeapon ( source ) 
      local weapammo = getPickupAmmo ( source ) 
      giveWeapon ( player, weapid, weapammo, false ) 

Link to comment

The short way of saying weapon is wep, not weap. For me, 'weap' makes me think of somebody crying.

Anyway, in the onPickupHit function, you do not need to use giveWeapon, as it happens automatically. Alternatively, you can use cancelEvent and manually distribute the ammo via giveWeapon.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...