Jump to content

unlimited ammo


Recommended Posts

what's wrong in this function?

addEventHandler( "onWeaponFire", root, 
    function () 
        if ( isElement( source ) ) and ( getElementType( source ) == "player" ) then 
         if  getPlayerWeapon( source ) == 38 then 
          giveWeapon ( source, 38, 1 ) 

Link to comment
  • Moderators
Aren't this event only for custom weapons anyway? :roll:

hmmm, yes.

Why is there a onWeaponFire event when people can't create custom weapons serverside. :?


By using a timer, checking the ammo, setting the ammo.

Edited by Guest
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...