Jump to content

طلب تحويل فتح لوحة من سريآل لرتبة


Recommended Posts

On Tuesday, April 17, 2018 at 14:02, Mr.Mostafa said:

آلسلام عليكم عندي بآول ملف آلكلنت آن آللوحة تفتح علي آلسريآل دآ

آنآ آبي آللوحة تفتح علي رتبة كنترول


Serial = { 
["F651D3AB7E5D5A074715EF69E4EBBF34"] = true, 
} 

 

وشكرآ

مثل م قالك ن

اطرح الكود كامل يا أخ !!

Link to comment

تفضل:

سيرفر

addCommandHandler ( "الكومند",
	function ( p )
		if getElementType ( p ) == "player" then
			local acc = getPlayerAccount ( p )
			if acc and not isGuestAccount ( acc ) then
				if isObjectInACLGroup ( "user."..getAccountName ( acc ), aclGetGroup ( "اسم الرتبة" ) ) then
					triggerClientEvent ( p, "Open", resourceRoot )
				end
			end
		end
	end
)

كلنت

addEvent ( "Open", true )
addEventHandler ( "Open", root,
	function ( )
		local status = not guiGetVisible ( -- اسم اللوحه )
		guiSetVisible ( -- اسم اللوحه, status )
		showCursor ( status )
	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...