---- # Server Side ..
local Group = "Console" -- هنا إسم الرتبة الي تبيه يفتح لها ..
addCommandHandler ( "HT" , function ( aPlayer )
if ( not isGuestAccount ( getPlayerAccount ( aPlayer ) ) ) then
if ( isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(aPlayer)) , aclGetGroup ( Group ) ) ) then
triggerClientEvent ( aPlayer , "openACLTab" , aPlayer ) ;
outputChatBox ( "مرحباً بك" , aPlayer , 119 , 119 , 119 , true )
else
outputChatBox( "لايمكنك تفتح الاسل" , aPlayer , 255 , 0 , 0 , true ) ;
end
else
outputChatBox ( "سجل دخولك اولاً !",aPlayer,255,0,0,true)
end
end ) ;
---- # Client Side
addEvent ( "openACLTab" , true ) ;
addEventHandler ( "openACLTab" , root , function ( )
guiSetEnabled(aTab2.ManageACL,true)
end ) ;
الكود الاول بملف سيرفر والثاني بملف كلينت .