News:

Come Chat with us live! Learn how HERE!

Main Menu

Was Wondering

Started by robert, June 21, 2007, 05:04:06 AM

robert

is there any way to make rcon commands so they are admin commands like !gravity 500

if so then how i need a guide to do it

Oblivion

hmm yea here are some commands here.  If you dont understand how to do them.  I am not going to explain here at the moment.  I am about to leave for work, so someone else may beat me to it.  So here are commands.
Check that link.

http://mercenariesguild.net/index.php?option=com_openwiki&Itemid=46&id=wiki:admin_commands
World Wide Server Host

tuple

And here is the docs on how to create them :)

Death On Ice

I think that he means admin commands that have arguements, like the new !restart command, in which you can do !restart switchteams and !restart keepteams.

I would like very much to be able to do this as well.

Evlesoa

He means commands that do this

Player: !Gravity 500
Server: Gravity has been changed to 500

that what he means... and yea thats pretty easy!

David

oh?  easy?
if so, would you care to explain how?
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

Plague Bringer

Instead of asking him to explain, why don't you.

And it is quite easy, I have read over most of the MG guides on those topics. I couldn't tell you how to do it right now. I'm not a server op and I haven't read through MG's guides for a while, but I do remember that they're easy.

Just because you know something is easy, doesn't mean you know or remember how to do it.
U R A Q T

kevlarman

Quote from: Plague BringerInstead of asking him to explain, why don't you.

And it is quite easy, I have read over most of the MG guides on those topics. I couldn't tell you how to do it right now. I'm not a server op and I haven't read through MG's guides for a while, but I do remember that they're easy.

Just because you know something is easy, doesn't mean you know or remember how to do it.
david can't explain it and neither can evlesoa, because it's not possible without compiling a custom game.qvm
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| #
|.@.-##
-----

Plague Bringer

Making an admin command? You sure about that?
U R A Q T

Exclamation

Quote from: Plague BringerMaking an admin command? You sure about that?
Tuple posted the link on how to make admin commands.

What the OP wants is an admin command that accepts arguments. Im guessing this is what requires a custom qvm.

Plague Bringer

Or he could make an admin command for every variable.

That'd be a tad tedious, though.
U R A Q T

Death On Ice

Wha.. You can make admin commands with variables?! (I.e.: !gravity 400 and !gravity 500 will both set the gravity to those integers)

Also, I have compiled a game.qvm from SVN, how would I patch it / make a patch that would allow commands such as this with arguements?

robert

ty oblivion and tuple they worked

tuple

Death on Ice:
I know of no way to get an admin command to accept a variable from the command line.  I don't think its possible to create one without some patch to the source.  TBO I have less than no idea what that would entail.  

Others(you know who you are): If you don't know what you are talking about, it's best not to open your mouth and let everyone know.

David

Quote from: Death On IceAlso, I have compiled a game.qvm from SVN, how would I patch it / make a patch that would allow commands such as this with arguements?

Look at the diff for tjw's version, see how he added things like !map.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

Oblivion

Quote from: robertty oblivion and tuple they worked
No problem man.
World Wide Server Host