BraXi.org Forums

Full Version: Administration system
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Death Run 1.1 comes with new administration system which is much more advanced than in previous versions.
It does have an administration menu and permission levels system.


Permissions
  • a - login to rcon
  • b - admin head icon
  • c - kill
  • d - wtf
  • e - spawn
  • f - warn
  • g - kick
  • h - ban
  • i - remove warn(s)
  • j - heal
  • k - bounce
  • l - drop item
  • m - teleport
  • n - finish round or map
  • o - restart round or map
  • x - show message to players when admin join server


Administrators
No idea how does this work? Np, im here to explain.
You can have up to 32 administrators on your server, they all must have legit copies of CoD4 because you need to insert last 8 digits of their guids in CFG file.
Syntax is following: set dr_admin_<num> "<last 8 digits from guid>;<name>;<permissions>"
In this case example configuration should look like this:
Code:
set dr_admin_0 "s8gheh62;Prozor;abcdefghijklmnox"
set dr_admin_1 "g8s63b7o;Moderator;bcdefghijklmx"
set dr_admin_2 "9ghs76kx;3rd admin;bcdefgnox"


Administration Menu
You should keep in mind that permissions are important in administration menu, in order to use this way of administration you will need to bind one command to key. You should execute this in your console:
Code:
\bind P "openScriptMenu -1 adminmenu"
Make sure you added yourself in CFG, then you should be able to use admin menu while in game.
[Image: 121100184-3.jpg]
In-game administration menu.


Rcon Commands
Death Run has plenty of rcon commands and two ways to use them.
  • \rcon admin "<command>:<player number>:<reason>"
  • \rcon adm "<command>:<player nickname>:<reason>"

In order to use them, administrator has to have "a" permission or be logged into rcon.

Commands are:
  • say/msg/message - bold message in centre of the screen
  • kill - kill player
  • wtf - funny way to kill player
  • teleport - teleports player to spawn point
  • redirect - redirects player to other server
  • savescores - saves all map records to log file, 1 - all maps, 0 - current map
  • kick - kicks player from server
  • cmd - executes command/dvar on player
  • warn - warn player
  • row - remove one warning from player
  • rw - remove all warnings from player
  • ban - ban player
  • restart - restart round and keep player scores (value: 1), restart map (value: 0)
  • finish - end round (value: 1), end game (value:0)
  • bounce - bounce player
  • drop - drop player's current weapon
  • takeall - take all weapons from player
  • heal - restore player's health to maximum
  • spawn - spawn player

Examples:
Code:
\rcon adm "kick:noob:you are cheating!"
\rcon admin "restart:0"
\rcon adm "heal:braxi"
\rcon adm "msg:welcome everybody!"
\rcon adm "redirect:braxi:178.255.44.214:28960"
\rcon admin "redirect:2:178.255.44.214:28960"
Hi Braxi, something was wrong with the authentication in the admin menu!

Used \bind P "openScriptMenu -1 adminmenu".
I choosed player, spawn him and other player spawned.
I choosed myself for kill and other player killed.

Can you check the scripts?

Thanks
Fixed.
Hello!
I find a bug in the admin menu:when I select spawn to me, nothing doing Big Grin
Ok, i added myself to admin with full access:
set dr_admin_0 "MYGUID;rocco;abcdefghijklmnox"

I don't have ADMIN logo above my head. But the mod recognized me.

*Forgot to say*
Mod won't write in down Server admin is connected etc...
(01-28-2012 11:27)rocco27 Wrote: You are not allowed to view links. Register or Login to view.Ok, i added myself to admin with full access:
set dr_admin_0 "MYGUID;rocco;abcdefghijklmnox"

I don't have ADMIN logo above my head. But the mod recognized me.

We also have the same problem, sometimes the admin logo is disappear Confused
But the fix is nice Smile
hello i get same problem ,and have full maps admin commands work good and full maps not , and record time no work . set fps 250 and no can change is strage lol,mabye speed have to change .glass2 players no can jump traps and say 125 or 333 is beter .
nice work braxi!!!!!! deathrun change alote for beter
kiss all
(01-28-2012 11:27)rocco27 Wrote: You are not allowed to view links. Register or Login to view.Ok, i added myself to admin with full access:
set dr_admin_0 "MYGUID;rocco;abcdefghijklmnox"

I don't have ADMIN logo above my head. But the mod recognized me.

*Forgot to say*
Mod won't write in down Server admin is connected etc...

Ok, I found how can i fix that, but it's strange, very strange.

I added one more lines to there:
Code:
    if( self hasPermission( "x" ) )
------------------------- THIS LINE HAS MY CODES -------------------------
        iPrintln( "^3Server admin " + self.name + " ^3connected" );

If i added my codes, mod will run next line, if i remove it, mod won't run it.

If i added my codes, mod won't run it, but if I duplicate my codes, mod runs it.
Code:
    if( self hasPermission( "x" ) )
------------------------- 1. LINE HAS MY CODES -------------------------
-------------- 2. LINE HAS SAME CODES THAN 1. LINE --------------
        iPrintln( "^3Server admin " + self.name + " ^3connected" );

WTF? How is this possible?
Reference URL's