SemiAdmin

From WolfWiki
Revision as of 14:48, 5 November 2005 by Fusen (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.




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.




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 much be 2 or higher then 2 for level 2 to work. Also every level must have its own password since the password is used to choose to witch level a person logs in like: b_semiadminpass1 "omg" b_semiadminpass2 "lol" this will make any1 that log in with lol a level 2 semiadmin and every1 that logs in with omg a level 1 semiadmin.




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 just send along so people could do things like /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 like: 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 like when you do /rcon status it will show the server status sadly this does not work for semiadmins, in case a semiadmin does a command like that it will do the command on the server only the text never reaches it back to the client. Rolling Eyes

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 ‘yourplayername has become a semiadmin’ and in your console it says seminadmin level yourlevel logged in. Now you can start being an evil admin.

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.