Jump to content

Some questions


Memory

Recommended Posts

Posted

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?

Posted

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.

Posted

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) 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...