Jump to content

L o g i n h e r e


RoMaNd!

Recommended Posts

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
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
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

كفو الكود شغال ( :

>< طيب اذا ابي اخليه درع ؟

خليته كذا وماشتغل

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
كفو الكود شغال ( :

>< طيب اذا ابي اخليه درع ؟

خليته كذا وماشتغل

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
كفو الكود شغال ( :

>< طيب اذا ابي اخليه درع ؟

خليته كذا وماشتغل

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...