Jump to content

طلب كود خفيف


Recommended Posts

السلام عليكم و رحمةة الله و بركاتةةة

شباب ابي كود بسيط

انا سويت لوحه ابيها تفتح لـ الادمن فقط !

الى عنده الكود او يعرف له او شي يا ليت يطرح الكود هنا , مع شرح خفيف

Link to comment
local Key = "F3" 
local Window = Name Window 
  
function ZA7F() 
    triggerServerEvent("AdminOpen",localPlayer) 
end 
bindKey(Key,"down",ZA7F) 
  
addEvent("Open",true) 
addEventHandler("Open",root, 
    function () 
          if ( guiGetVisible(Window) == true ) then 
          guiSetVisible(Window,false) 
          showCursor(false) 
    else 
          guiSetVisible(Window,true) 
          showCursor(true) 
        end 
    end 
) 
  
  
server 
  
addEvent("AdminOpen",true) 
addEventHandler("AdminOpen",root, 
    function () 
      local Group = "Group Name" 
      if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup(Group)) then 
            triggerClientEvent(source,"Open",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...