addCommandHandler(\"adminduty\",
function(playerSource)
if getElementData(playerSource, \"adminlevel\") >= 1 then
local adminduty = getElementData(playerSource, \"adminduty\")
local adminnick = getElementData(playerSource, \"adminnick\")
local playername = getElementData(playerSource, \"name\")
local pmid = getElementData(playerSource, \"cID\")
if (adminduty==0) then
setElementData(playerSource, \"adminduty\", 1)
exports[\'infobox\']:showBox(getRootElement(), \"info\", \" \" .. adminnick .. \" szolgálatba lépett!\",1)
end
if (adminduty==1) then
setElementData(playerSource, \"adminduty\", 0)
exports[\'infobox\']:showBox(getRootElement(), \"info\", adminnick .. \" kilépett a szolgálatból!\",2)
end
end
end
)