+Source|> Posted April 27, 2018 Share Posted April 27, 2018 ابي اللي ينضاف في الجدول ينضاف في جروب كونسل مع تايمر --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 ) 1 Link to comment
Abdul KariM Posted April 27, 2018 Share Posted April 27, 2018 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 ) ملاحظة طريقتك ترسل تايمر في اقل من الثانية بيسبب لاق + تحتاج تحقق ان الحساب ماهب موجود بالقروب قبل ماتضيفه انا صححت لك كودك فقط وعليك تضيف الي قلت لك عليه 1 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