Jump to content

طلب تعديل


Recommended Posts

السلام عليكم معي لوحة م تفتح الا لـ قروب معين

وهذا الكود

        if(isObjectInACLGroup("user."..getAccountName(acc),aclGetGroup("admin"))) then 

انا ابي اغيره ابي اللي مفتوح له الكيك في الاسل تفتح معه اللوحه

Link to comment

حطيته كذا ولا ضبط

addEvent("gui",true) 
addEventHandler("gui",root, 
    function() 
        local acc=getPlayerAccount(client) 
        if ( hasObjectPermissionTo ( PlayerElement, "command.slap", true ) ) then 
            triggerClientEvent(client,"openGui",client) 
             
  
        end 
    end 
     
  
) 

Link to comment

addEvent("gui",true) 
addEventHandler("gui",root, 
    function() 
        local acc=getPlayerAccount(client) 
        if ( hasObjectPermissionTo ( client, "function.slap", true ) ) then 
            triggerClientEvent(client,"openGui",client) 
            
  
        end 
    end 
  
) 
Link to comment

وش وضع

 

local acc=getPlayerAccount(client) 

؟

 

انت في الكود حقكك مب مستخدمه

 

addEvent("gui",true) 
addEventHandler("gui",root, 
function ( ) 
if ( hasObjectPermissionTo ( source, "function.slap") == true ) then 
        triggerClientEvent(source,"openGui",source) 
    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...