☠ RaZeR ☠ Posted April 29, 2014 Share Posted April 29, 2014 هلا شباب انا سويت لوحه وابي بعض الازرار تكون مخفيه او مضللة مايقدر يضغط عليها لانه ماعنده هذ الرتبة انا جربت الكود اللي سويته بس مانفع ارجوا المساعده ملاحظة :: ابيه لرتبة كونسول فقط الكوود : function() if(isObjectInACLGroup("user."..getAccountName(acc),aclGetGroup("console"))) then guiSetVisible (GUIEditor.button[1], true) guiSetVisible (GUIEditor.button[2], true) guiSetVisible (GUIEditor.button[3], true) guiSetVisible (GUIEditor.button[4], true) showCursor ( true ) end Link to comment
shwaeki Posted April 29, 2014 Share Posted April 29, 2014 if(isObjectInACLGroup("user."..getAccountName(acc),aclGetGroup("console"))) then هاد سيرفر كيف حاطة مع كلنت Link to comment
☠ RaZeR ☠ Posted April 29, 2014 Author Share Posted April 29, 2014 والله ماانتبهت على اللون البرتقالي بس خيرر Link to comment
☠ RaZeR ☠ Posted April 29, 2014 Author Share Posted April 29, 2014 if(isObjectInACLGroup("user."..getAccountName(acc),aclGetGroup("console"))) then هاد سيرفر كيف حاطة مع كلنت بس كذا يعني مافيه ولا مشاكل غير انه ماانحط في serverside Link to comment
The Killer Posted April 30, 2014 Share Posted April 30, 2014 سوي ترايقر من كلاينت لسيرفر triggerServerEvent وفي السيرفر تحط التحقق حق القروب واذا كان هو القروب تسوي ترايقر من سيرفر لكلاينت triggerClientEvent Link to comment
al-Kobra Posted April 30, 2014 Share Posted April 30, 2014 اذا تبي الزر يكون مضلل او مخفي استخدم guiSetEnabled Link to comment
™!>VàLéNTiNô<!™ Posted April 30, 2014 Share Posted April 30, 2014 Server Side addEventHandler("onPlayerLogin", root, function() if(isObjectInACLGroup("user."..getAccountName(source),aclGetGroup("Console"))) then triggerClientEvent("Hide", getRootElement()) end end ) Client Side function body() if ( guiGetEnabled ( GUIEditor.button[1] ) == true ) then guiSetEnabled (GUIEditor.button[1] , false ) if ( guiGetEnabled ( GUIEditor.button[2] ) == true ) then guiSetEnabled (GUIEditor.button[2] , false ) if ( guiGetEnabled ( GUIEditor.button[3] ) == true ) then guiSetEnabled (GUIEditor.button[3] , false ) if ( guiGetEnabled ( GUIEditor.button[4] ) == true ) then guiSetEnabled (GUIEditor.button[4] , false ) end end end end end addEvent( "Hide", true ) addEventHandler("Hide",getRootElement(), body) جــربـ Link to comment
al-Kobra Posted April 30, 2014 Share Posted April 30, 2014 ^ اذا تبغي تخليه مخفي سو guiSetEnabled (GUIEditor.button[4] , true ) Link to comment
™!>VàLéNTiNô<!™ Posted April 30, 2014 Share Posted April 30, 2014 ^ اذا تبغي تخليه مخفي سو guiSetEnabled (GUIEditor.button[4] , true ) لازم يتحقق منو لوكان مو مخفى يخفيه يمكن يكون فى مود تانى خافيه وعادى لو تحققت او ماتحقق ماتفرق هنا لو مافى مود بياثر عليه Link to comment
☠ RaZeR ☠ Posted April 30, 2014 Author Share Posted April 30, 2014 شباب كل الاكواد ماشتغلت وشش الحل ؟؟ Link to comment
#DRAGON!FIRE Posted April 30, 2014 Share Posted April 30, 2014 لو ما فهمت قصدي بـ ضعه بكود فتح النافذة اقصد زي كذا مثال ..: bindKey( "f2", "down", function ( ) triggerCheek ( ) end ) Client Side ! function triggerCheek ( ) --- ضعه في كود فتح النافذة . triggerServerEvent( "PlayerGroup", localPlayer ) end local ButtonsTable = { Button1, Button2 } --- to add new button: ,ButtonName for i = 1, #ButtonsTable do guiSetEnabled ( ButtonsTable[i], false ) end addEvent( "EnabledButtons", true ) addEventHandler( "EnabledButtons", root, function ( ) for i = 1, #ButtonsTable do guiSetEnabled ( ButtonsTable[i], true ) end end ) Server Side ! local Group = "Console" addEvent( "PlayerGroup", true ) addEventHandler( "PlayerGroup", root, function ( ) if not ( isObjectInACLGroup( "user." .. getAccountName( getPlayerAccount( source ) ), aclGetGroup( Group ) ) ) then return end triggerClientEvent( source, "EnabledButtons", source ) end ) Link to comment
™!>VàLéNTiNô<!™ Posted May 5, 2014 Share Posted May 5, 2014 شباب كل الاكواد ماشتغلت وشش الحل ؟؟ جرب كود زاحف لو ماضبط اطرح اكوادك والميتا 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