Yazir Posted June 9, 2013 Posted June 9, 2013 Like in the subject, i need this script. Must be easy to change for my own use.
Castillo Posted June 9, 2013 Posted June 9, 2013 This isn't a request forum, you must learn to make it by yourself or pay someone to do it for you.
Yazir Posted June 9, 2013 Author Posted June 9, 2013 But, please. That is easy script but i know 5% of Lua language .
Yazir Posted June 9, 2013 Author Posted June 9, 2013 Ill give an example: setTimer( function () setElementHealth ( localPlayer, ( getElementHealth ( localPlayer ) + 0.05 ) ) end,100,0) This is healthregeneration, i need armor now. Please...
xXMADEXx Posted June 10, 2013 Posted June 10, 2013 This isn't a request forum, you must learn to make it by yourself or pay someone to do it for you. As he said, no one will make it for free. (Unless, they're really nice, which isn't very common.)
blehmeh Posted June 10, 2013 Posted June 10, 2013 Ill give an example:This is healthregeneration, i need armor now. Please... Just replace set/getElementHealth to set/getPedArmor.
iPrestege Posted June 10, 2013 Posted June 10, 2013 Ill give an example:This is healthregeneration, i need armor now. Please... Just replace set/getElementHealth to set/getPedArmor. set armor is a server side function |: .
Yazir Posted June 10, 2013 Author Posted June 10, 2013 Please, help me these didn't worked well: setTimer( function () setPlayerArmor ( localPlayer, ( getPedArmor ( localPlayer ) + 10 ) ) end,100,0) setTimer( function () setPedArmor ( localPlayer, ( getPedArmor ( localPlayer ) + 10 ) ) end,100,0)
iPrestege Posted June 10, 2013 Posted June 10, 2013 Why you can't understand what i said? localPlayer > client side and setPedArmor > Server Side so hard to understand it?
Alan.Alexander Posted June 10, 2013 Posted June 10, 2013 function regenArmor() for _,player in ipairs(getElementsByType("player")) do local arm = getPedArmor(player); if arm < 100 then local nuarm = arm + 10; if nuarm > 100 then nuarm = 100; end setPedArmor(player,nuarm) end end end setTimer(regenArmor,5000,0); There you go, now fuck off and learn properly so you don't have to waste our time and your own time in future. Edit: Please bare in mind that this is a server script.
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