Mr.SAUD Posted April 9, 2014 Share Posted April 9, 2014 السلام عليكم و رحمةة الله و بركاتةةة شباب ابي كود بسيط انا سويت لوحه ابيها تفتح لـ الادمن فقط ! الى عنده الكود او يعرف له او شي يا ليت يطرح الكود هنا , مع شرح خفيف Link to comment
#Rmad~> Posted April 9, 2014 Share Posted April 9, 2014 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now