function input_Console ( text )
if ( getElementType ( source ) == "player" ) then
if isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(source)), aclGetGroup ( "Admin" ) ) then -- если админ
local command = gettok ( text, 1, 32 )
if ( command == "as" ) then
local message = string.sub ( text, 3 )
outputChatBox (" #00ff00>>> " .. getPlayerName(source) .. ": #ffff00" .. message, getRootElement(), 255, 164, 255, true )
end
else -- если нет
outputChatBox("* Ошибка доступа!", source, 255, 0, 0, true)
end
end
end
addEventHandler ( "onConsole", getRootElement(), input_Console )