Memory Posted November 3, 2012 Share Posted November 3, 2012 Hi, Can you help me to create some functions. What use for send map name to map.xml on command /reportmap? And how to deny supermoderators to ban or kick other moderators? Link to comment
Mossy Posted November 4, 2012 Share Posted November 4, 2012 1. Learn LUA to make that (Unless someone here is generous enough). 2. Set the permissions in the ACL. Go to the SuperModerators group and edit in any way you please. Link to comment
Memory Posted November 4, 2012 Author Share Posted November 4, 2012 I make "send map name" script, but text incorrectly displayed "User Player thinks that better remove map reportmap" function send(player,mapName) map=mapName text="User "..tostring(getPlayerName(player)).." thinks that better remove map "..map report_id = math.random(111111111,999999999) filename = "maps/"..tostring(getPlayerName(player)).." - "..tostring(report_id)..".xml" RootNode = xmlCreateFile(tostring(filename),"Maps") NewNode = xmlCreateChild(RootNode, "Text" ) xmlNodeSetValue(NewNode,text) xmlSaveFile(RootNode) outputChatBox("The map was succesful reported!",player,255,255,255) end addEvent("send",true) addEventHandler("send",getRootElement(),send) addCommandHandler("reportmap", send) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now