addEvent("del", true)
addEventHandler("del", root,
function(duser)
if string.len(duser) > 0 then
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then
local account = getAccount(duser)
if account then
removeAccount(account)
outputChatBox("The Account [ "..duser.." ] was removed by [ "..getPlayerName(source).." ]", root, 255, 0, 0, true)
else
outputChatBox("Username was not found ..!", source, 255, 0, 0, true)
end
else
outputChatBox("You are not Admin ..!", source, 255, 0, 0, true)
end
else
outputChatBox("Username was not found ..!", source, 255, 0, 0, true)
end
end
)