Ja[B]er[X]Pro Posted January 29, 2016 Share Posted January 29, 2016 السلام عليكم ورحمة الله وبركاته ابي فنكشن يتاكد ان الاعب برتبة محددة حتى تفتح له اللوحة Link to comment
MR.GRAND Posted January 29, 2016 Share Posted January 29, 2016 السلام عليكم ورحمة الله وبركاتهابي فنكشن يتاكد ان الاعب برتبة محددة حتى تفتح له اللوحة --# isObjectInACLGroup Link to comment
Ja[B]er[X]Pro Posted January 29, 2016 Author Share Posted January 29, 2016 ????????????? bindkey("F1",down,window, function() if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then guiSetVisible(window,true) showCursor ( true ) end end) Link to comment
MR.GRAND Posted January 29, 2016 Share Posted January 29, 2016 (edited) ????????????? bindkey("F1",down,window, function() if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then guiSetVisible(window,true) showCursor ( true ) end end) guiSetVisible == server SIDE ? showCursor == server SIDE -- تسوي ترايقر للكلنت بعد التحقق من أن الاعب بالقروب المحدد ... triggerClientEvent if -- للتحقق من أن الهدف هو الاعب المحلي guiSetVisible -- تسوي إظهار للوحة بعد التحقق showCursor -- تسوي إظهار الماوس ^ Edited January 29, 2016 by Guest Link to comment
Ja[B]er[X]Pro Posted January 29, 2016 Author Share Posted January 29, 2016 --server bindkey("F1",down,window, function() if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then triggerClientEvent(sourc,"open") end end) --client function open() guiSetVisibe(window,true) showCursor(true) end addEevent("open",true) addEeventHandler("open",source,open) Now?? Link to comment
MR.GRAND Posted January 29, 2016 Share Posted January 29, 2016 --server bindkey("F1",down,window, function() if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then triggerClientEvent(sourc,"open") end end) --client function open() guiSetVisibe(window,true) showCursor(true) end addEevent("open",true) addEeventHandler("open",source,open) Now?? --server bindkey("F1",down,window, function() local accName = getPlayerAccount( source ) if (not accName or isGuestAccount) then return else if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then triggerClientEvent(source,"open") end end end) --client function open( local_P ) if (local_P == localPlayer) then guiSetVisibe(window,true) showCursor(true) end end addEevent("open",true) addEeventHandler("open",source,open) Link to comment
Ja[B]er[X]Pro Posted January 29, 2016 Author Share Posted January 29, 2016 --server bindkey("F1",down,window, function() if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then triggerClientEvent(sourc,"open") end end) --client function open() guiSetVisibe(window,true) showCursor(true) end addEevent("open",true) addEeventHandler("open",source,open) Now?? --server bindkey("F1",down,window, function() local accName = getPlayerAccount( source ) if (not accName or isGuestAccount) then return else if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then triggerClientEvent(source,"open") end end end) --client function open( local_P ) if (local_P == localPlayer) then guiSetVisibe(window,true) showCursor(true) end end addEevent("open",true) addEeventHandler("open",source,open) thank you Link to comment
Mr.R Posted January 29, 2016 Share Posted January 29, 2016 (edited) ^حياك الله ^^ !! كودك فيه اغلاط يصير كذا #Server Side bindKey ( "الزر الي تبيه", "down", function ( player ) local Account = getAccountName ( getPlayerAccount ( player ) ) if not ( Account ) or isGuestAccount ( Account ) then return end if ( isObjectInACLGroup ( "user."..Account, aclGetGroup ( "الرتبه الي تبيها" ) ) ) then triggerClientEvent ( player, "OpenWindow", player ) end end ) #Client Side addEvent ( "OpenWindow", true ) addEventHandler ( "OpenWindow", root, function ( ) guiSetVisible ( اسم النافذهـ, true ) showCursor ( true ) end ) Edited January 30, 2016 by Guest Link to comment
Mr.R Posted January 29, 2016 Share Posted January 29, 2016 ^عوافي ... .. للتوضيح بس وللافادهـ 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