News:

Come Chat with us live! Learn how HERE!

Main Menu

the admin.dat command blocks

Started by atesterman, January 16, 2007, 01:15:37 AM

atesterman

How do i use them?
sry if this is the wrong forum for this type of post

kevlarman

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
Quote from: Asvarox link=topic=8622.msg169333#msg169333Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Paradox

It has been my experience that command blocks are buggy at best, and can mess up the server.

∧OMG ENTROPY∧

Undeference

Really? That's not been my experience.
Need help? Ask intelligently. Please share solutions you find.

Quote from: tuple on February 15, 2008, 11:54:10 PMThats what we need, helpful players, not more powerful admins.

Paradox

Well, you cant enter them below a ban block, and sometimes they just dissapear.

∧OMG ENTROPY∧

Superpie

They disappear only because you have the server running at the same time that you edit it.
What does desc do?
Where is the good in goodbye? -Meredith Willson

benmachine

Quote from: SuperpieWhat does desc do?

It's in the output of !help mycustomcommand, if I remember correctly.
benmachine

Smokey

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

Paradox

I thought passwords were readonly, or latched.

∧OMG ENTROPY∧

Superpie

Passwords are read-only when you set them in the server.cfg, thanks for the other stuff.
Where is the good in goodbye? -Meredith Willson

Rawr

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

?

Paradox

Not that i know of, but test it.

∧OMG ENTROPY∧

Smokey

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 :(

-:GoDz:-Devil

Done tested it. It does not work.