xX|KeMo|Xx Posted August 29, 2012 Share Posted August 29, 2012 سلام عليكم شباب انا مسوي لوحه ولها زر ابي بس الي يفتح الوحه الادمن وشكرا bind =الزر gui= الوحه Link to comment
POWR Posted August 29, 2012 Share Posted August 29, 2012 function isPlayerAdmin(source) local user = "user."..getAccountName ( getPlayerAccount ( source ) ) for id, object in ipairs ( aclGroupListObjects ( aclGetGroup ( "سم القروب هنآ" ) ) ) do if object == user then triggerClientEvent("ClientGui",getRootElement(),source) end end end Me KaBoS Link to comment
|Mr|-Talal07-| Posted August 29, 2012 Share Posted August 29, 2012 -- Client Side -- function open() triggerServerEvent("onOpen",getLocalPlayer()) end bindKey("F4","down",open) function vip() if guiGetVisible(GUIEditor_Window[1]) then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) guiSetInputEnabled(false) else guiSetVisible(GUIEditor_Window[1],true) showCursor(true) guiSetInputEnabled(true) end end addEvent("openVIP",true) addEventHandler("openVIP",getRootElement(),vip) -- Server Side -- function open() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then triggerClientEvent("openVIP",getRootElement()) end end addEvent("onOpen",true) addEventHandler("onOpen",getRootElement(),open) مجربة Link to comment
TAPL Posted August 29, 2012 Share Posted August 29, 2012 -- Client Side -- function open() triggerServerEvent("onOpen",getLocalPlayer()) end bindKey("F4","down",open) function vip() if guiGetVisible(GUIEditor_Window[1]) then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) guiSetInputEnabled(false) else guiSetVisible(GUIEditor_Window[1],true) showCursor(true) guiSetInputEnabled(true) end end addEvent("openVIP",true) addEventHandler("openVIP",getRootElement(),vip) -- Server Side -- function open() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then triggerClientEvent("openVIP",getRootElement()) end end addEvent("onOpen",true) addEventHandler("onOpen",getRootElement(),open) مجربة function open() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then triggerClientEvent(source,"openVIP",source) end end addEvent("onOpen",true) addEventHandler("onOpen",getRootElement(),open) 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