Jump to content

x[ تعديل ]x كود فتح لوحه


Recommended Posts

الكود معطهولي

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

المشكله

لما حد بيفتح الوحه

بتفتح للكل

كلنت

  
function Open() 
   triggerServerEvent("gett",localPlayer) 
end 
bindKey( "M","down",Open) 
  
  
  
  
function Strong ( )   
guiSetVisible ( GUIEditor.window[1],true ) 
showCursor ( true ) -- اظهار الماوس 
guiSetInputEnabled ( true ) 
end 
addEvent ( "Strong", true ) 
addEventHandler ( "Strong", root, Strong ) 
-------- 
  

سرفر

local Groups = { 
{ "Console"}, 
{"Police" }, 
{"Level 1"}, 
{"Level 2"}, 
{"Level 3"}, 
{"Level 4"}, 
{"Level 5"}, 
{"Level 6"}, 
{"Head.Admin"}, 
} 
function isPlayerAdmin() 
    for k,v in ipairs ( Groups ) do 
        if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup(v[1])) ) then 
            return true 
        end 
    end 
end 
  
  
addEvent("gett",true) 
addEventHandler("gett",root, 
function  () 
  
        if ( isPlayerAdmin (source) ) then 
  
        triggerClientEvent("Strong",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...