Difference between revisions of "SemiAdmin"

From WolfWiki
Jump to: navigation, search
Line 3: Line 3:
 
Semiadmin is split up in levels from 1 to 999 but you probably wont need them all, each level can have different commands.
 
Semiadmin is split up in levels from 1 to 999 but you probably wont need them all, each level can have different commands.
  
 
+
== Setup ==
----
+
 
+
 
+
 
First you need a server variable called:
 
First you need a server variable called:
  
''b_semiAdminLevels #''
+
<pre>b_semiAdminLevels #</pre>
  
  
Line 16: Line 13:
  
  
----
+
== Setting Password ==
 
+
  
 
The second thing you need is the password this is done by a variable called:
 
The second thing you need is the password this is done by a variable called:
''b_semiAdminPass# "thepassword"''
+
<pre>b_semiAdminPass# "thepassword"</pre>
  
  
Line 30: Line 26:
  
  
----
+
== Commands ==
  
  
 
Third, you need the command that can be used by a level this is done by a variable called:
 
Third, you need the command that can be used by a level this is done by a variable called:
  
''b_semiAdminCmds# "command"''
+
<pre>b_semiAdminCmds# "command"</pre>
  
  
Line 45: Line 41:
 
For strings that you want to vstr you can add the string name in the cmd list then a semiadmin can /sa stringname to vstr it
 
For strings that you want to vstr you can add the string name in the cmd list then a semiadmin can /sa stringname to vstr it
 
This both allows you to limit the powers more specific e.g.
 
This both allows you to limit the powers more specific e.g.
''b_semiadmincmds3 "g_speed g_gravity m1 m2 m3"''
+
<pre>b_semiadmincmds3 "g_speed g_gravity m1 m2 m3"</pre>
  
 
For the rest of the cmds list can contain any console command and it will also be done as if it was typed in the server console itself with only 1 big exception:
 
For the rest of the cmds list can contain any console command and it will also be done as if it was typed in the server console itself with only 1 big exception:
Line 51: Line 47:
  
  
----
+
== Logging In ==
 
+
  
 
Now when that is all done people should be able to log in, this is done by the command ''/semiadminlogin'' or short ''/sal'' like this:
 
Now when that is all done people should be able to log in, this is done by the command ''/semiadminlogin'' or short ''/sal'' like this:
  
''/semiadminlogin passwordofyourlevel''
+
<pre>/semiadminlogin passwordofyourlevel</pre>
  
  
Line 63: Line 58:
 
To do server commands you use the command ''/semiadmin'' or ''/sa'' like:
 
To do server commands you use the command ''/semiadmin'' or ''/sa'' like:
  
''/semiadmin yourcommand''
+
<pre>/semiadmin yourcommand</pre>
  
  
 
If you don't know what commands you can do you can just type /sa to get your level number and your commands.
 
If you don't know what commands you can do you can just type /sa to get your level number and your commands.
 
if the command is not in your command list (/sa) you cannot use it.
 
if the command is not in your command list (/sa) you cannot use it.

Revision as of 15:43, 5 November 2005

ETPro allows admins to use SemiAdmins. These are admins who can do some server commands without having full rcon access.

Semiadmin is split up in levels from 1 to 999 but you probably wont need them all, each level can have different commands.

Setup

First you need a server variable called:

b_semiAdminLevels #


This variable uses 1 number, it is the number of semiadmin levels you want use the number can be from 0 to 999, where 0 is no semiadmins at all. Any value higher than 0 is the number of levels so if you have it set to 2 you will have 2 semiadmin levels.


Setting Password

The second thing you need is the password this is done by a variable called:

b_semiAdminPass# "thepassword"


The # is the level number you want to use for this password. so b_semiadminpass2 "lol" will make 'lol' the password to log into level 2, but b_semiadminlevels must be 2 or higher than 2 for level 2 to work. Also every level must have its own password, since the password is used to choose which level a person logs in like: b_semiadminpass1 "omg" b_semiadminpass2 "lol" this will make anyone that logs in with 'lol' a level 2 semiadmin and everyone that logs in with 'omg' a level 1 semiadmin.


Commands

Third, you need the command that can be used by a level this is done by a variable called:

b_semiAdminCmds# "command"


The # is the level number you want to use for these commands. Each command must be separated with a space so b_semiadmincmds1 "say broadcast" allows any level 1 semiadmin to use both 'broadcast' and 'say', any arguments that are added to any of those commands are also sent, so it's possible to do /sa say "hello all"

Be careful with that in cases of b_semiadmincmds2 "exec vstr set" the level2 semiadmin can add any arguments to these commands so, they can exec any .cfg on the server using /sa exec filename.cfg and, they can vstr any string using /sa vstr stringname and they can also set any cvar using /sa set cvarname value this means they can even set rconpassword Very Happy But this can be done a different way, you can add the variable in the cmd list just like you wont need "set" in the server console. For strings that you want to vstr you can add the string name in the cmd list then a semiadmin can /sa stringname to vstr it This both allows you to limit the powers more specific e.g.

b_semiadmincmds3 "g_speed g_gravity m1 m2 m3"

For the rest of the cmds list can contain any console command and it will also be done as if it was typed in the server console itself with only 1 big exception: Some command send information back, such as when you do /rcon status it will show the server status, sadly this does not work for semiadmins, if a semiadmin does a command like that, it will do the command on the server only but the text will never reach it back to the client.


Logging In

Now when that is all done people should be able to log in, this is done by the command /semiadminlogin or short /sal like this:

/semiadminlogin passwordofyourlevel


If it succeeds it will broadcast ‘playername has become a semiadmin’ and in your console it says seminadmin level yourlevel logged in. Now you can start using the SemiAdmon commands.

To do server commands you use the command /semiadmin or /sa like:

/semiadmin yourcommand


If you don't know what commands you can do you can just type /sa to get your level number and your commands. if the command is not in your command list (/sa) you cannot use it.