Author Topic: How to restrict certain commands to certain levels.  (Read 7054 times)

Piper802

  • Posts: 56
  • Turrets: +2/-2
How to restrict certain commands to certain levels.
« on: January 13, 2009, 01:45:21 am »
Hey, this is probably a completely nooby question, but how do you restrict certain commands to certain admin levels? I've searched millions of times and have read thousands of posts about flags, but none ever state how to assign flags to a command. I'm using Nero's Crazy QVM btw...

http://tremulous.net/forum/index.php?topic=7484.0

This topic has a list of the QVMs commands + flags.
« Last Edit: January 13, 2009, 01:48:09 am by Piper802 »

Paradox

  • Posts: 2612
  • Turrets: +253/-250
    • Paradox Designs
Re: How to restrict certain commands to certain levels.
« Reply #1 on: January 13, 2009, 02:15:17 am »
You want to change their flags? Edit the source and compile a qvm.

∧OMG ENTROPY∧

Piper802

  • Posts: 56
  • Turrets: +2/-2
Re: How to restrict certain commands to certain levels.
« Reply #2 on: January 13, 2009, 02:29:24 am »
You want to change their flags? Edit the source and compile a qvm.
Nolol I dont want to change their flags, I just want make higher levels get certain commands, and lower levels get lesser commands.

Ex:
Level 6 commands: !noclip, !switch, etc..
Level 5 Commands: !abps, !hbps, etc...
:/

I THINK youre supposed to add flags to the section of the admin.dat file...

Code: [Select]
[level]
level   = 6
name    = ^1God
flags   = * (Insert flags here?)

Like according to Nero's QVM, !noclip's flag is O. So would it look something like this >_<?

Code: [Select]
[level]
level   = 6
name    = ^1God
flags   = *O

I'm probably doing this completely wrong but meh.. D:.
« Last Edit: January 13, 2009, 02:34:33 am by Piper802 »

Archangel

  • Guest
Re: How to restrict certain commands to certain levels.
« Reply #3 on: January 13, 2009, 02:33:46 am »
way to not read the help file for any qvm above 1.1

Piper802

  • Posts: 56
  • Turrets: +2/-2
Re: How to restrict certain commands to certain levels.
« Reply #4 on: January 13, 2009, 02:38:48 am »
way to not read the help file for any qvm above 1.1
Sorry I dont know where to get this help file...  :-[ When I downloaded Nero's QVM all it has in the folder is the QVM >_>.. It saves yourself a few posts if you provide details :[.
« Last Edit: January 13, 2009, 02:47:54 am by Piper802 »

Bissig

  • Posts: 1309
  • Turrets: +103/-131
Re: How to restrict certain commands to certain levels.
« Reply #5 on: January 13, 2009, 04:50:01 am »
You want to change their flags? Edit the source and compile a qvm.
Nolol I dont want to change their flags, I just want make higher levels get certain commands, and lower levels get lesser commands.

Ex:
Level 6 commands: !noclip, !switch, etc..
Level 5 Commands: !abps, !hbps, etc...
:/

I THINK youre supposed to add flags to the section of the admin.dat file...

Code: [Select]
[level]
level   = 6
name    = ^1God
flags   = * (Insert flags here?)

Like according to Nero's QVM, !noclip's flag is O. So would it look something like this >_<?

Code: [Select]
[level]
level   = 6
name    = ^1God
flags   = *O

I'm probably doing this completely wrong but meh.. D:.

Your completely right. Just remove the "*", I think that flag makes you allmighty.

Piper802

  • Posts: 56
  • Turrets: +2/-2
Re: How to restrict certain commands to certain levels.
« Reply #6 on: January 13, 2009, 05:07:29 am »
You want to change their flags? Edit the source and compile a qvm.
Nolol I dont want to change their flags, I just want make higher levels get certain commands, and lower levels get lesser commands.

Ex:
Level 6 commands: !noclip, !switch, etc..
Level 5 Commands: !abps, !hbps, etc...
:/

I THINK youre supposed to add flags to the section of the admin.dat file...

Code: [Select]
[level]
level   = 6
name    = ^1God
flags   = * (Insert flags here?)

Like according to Nero's QVM, !noclip's flag is O. So would it look something like this >_<?

Code: [Select]
[level]
level   = 6
name    = ^1God
flags   = *O

I'm probably doing this completely wrong but meh.. D:.

Your completely right. Just remove the "*", I think that flag makes you allmighty.
Thanks!
So if you wanted to add a ton of flags would you just keep adding on different flags to the level? Or would there be spaces inbetween them?
« Last Edit: January 13, 2009, 05:09:52 am by Piper802 »

FreaK

  • Posts: 295
  • Turrets: +45/-59
Re: How to restrict certain commands to certain levels.
« Reply #7 on: January 13, 2009, 05:15:19 am »
You want to change their flags? Edit the source and compile a qvm.
Nolol I dont want to change their flags, I just want make higher levels get certain commands, and lower levels get lesser commands.

Ex:
Level 6 commands: !noclip, !switch, etc..
Level 5 Commands: !abps, !hbps, etc...
:/

I THINK youre supposed to add flags to the section of the admin.dat file...

Code: [Select]
[level]
level   = 6
name    = ^1God
flags   = * (Insert flags here?)

Like according to Nero's QVM, !noclip's flag is O. So would it look something like this >_<?

Code: [Select]
[level]
level   = 6
name    = ^1God
flags   = *O

I'm probably doing this completely wrong but meh.. D:.

Your completely right. Just remove the "*", I think that flag makes you allmighty.
Thanks!
So if you wanted to add a ton of flags would you just keep adding on different flags to the level? Or would there be spaces inbetween them?

Code: [Select]
[level]
level   = 4
name    = ^3Senior Admin
flags   = i1ahCpPkmyBbeN

like that no spaces

Paradox

  • Posts: 2612
  • Turrets: +253/-250
    • Paradox Designs
Re: How to restrict certain commands to certain levels.
« Reply #8 on: January 13, 2009, 05:23:10 am »
* is everything except a few (i think its $ and @ or something)

∧OMG ENTROPY∧

KamikOzzy

  • Posts: 742
  • Turrets: +317/-172
Re: How to restrict certain commands to certain levels.
« Reply #9 on: January 13, 2009, 07:23:40 am »
right, yet everything you add after the * is subtracted. Therefore, in your case, *O means that the admin level it is applied to will have every admin ability except noclip.
|AoD|Ozzyshka at your service.
Still using Windows XP and still playing 1.1
click this: http://cornersrocks.shop-pro.jp/?pid=16232798

Lakitu7

  • Tremulous Developers
  • *
  • Posts: 1002
  • Turrets: +120/-73
Re: How to restrict certain commands to certain levels.
« Reply #10 on: January 13, 2009, 08:41:22 am »
* is everything except a few (i think its $ and @ or something)

In SVN, ! and @
In my builds, !, @, and #

Piper802

  • Posts: 56
  • Turrets: +2/-2
Re: How to restrict certain commands to certain levels.
« Reply #11 on: January 13, 2009, 01:40:51 pm »
Thanks everyone! Problem solved :D.
« Last Edit: January 13, 2009, 01:45:51 pm by Piper802 »