RoMaNd! Posted January 25, 2014 Share Posted January 25, 2014 بغيت كود اذا الكونسل كتب كلمة في اف ٨ يجي للكل دم وكود ثاني يجي للكل سلاح محدد ابي كوود كامل Link to comment
!#NssoR_) Posted January 25, 2014 Share Posted January 25, 2014 addCommandHandler setElementHealth giveWeapon isObjectInACLGroup -- عشان تتحقق ان الي كتب الكومند ادمن Link to comment
RoMaNd! Posted January 25, 2014 Author Share Posted January 25, 2014 بغيت كود اذا الكونسل كتب كلمةفي اف ٨ يجي للكل دم وكود ثاني يجي للكل سلاح محدد ابي كوود كامل~~~~~~ Link to comment
jafar Posted January 25, 2014 Share Posted January 25, 2014 addCommandHandler ( "giveHealth", function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ); if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) then for i, p in ipairs ( getElementsByType ( "player" ) ) do setElementHealth ( p, 100 ); end end end ); Link to comment
K1NG Posted January 26, 2014 Share Posted January 26, 2014 addCommandHandler ( "giveHealth", function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ); if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) then for i, p in ipairs ( getElementsByType ( "player" ) ) do setElementHealth ( p, 100 ); end end end ); @Line 4: "Admin" > "Console" v if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Console" ) ) then Link to comment
Mando Posted January 26, 2014 Share Posted January 26, 2014 addCommandHandler ( "giveHealth", function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ); if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Console" ) ) then for i, p in ipairs ( getElementsByType ( "player" ) ) do setElementHealth ( p, 100 ); end end end ); يعني يصير كدا اذا متعرف Link to comment
RoMaNd! Posted January 26, 2014 Author Share Posted January 26, 2014 كفو الكود شغال ( : >< طيب اذا ابي اخليه درع ؟ خليته كذا وماشتغل addCommandHandler ( "giveArmour", function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ); if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "MapEditor" ) ) then for i, p in ipairs ( getElementsByType ( "player" ) ) do setElementArmour ( p, 100 ); end end end ); Link to comment
iPrestege Posted January 26, 2014 Share Posted January 26, 2014 كفو الكود شغال ( :>< طيب اذا ابي اخليه درع ؟ خليته كذا وماشتغل addCommandHandler ( "giveArmour", function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ); if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "MapEditor" ) ) then for i, p in ipairs ( getElementsByType ( "player" ) ) do setElementArmour ( p, 100 ); end end end ); Line 6 > setElementArmour ( p, 100 ); To setPedArmor ( p, 100 ); Link to comment
RoMaNd! Posted January 26, 2014 Author Share Posted January 26, 2014 كفو الكود شغال ( :>< طيب اذا ابي اخليه درع ؟ خليته كذا وماشتغل addCommandHandler ( "giveArmour", function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ); if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "MapEditor" ) ) then for i, p in ipairs ( getElementsByType ( "player" ) ) do setElementArmour ( p, 100 ); end end end ); Line 6 > setElementArmour ( p, 100 ); To setPedArmor ( p, 100 ); Thx × Thx 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