Tremulous Forum

Community => Servers => Topic started by: atesterman on January 16, 2007, 01:15:37 AM

Title: the admin.dat command blocks
Post by: atesterman on January 16, 2007, 01:15:37 AM
How do i use them?
sry if this is the wrong forum for this type of post
Title: Re: the admin.dat command blocks
Post by: kevlarman on January 16, 2007, 02:01:03 AM
Quote from: atestermanHow do i use them?
sry if this is the wrong forum for this type of post
first, you need to have tjw's server installed properly (or any of the svn-based servers, pretty much anything other than the 1.1.0 binary and game.qvm), then you edit admin.dat to include those commands (here's an example)

[command]
command = spam
exec = cp This is an annoying [command] block
description = spam the server
levels = 4 5
Title: the admin.dat command blocks
Post by: Paradox on January 16, 2007, 03:22:43 AM
It has been my experience that command blocks are buggy at best, and can mess up the server.
Title: the admin.dat command blocks
Post by: Undeference on January 16, 2007, 03:26:27 AM
Really? That's not been my experience.
Title: the admin.dat command blocks
Post by: Paradox on January 16, 2007, 03:36:08 AM
Well, you cant enter them below a ban block, and sometimes they just dissapear.
Title: -.-
Post by: Superpie on February 20, 2007, 07:43:02 PM
They disappear only because you have the server running at the same time that you edit it.
What does desc do?
Title: Re: -.-
Post by: benmachine on February 20, 2007, 09:06:41 PM
Quote from: SuperpieWhat does desc do?

It's in the output of !help mycustomcommand, if I remember correctly.
Title: the admin.dat command blocks
Post by: Smokey on February 20, 2007, 10:11:57 PM
Well, they work flawlessly for me, Put them at the END of your admin.dat

Examples:[command]
command = pmoff
exec    = set g_privatemessages 0;cp ^1Private Messages Disabled
desc    = Turns Off Private Messages
levels  = 6 7

[command]
command = pmon
exec    = set g_privatemessages 1;cp ^1Private Messages Enabled
desc    = Turns On Private Messages
levels  = 6 7

Turns Private Messages On and Off



[command]
command = lockserver
exec    = set g_needpass 1;set g_password ****;cp ^1Server Locked.
desc    = Puts a password on the server
levels  = 6 7

[command]
command = unlockserver
exec    = set g_needpass 0;exec nopass.cfg;cp ^1Server UnLocked.
desc    = Removes server password
levels  = 6 7

Passwords And Unpasswords a Server
Title: the admin.dat command blocks
Post by: Paradox on February 21, 2007, 05:52:46 AM
I thought passwords were readonly, or latched.
Title: the admin.dat command blocks
Post by: Superpie on February 22, 2007, 01:39:18 AM
Passwords are read-only when you set them in the server.cfg, thanks for the other stuff.
Title: the admin.dat command blocks
Post by: Rawr on February 23, 2007, 11:15:39 PM
Does code work in this?
IE
[command]
command = speed %i (or what ever interger is)
exec    = set g_speed %i;cp ^1Speed has been set to %e(entry)
desc    = Turns speed to specific amount
levels  = 5 6 7

?
Title: the admin.dat command blocks
Post by: Paradox on February 24, 2007, 09:08:53 PM
Not that i know of, but test it.
Title: the admin.dat command blocks
Post by: Smokey on February 24, 2007, 09:13:53 PM
Quote from: bazuka_pooDoes code work in this?
IE
[command]
command = speed %i (or what ever interger is)
exec    = set g_speed %i;cp ^1Speed has been set to %e(entry)
desc    = Turns speed to specific amount
levels  = 5 6 7

?

I don't belive there are variables like that :(
Title: the admin.dat command blocks
Post by: -:GoDz:-Devil on February 24, 2007, 09:26:19 PM
Done tested it. It does not work.
Title: the admin.dat command blocks
Post by: Rawr on February 25, 2007, 06:06:39 PM
:cry:  :cry:  :cry: