Server Admin commands

I just started a server. Question: how do i prevent people from voting themselves admin?

Comments

  • Go into your construction folder, and look for Serverprefs.cs, search for "adminvote" change it to 0.

    Adminvote, at least i tihnk thats what it is.
  • $Host::allowAdminPlayerVotes = "0";
  • Allright, I have a bit more questions. The server is up.. but sometimes on the server lists (join tab) it lists it twice under two different names. Also, it likes to reset as soon as noones on, and it also assumes I time out while loading in. Any suggestions?
  • Unless you change the $Host::GameName value, the server name should remain constant. Depending on your setup, the server may show up multiple times (eg. Local address and external).

    If you don't want it to reset when empty, you'll need to open up scripts/server.cs and look for the GameConnection::onDrop function. Once you've found it, look to the bottom of the group and comment out the line:
    schedule(0, 0, "resetServerDefaults");
    
  • which means put two // in front? For:

    //schedule(0, 0, "resetServerDefaults");

    ?
  • Hm, now building files wont load. Theyre in the construction/buildings file or w/e and i used /savebuilding radius name and then /loadbuilding name .. they also dont show up on the 'change map' or choose map etc. tab
  • Make sure the building names had .cs on the end. Also, for them to show up in the loader you need to save them as /savebuilding radius admin/name.cs
  • Okay, it now works when i save them as : /savebuilding 50 test2.cs but its still not showing on the loader. Give me a specific example? I think Im missing something.
  • /savebuilding 50 admin/test2.cs
  • Okay. So just put 'admin/' in front of the name. I thought you meant something like the name of the admin :P
  • kay, another pesky question. How do I set it so the server options dont reset every time I [x] out of the server and then go back in? By options I mean jail, pure building, underground mode, all that jazz
  • Make sure the prefs get exported. That is, remove the old serverprefs.cs.dso and use export( "$Host::*", "prefs/ServerPrefs.cs", false ); or quit(); when you close the server
  • kk thanks a bunch!
  • Krash, how do you build in this mod?

    :)
  • Grab a hammer and some nails and you're good to go. :p
  • /giveweapon Hammergun cmdrbob
    /giveweapon Nailgun cmdrbob
    /Givepack woodplank cmdrbob
  • Ok, having trouble with saving my work. How do you save a building or entire session?

    EDIT: nevermind, found the thread on saving.
Sign In or Register to comment.