Jump to content

طلب


Recommended Posts

اريد ان اللوحة تفتح الى اللرتبة الحاليه ؟؟ 

محاولتي 

كلنت

function Open ( )
triggerServerEvent("nn",localPlayer)
if ( guiGetVisible( img ) == false ) then
guiSetVisible ( img, true )
showCursor(true)
else
guiSetVisible ( img, false )
showCursor(false) 
end



bindKey("/","down")
end
addEvent('nnn',true)
addEventHandler('nnn',root,open)



سيرفر

addEvent('nn',true)
addEventHandler('nn',root,function()
local accName = getAccountName ( getPlayerAccount ( source ) ) 
     if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then
	 triggerClientEvent("nnn",source)
end
end)

 

Link to comment

Client

bindKey("/","down",
	function ()
		triggerServerEvent("check:ACL",localPlayer,localPlayer)
	end
)

addEvent('show:Panel',true)
addEventHandler('show:Panel',root,
	function ()
		if ( guiGetVisible( img ) == false ) then
			guiSetVisible ( img, true )
			showCursor(true)
		else
			guiSetVisible ( img, false )
			showCursor(false) 
		end
	end
)

 

Server

addEvent('check:ACL',true)
addEventHandler('check:ACL',root,
	function ( player )
		local accName = getAccountName ( getPlayerAccount ( player ) ) 
		local aclName = "Console" -- أسم الرتبة
		if isObjectInACLGroup ("user."..accName, aclGetGroup ( aclName ) ) then
			triggerClientEvent(player,"show:Panel",player)
		end
	end
)

 

Link to comment
23 hours ago, N3xT said:

Client


bindKey("/","down",
	function ()
		triggerServerEvent("check:ACL",localPlayer,localPlayer)
	end
)

addEvent('show:Panel',true)
addEventHandler('show:Panel',root,
	function ()
		if ( guiGetVisible( img ) == false ) then
			guiSetVisible ( img, true )
			showCursor(true)
		else
			guiSetVisible ( img, false )
			showCursor(false) 
		end
	end
)

 

Server


addEvent('check:ACL',true)
addEventHandler('check:ACL',root,
	function ( player )
		local accName = getAccountName ( getPlayerAccount ( player ) ) 
		local aclName = "Console" -- أسم الرتبة
		if isObjectInACLGroup ("user."..accName, aclGetGroup ( aclName ) ) then
			triggerClientEvent(player,"show:Panel",player)
		end
	end
)

 

شكرا اشتغل

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...