Jump to content

Help Script pickup !


Recommended Posts

Hello I am here again to ask for a help to you guys again :mrgreen:

I would like to put a (Time to give gun) bad'm not getting you guys could help me :D

pickupuse = createPickup(225.93472, 1899.18359, 17.64806,1,24,0 ) 
  
function pickupsx(source) 
if ( source == pickupuse ) then 
setTimer(pickupsx,1000,0) 
   end 
end 
addEventHandler("onPickupHit", getRootElement(),pickupsx ) 
  

Link to comment
pickupuse = createPickup(225.93472, 1899.18359, 17.64806,1,24,0 ) 
  
function pickupsx(player) 
    if ( source == pickupuse ) then 
        setTimer(pickupsx,1000,0) 
    end 
end 
addEventHandler("onPickupHit", getRootElement(),pickupsx ) 
  

Does not work : (

Link to comment

I cannot really understand your english, but try this:

pickupuse = createPickup(225.93472, 1899.18359, 17.64806, 3, 348, 500, 0 ) 
function pickupsx ( player ) 
    if ( source == pickupuse ) then 
        setTimer( function ( who ) 
            giveWeapon ( who, 24 ) 
        end, 1000, 1, player ) 
    end 
end 
addEventHandler("onPickupHit", getRootElement(),pickupsx ) 

Link to comment
I cannot really understand your english, but try this:
pickupuse = createPickup(225.93472, 1899.18359, 17.64806, 3, 348, 500, 0 ) 
function pickupsx ( player ) 
    if ( source == pickupuse ) then 
        setTimer( function ( who ) 
            giveWeapon ( who, 24 ) 
        end, 1000, 1, player ) 
    end 
end 
addEventHandler("onPickupHit", getRootElement(),pickupsx ) 

sorry my english

I am Brazilian :mrgreen:

bad works

Thanks !!!!!

Link to comment
is possible to make armor is Health ?
setElementHealth 

setPlayerArmor 

What do you mean? Like make an armor or health pickup?

pickupuse = createPickup(225.93472, 1899.18359, 17.64806, 3, 348, 500, 0 ) 
function pickupsx ( player ) 
    if ( source == pickupuse ) then 
        setTimer( function ( who ) 
            giveWeapon ( who, 24 ) --change giveWeapon to setPlayerArmor-- 
        end, 1000, 1, player ) 
    end 
end 
addEventHandler("onPickupHit", getRootElement(),pickupsx ) 

is possible ?

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