Jump to content

طلب كود


Recommended Posts

انا مابي يوز انا بي

resource.اسم المود

مابي

user.اسم الحساب

This function adds an object to the given ACL group. An object can be a player's account, specified as:

user.>

Or a resource, specified as:

resource.>

طبعاً عشان المود يقدر يعطي صلاحية لمود ثاني لازم المود يكون عنده صلاحية أعطاء صلاحيات

Link to comment
  
addEventHandler( "onResourceStart", resourceRoot,  
    function ( res ) 
        if not isObjectInACLGroup ( "resource." .. getResourceName ( res ), aclGetGroup ( "Admin" ) ) then 
            -- Your Code . . 
        end 
    end 
) 
  

Link to comment
addEventHandler ( 'onResourceStart', resourceRoot,  
    function ( res ) 
        if not isObjectInACLGroup ( 'resource.' .. getResourceName ( res ), aclGetGroup ( 'Admin' ) ) then 
            cancelEvent ( ) 
        end 
    end 
) 

ماجربته الكود سيرفر

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