Jump to content

تصحيح كود


Recommended Posts

addEvent ( "openAclManager", true )
addEventHandler ( "openAclManager", root, 
	function ( )
		guiSetEnabled(aTab2.ManageACL,true)
		guiSetEnabled(aTab2.Tab,true)
		outputChatBox("Manage ACL Enabled!",0,255,0,true)
	end)

هذا الكلنت

______

addCommandHandler ( "@acl@manage@", 
	function ( p )
		local acc = getPlayerAccount ( p )
		if not isGuestAccount ( acc ) then
			if isObjectInACLGroup ( acc, aclGetGroup ( Console ) ) then
				triggerClientEvent ( p, "openAclManager", resourceRoot )
			end
		end
	end
)

وهذا السيرفر


ليش الاسل ما يفتح

Link to comment

لانك

مب حاطط

سترنق بين 

" Console "

بتصير كذا

addCommandHandler ( "Acl",
	function (player)
		local account = getPlayerAccount(player)
		if account and not isGuestAccount(account) then
			local accName = getAccountName(account)
			if isObjectInACLGroup("user."..accName, aclGetGroup("Console")) then
				triggerClientEvent ( player, "openAclManager", player )
			end
		end
	end
)

 

Edited by Deativated
Link to comment
9 hours ago, Deativated said:

لانك

مب حاطط

سترنق بين 

" Console "

بتصير كذا


addCommandHandler ( "Acl",
	function (player)
		local account = getPlayerAccount(player)
		if account and not isGuestAccount(account) then
			local accName = getAccountName(account)
			if isObjectInACLGroup("user."..accName, aclGetGroup("Console")) then
				triggerClientEvent ( player, "openAclManager", player )
			end
		end
	end
)

 

ما ظبطت يالغالي

#Edit:

9 hours ago, Deativated said:

لانك

مب حاطط

سترنق بين 

" Console "

بتصير كذا


addCommandHandler ( "Acl",
	function (player)
		local account = getPlayerAccount(player)
		if account and not isGuestAccount(account) then
			local accName = getAccountName(account)
			if isObjectInACLGroup("user."..accName, aclGetGroup("Console")) then
				triggerClientEvent ( player, "openAclManager", player )
			end
		end
	end
)

 

الدي  بق ما جاب شئ يا غالي 

Link to comment

تبيه يفتح للكونسل ولا بكلمه في اف 8

لو كلمة في اف 8

addCommandHandler 
guiSetEnabled 

لو للكونسل عدل علي اذونات الاسل من ملف او من المود حق صورة 

Link to comment
6 hours ago, MR.NaiF-MTA said:

تبيه يفتح للكونسل ولا بكلمه في اف 8

لو كلمة في اف 8


addCommandHandler 
guiSetEnabled 

لو للكونسل عدل علي اذونات الاسل من ملف او من المود حق صورة 

ما فهت ممكن توضح اكثر

Link to comment
4 hours ago, MR.NaiF-MTA said:

عايزه للكونسل بس ولا من اف 8 ؟

 

ابي ان الاسل يفتح للكونسل فقط وبرمز يعني انا الحين كونسل ودخلت رمز في اف8 يفتح ولو كنت ادمن ودخلت نفس الرمز في اف8 ما يفتح 

 

Link to comment
addCommandHandler ( "@acl@manage@", 
	function ( p )
		local acc = getPlayerAccount ( p )
		if not isGuestAccount ( acc ) then
			if isObjectInACLGroup ( acc, aclGetGroup ( "Console" ) ) then
				triggerClientEvent ( p, "openAclManager", resourceRoot )
			end
		end
	end
)

 

تأكد أنه معك الرتبة وأيضاً تأكد انك كاتب الأمر صح

Link to comment
addCommandHandler ( "@acl@manage@", 
	function ( p )
		local acc = getPlayerAccount ( p )
		if not isGuestAccount ( acc ) then
			if isObjectInACLGroup ( "user."..getAccountName(acc), aclGetGroup ( "Console" ) ) then
				triggerClientEvent ( p, "openAclManager", resourceRoot )
			end
		end
	end
)

 

Link to comment
32 minutes ago, Default said:

addCommandHandler ( "@acl@manage@", 
	function ( p )
		local acc = getPlayerAccount ( p )
		if not isGuestAccount ( acc ) then
			if isObjectInACLGroup ( "user."..getAccountName(acc), aclGetGroup ( "Console" ) ) then
				triggerClientEvent ( p, "openAclManager", resourceRoot )
			end
		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...