News:

Come Chat with us live! Learn how HERE!

Main Menu

How to restrict certain commands to certain levels.

Started by Piper802, January 13, 2009, 01:45:21 AM

Piper802

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.

Paradox

You want to change their flags? Edit the source and compile a qvm.

∧OMG ENTROPY∧

Piper802

#2
Quote from: Paradox on January 13, 2009, 02:15:17 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...

[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 >_<?

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


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

Archangel

way to not read the help file for any qvm above 1.1

Piper802

#4
Quote from: Archangel on January 13, 2009, 02:33:46 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 :[.

Bissig

Quote from: Piper802 on January 13, 2009, 02:29:24 AM
Quote from: Paradox on January 13, 2009, 02:15:17 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...

[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 >_<?

[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

#6
Quote from: Bissig on January 13, 2009, 04:50:01 AM
Quote from: Piper802 on January 13, 2009, 02:29:24 AM
Quote from: Paradox on January 13, 2009, 02:15:17 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...

[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 >_<?

[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?

FreaK

Quote from: Piper802 on January 13, 2009, 05:07:29 AM
Quote from: Bissig on January 13, 2009, 04:50:01 AM
Quote from: Piper802 on January 13, 2009, 02:29:24 AM
Quote from: Paradox on January 13, 2009, 02:15:17 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...

[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 >_<?

[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?

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


like that no spaces

Paradox

* is everything except a few (i think its $ and @ or something)

∧OMG ENTROPY∧

KamikOzzy

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

Quote from: Paradox on January 13, 2009, 05:23:10 AM
* is everything except a few (i think its $ and @ or something)

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

Piper802

#11
Thanks everyone! Problem solved :D.