1. Any way to disable players from activating F1 console? It appears to be client side.
    Maybe I can just do "something" if they do press F1 / command? hum..

    I know command block doesn't work on noclip.

    reason I ask, I was playing around with a new FauxClip plugin that grants players temp admin flag (FauxAdmin) while noclipping only. Works pretty good. just looking for ways to control any other commands. But so far, as players did not log in with admin access, it only seems to give them access to the noclip command and any loaded plugin with a .IsAdmin flag for something. will allow them. hummm..

    any thoughts?
     
  2. Wulf

    Wulf Community Admin

    There's no way to handle any client-side commands or hotkeys that aren't sent to the server. Your better option is to just block all admin commands such as kicking, banning, etc. via a plugin using OnRunCommand.
     
  3. one good thing, initial testing shows the 'FauxAdmin' does not have access to any item spawning, or most any server side command. :)
    I'll have to make sure on the kick, banning.
     
  4. Wulf

    Wulf Community Admin

    If you are just setting the IsAdmin tag or their auth level, it won't kick in on the client until they logout and back in. After they do that, they'd have full admin.
     
  5. yes, I'm setting players to IsAdmin for the duration of noclip. Players type /noclip and it flags player, then shortly after it toggles player noclip mode. and player type /noclip again, it then toggles noclip off, then shortly after removes flag. Plus if player logs off or respawns, the flag is removed as well.

    it is working fairly well once I realized I had to have a delay between the flag and toggle. And as you said. since players are not logging off and back in, they do not get hardly any powers. pretty much only the Noclip function and a "green" chat name while they are under the "FauxAdmin" flag. and any plugins that use the IsAdmin to authenticate.. (gotta watch that one)

    Just trying to figure out a better way to allow players to noclip. :)

    edit: what about player movement? I see there is a Admincheat for player movement. I wonder if that can be set ...hummm.
     
    Last edited by a moderator: Apr 25, 2016
  6. Make a plugin that whenever a player connects or the plugin loads, it sends a console command to them binding F1 to something random, I guess that should work.
     
  7. Wulf

    Wulf Community Admin

    I don't think you can bind to that key, it's a client-side hotkey. It's also a bad idea to change that, as then that would break their ability to manually connect to a server or fix it without going into the .cfg file.
     
  8. You could make it so that whenever they disconnected that would be removed, I guess, don't know how realiable that would be though. In general, it's probably not a good idea to disable console.
     
  9. Wulf

    Wulf Community Admin

    Unless they don't disconnect properly, then they're in trouble. It's easy enough to block the commands, so I'd recommend that.
     
  10. Yeah, disabling anything client side would probably be bad.. lol

    But it seems I shouldn't have to disable anything console related. Every command I tried while under my "FauxClip admin" other than noclip itself (client side command) does not work. But you know players, they find ways. I'll have to have a few test my theory out and see if they can break my server. :)
     
  11. Wulf

    Wulf Community Admin

    Did you try logging out and back in though after setting the flag? Keep in mind that ANY plugins using the IsAdmin flag will allow the player access though I bet.
     
  12. Well, I have it set to remove flag after noclip is stopped, if player respawns or if they disconnect.
    Initial testing I did a quick disconnect from network while players where in Noclip mode. all players then where not flagged as admin when they logged back in. so it looks like the flags are removed as wanted.

    and yes, the IsAdmin flag is the only worry. Players are granted access by the IsAdmin in any plugin. :( I tested that out too.
    more mass testing in the works :)