والله يالحبيب ما ظبطت
زي كذا سويت في
admin_main >
function aAdminRefresh ()
if ( guiGridListGetSelectedItem ( aTab1.PlayerList ) ~= -1 ) then
local player = getPlayerFromName ( guiGridListGetItemPlayerName ( aTab1.PlayerList, guiGridListGetSelectedItem( aTab1.PlayerList ), 1 ) )
if ( player and aPlayers[player] ) then
if getElementData ( localPlayer,'Xunmute' ) == true then if guiGetText ( aTab1.Mute ) == 'Unmute' then
guiSetEnabled ( aTab1.Mute,false )
else
guiSetEnabled ( aTab1.Mute,true )
end
else
guiSetEnabled ( aTab1.Mute,true )
end
و زي كذا برضو في
admin_server>
local xGroups = {
'Moderator',
'Police'
}
addEventHandler ( 'onPlayerLogin',root,
function ( _,xAccount )
local xpAcouunt = getAccountName ( xAccount )
for _,xGroup in ipairs ( xGroups ) do
if isObjectInACLGroup ( 'user.'..xpAcouunt,aclGetGroup ( xGroup ) ) then
setElementData ( source,'Xunmute',true )
end
end
end
)