MR:SADIQ Posted June 23, 2013 Share Posted June 23, 2013 ابي اخلي اذا ضرب الاعب حرف p تطلع لوحة لاكن تطلع لقروب معين من الاسل Link to comment
iPrestege Posted June 23, 2013 Share Posted June 23, 2013 bindKey triggerServerEvent triggerClientEvent isObjectInACLGroup isGuestAccount getPlayerAccount getAccountName Link to comment
MR:SADIQ Posted June 23, 2013 Author Share Posted June 23, 2013 وش وظيفة هدا؟ triggerServerEvent Link to comment
iPrestege Posted June 23, 2013 Share Posted June 23, 2013 وحاط يتصل بـ السيرفر يوم تتصل ترجع تتصل للكلنت تظهر الالمنت Link to comment
MR:SADIQ Posted June 23, 2013 Author Share Posted June 23, 2013 bindKey ( player, "F1", "down", GUIEditor.window[1] ) triggerServerEvent ( "onGreeting", getLocalPlayer(), "Hello World!" ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) Link to comment
iPrestege Posted June 23, 2013 Share Posted June 23, 2013 bindKey ( player, "F1", "down", GUIEditor.window[1] ) triggerServerEvent ( "onGreeting", getLocalPlayer(), "Hello World!" ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) Copy paste : -- Client Side -- bindKey('F1','down', function ( ) triggerServerEvent ('aCheckGroup',localPlayer) end ) addEvent('aCheckDone',true) addEventHandler('aCheckDone',root, function ( state ) if state and not guiGetVisible ( aWindow ) then guiSetVisible ( GUIEditor.window[1],state ) end end ) -- Server Side -- addEvent('aCheckGroup',true) addEventHandler('aCheckGroup',root, function ( ) if isGuestAccount ( getPlayerAccount ( client ) ) then return false end local aPlayerAccount = getAccountName ( getPlayerAccount ( client ) ) if isObjectInACLGroup ('user.'..aPlayerAccount, aclGetGroup ( 'Admin' ) ) then triggerClientEvent ( client,'aCheckDone',client,true ) else outputChatBox('Access denied',client,255,0,0) end end ) لم يتم التجربة Link to comment
iPrestege Posted June 23, 2013 Share Posted June 23, 2013 debugscript 3 ? جربتة اشتغل 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