DRW Posted June 4, 2015 Posted June 4, 2015 (edited) addEventHandler ("onPlayerLogin", root, function() local account = getPlayerAccount (source) if not isGuestAccount(account) then local accName = getAccountName (account) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then setTimer (function () setElementHealth (source, getElementHealth (source)+10) end, 2000, 0) end end end) it says getElementHealth expected element at argument 1, got nil. What's happening? Edited June 5, 2015 by Guest Proud owner and developer of ZNEXT: Aftermath. Enter a post-apocalyptic San Andreas and fight over 30 types of enemies and bosses with varying difficulties and skills, improve and customize your character by leveling up, completing challenges and a solid lootbox system with no Pay-to-Win mechanics that will break your experience. Meet new characters, creatures and weapon metas, experience an innovative combo-based melee system, or join our solid PvP modes to show other survivors who’s boss. Español, Pусский, Türk, عربى, Polski, Português IP: mtasa://104.36.110.227:22003 - Discord: https://discord.gg/CxMxjvC5pB
Walid Posted June 4, 2015 Posted June 4, 2015 try this it should work addEventHandler ("onPlayerLogin", root, function(prev,cur) if isObjectInACLGroup ("user."..getAccountName(cur), aclGetGroup ( "Admin" ) ) then setTimer (function(player) setElementHealth (player, getElementHealth (player)+10) end, 2000, 0,source) end end) Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
DRW Posted June 5, 2015 Author Posted June 5, 2015 try this it should work addEventHandler ("onPlayerLogin", root, function(prev,cur) if isObjectInACLGroup ("user."..getAccountName(cur), aclGetGroup ( "Admin" ) ) then setTimer (function(player) setElementHealth (player, getElementHealth (player)+10) end, 2000, 0,source) end end) Thanks! Proud owner and developer of ZNEXT: Aftermath. Enter a post-apocalyptic San Andreas and fight over 30 types of enemies and bosses with varying difficulties and skills, improve and customize your character by leveling up, completing challenges and a solid lootbox system with no Pay-to-Win mechanics that will break your experience. Meet new characters, creatures and weapon metas, experience an innovative combo-based melee system, or join our solid PvP modes to show other survivors who’s boss. Español, Pусский, Türk, عربى, Polski, Português IP: mtasa://104.36.110.227:22003 - Discord: https://discord.gg/CxMxjvC5pB
Walid Posted June 5, 2015 Posted June 5, 2015 Thanks! np. Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
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