JuniorMelo Posted June 9, 2013 Posted June 9, 2013 Hello I am here again to ask for a help to you guys again I would like to put a (Time to give gun) bad'm not getting you guys could help me 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 )
xXMADEXx Posted June 10, 2013 Posted June 10, 2013 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 )
JuniorMelo Posted June 10, 2013 Author Posted June 10, 2013 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 : (
xXMADEXx Posted June 10, 2013 Posted June 10, 2013 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 )
JuniorMelo Posted June 10, 2013 Author Posted June 10, 2013 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 bad works Thanks !!!!!
JuniorMelo Posted June 10, 2013 Author Posted June 10, 2013 is possible to make armor is Health ? setElementHealth setPlayerArmor
xXMADEXx Posted June 10, 2013 Posted June 10, 2013 is possible to make armor is Health ? setElementHealth setPlayerArmor What do you mean? Like make an armor or health pickup?
JuniorMelo Posted June 10, 2013 Author Posted June 10, 2013 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 ?
xXMADEXx Posted June 10, 2013 Posted June 10, 2013 Replace "giveWeapon" with this: setPedArmor(who,100) -- for armor setElementHealth ( who, 100 ) -- For health
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now