Jump to content

طلب


Recommended Posts

ابي اللي ينضاف في الجدول

 

ينضاف في جروب كونسل مع تايمر

 

--server
acc = { 
	{"M7md"},
}


addEvent("dd", true)
addEventHandler("dd", root,
	function()
	local accName = getAccountName( getPlayerAccount( source ) )
		if isObjectInACLGroup( "user."..accName, aclGetGroup ( "Console" ) ) then
		for i=1,#acc do
			aclGroupAddObject( aclGetGroup( "Console" ), "user."..#acc )
		end
		end
	end
)
--client

addEventHandler("onClientResourceStart", root,
	function()
		setTimer( function()
			triggerServerEvent( "dd", localPlayer )
		end, 50, 0 )
	end
)

 

  • Thanks 1
Link to comment
acc = {"M7md"}



addEvent("dd", true)
addEventHandler("dd", root,

	function (	)
	
	local playerAcc = getPlayerAccount( source ) 
	
	if isGuestAccount ( playerAcc ) then return false end
	
	if isObjectInACLGroup( "user."..getAccountName ( playerAcc ), aclGetGroup ( "Console" ) ) then
	
	for i , v in ipairs ( acc ) do
	
	aclGroupAddObject( aclGetGroup( "Console" ), "user.".. v )
	
			end
		end
	end
	)

ملاحظة طريقتك ترسل تايمر في اقل من الثانية بيسبب لاق

+ تحتاج تحقق ان الحساب ماهب موجود بالقروب قبل ماتضيفه 

انا صححت لك كودك فقط وعليك تضيف الي قلت لك عليه 

  • Like 1
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...