Jump to content

Pickup help


niemi

Recommended Posts

you have placed wrong number in function createPickup.

function pickup ( player ) 
    local x,y,z = getElementPosition ( player ) 
    createPickup ( x + 5, y, z, 0, 100 ) 
end 
addCommandHandler ( "heal", pickup ) 

if we take a look on a wiki...

createPickup ( x, y, z, type, amount/weapon/model )

you should place an 'amount' of your health, if you have a HEALTH - type pickup, with max value - 100. And you have placed a model as i can see..

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...