RoMaNd! Posted January 25, 2014 Posted January 25, 2014 بغيت كود اذا الكونسل كتب كلمة في اف ٨ يجي للكل دم وكود ثاني يجي للكل سلاح محدد ابي كوود كامل
!#NssoR_) Posted January 25, 2014 Posted January 25, 2014 addCommandHandler setElementHealth giveWeapon isObjectInACLGroup -- عشان تتحقق ان الي كتب الكومند ادمن
RoMaNd! Posted January 25, 2014 Author Posted January 25, 2014 بغيت كود اذا الكونسل كتب كلمةفي اف ٨ يجي للكل دم وكود ثاني يجي للكل سلاح محدد ابي كوود كامل~~~~~~
jafar Posted January 25, 2014 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 );
K1NG Posted January 26, 2014 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
Mando Posted January 26, 2014 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 ); يعني يصير كدا اذا متعرف
RoMaNd! Posted January 26, 2014 Author 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 );
iPrestege Posted January 26, 2014 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 );
RoMaNd! Posted January 26, 2014 Author 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
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