Yazir Posted June 9, 2013 Share Posted June 9, 2013 Like in the subject, i need this script. Must be easy to change for my own use. Link to comment
Castillo Posted June 9, 2013 Share 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. Link to comment
Yazir Posted June 9, 2013 Author Share Posted June 9, 2013 But, please. That is easy script but i know 5% of Lua language . Link to comment
blehmeh Posted June 9, 2013 Share Posted June 9, 2013 Then how do you know that it's easy. Link to comment
Yazir Posted June 9, 2013 Author Share 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... Link to comment
xXMADEXx Posted June 10, 2013 Share 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.) Link to comment
blehmeh Posted June 10, 2013 Share Posted June 10, 2013 Ill give an example:This is healthregeneration, i need armor now. Please... Just replace set/getElementHealth to set/getPedArmor. Link to comment
iPrestege Posted June 10, 2013 Share 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 |: . Link to comment
Yazir Posted June 10, 2013 Author Share 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) Link to comment
iPrestege Posted June 10, 2013 Share Posted June 10, 2013 Why you can't understand what i said? localPlayer > client side and setPedArmor > Server Side so hard to understand it? Link to comment
Alan.Alexander Posted June 10, 2013 Share 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. Link to comment
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