News:

Come Chat with us live! Learn how HERE!

Main Menu

Custom commands (restated)

Started by sSopris, September 29, 2007, 11:13:10 PM

sSopris

I'm trying to make !map a custom command because I don't have it but I don't know what to put in the tcmd file.

I have "map" but what do I put that will make the console use whatever the player inputs?
"Oh gosh....oh gosh! TEXTURE ERROOOOOOOR!!!"
"Shoot it! Shoot it!"
"Its got me!!"
"Take it down!"
-

Death On Ice

Already done. The patch is part of Lakitu7's qvm.

kevlarman

Quote from: Death On IceAlready done. The patch is part of Lakitu7's qvm.
it's in svn >.>
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| #
|.@.-##
-----

sSopris

Is there a way to have slap and layout commands but still keep Lakitu7's game.qvm?

His game.qvm doesn't have either of those.
"Oh gosh....oh gosh! TEXTURE ERROOOOOOOR!!!"
"Shoot it! Shoot it!"
"Its got me!!"
"Take it down!"
-

Death On Ice

Oooh, my bad. I must have not taken his pre-compiled qvm. I probably compiled SVN and used his patch >.>

sSopris

Ok let me restate or repeat the question.

In a .tcmd file, can I type something in that will be a variable for whatever the player inputs or whichever player uses the command.

Example of a variable for player input in .tcmd file:

map <whatever map player types>

Input when using this command should look like:

!map karith2 or !map pulse_102
---------------
Example of a variable for player's name in .tcmd file:

m <name of player who uses the command>

Input when using this command should look like:

UnnamedPlayer: !description
(and then the server would message that player whatever someone wanted it to message)

Thank you, I appreciate your help so far
"Oh gosh....oh gosh! TEXTURE ERROOOOOOOR!!!"
"Shoot it! Shoot it!"
"Its got me!!"
"Take it down!"
-

kevlarman

to do that you need a custom game.qvm, since g_admin [command] blocks can't take arguments. !map has already been implemented since around the same time as the rest of g_admin.
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| #
|.@.-##
-----

benmachine

Quote from: kevlarmanto do that you need a custom game.qvm, since g_admin [command] blocks can't take arguments. !map has already been implemented since around the same time as the rest of g_admin.
!map has actually only been around since tjw made his own layout system
(revision 886)
although of course there's always been /callvote map niveus; !passvote
benmachine

Amanieu

I created a patch which allows arguments to be passed to admin.dat commands://http://www.mercenariesguild.net/patches/?do=details&task_id=100
Quote
< kevlarman> zakk is getting his patches from shady frenchmen on irc
< kevlarman> this can't be a good sign :P

benmachine

Quote from: AmanieuI created a patch which allows arguments to be passed to admin.dat commands: http://www.mercenariesguild.net/patches/?do=details&task_id=100
I'm in ur post, fixin ur URIs
benmachine

Death On Ice

Quote from: benmachine
Quote from: AmanieuI created a patch which allows arguments to be passed to admin.dat commands: http://www.mercenariesguild.net/patches/?do=details&task_id=100
I'm in ur post, fixin ur URIs

I'm in ur post, fixin ur spellings

URL, not I

Undeference

Quote from: Death On IceI'm in ur post, fixin ur spellings

URL, not I
FYI, a URL is a type of URI. And then there are URNs... this is what you get when you let TBL participate on RFCs. (See "Relationship to URL and URN" on the URI article.)

30000 ninja edits!!!
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.

Death On Ice

Sorry, Just doing it for the continuation of the series.

You should have said it too, next_ghost

I'm in ur post, fixin ur errors

benmachine

Quote from: Death On IceYou should have said it too, Undeference

I'm in ur post, fixin ur errors
benmachine

mooseberry

Quote from: benmachine
Quote from: Death On IceYou should have said it too, Undeference

I'm in ur post, fixin ur errors

Bucket: [You hear the distant howl of a coyote losing at Counterstrike.]

मैं हिन्दी का समर्थन

~Mooseberry.