Author Topic: Was Wondering  (Read 6270 times)

robert

  • Posts: 15
  • Turrets: +0/-0
Was Wondering
« on: June 21, 2007, 05:04:06 am »
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

  • Posts: 410
  • Turrets: +27/-22
    • Gamez-Host.com
Was Wondering
« Reply #1 on: June 21, 2007, 01:46:54 pm »
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

  • Posts: 833
  • Turrets: +97/-80
Was Wondering
« Reply #2 on: June 21, 2007, 01:58:52 pm »
And here is the docs on how to create them :)

Death On Ice

  • Posts: 1287
  • Turrets: +126/-141
Was Wondering
« Reply #3 on: June 22, 2007, 12:21:39 am »
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

  • Guest
Was Wondering
« Reply #4 on: June 22, 2007, 12:27:16 am »
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

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Was Wondering
« Reply #5 on: June 22, 2007, 01:44:39 am »
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

  • Posts: 3815
  • Turrets: +147/-187
Was Wondering
« Reply #6 on: June 22, 2007, 02:01:20 am »
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

  • Posts: 2737
  • Turrets: +291/-295
Was Wondering
« Reply #7 on: June 22, 2007, 02:16:53 am »
Quote from: "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.
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#msg169333
Ok 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

  • Posts: 3815
  • Turrets: +147/-187
Was Wondering
« Reply #8 on: June 22, 2007, 02:26:53 am »
Making an admin command? You sure about that?
U R A Q T

Exclamation

  • Posts: 37
  • Turrets: +7/-1
Was Wondering
« Reply #9 on: June 22, 2007, 02:40:32 am »
Quote from: "Plague Bringer"
Making 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

  • Posts: 3815
  • Turrets: +147/-187
Was Wondering
« Reply #10 on: June 22, 2007, 02:52:31 am »
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

  • Posts: 1287
  • Turrets: +126/-141
Was Wondering
« Reply #11 on: June 22, 2007, 04:01:25 am »
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

  • Posts: 15
  • Turrets: +0/-0
Was Wondering
« Reply #12 on: June 22, 2007, 05:01:23 am »
ty oblivion and tuple they worked

tuple

  • Posts: 833
  • Turrets: +97/-80
Was Wondering
« Reply #13 on: June 22, 2007, 12:25:57 pm »
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

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Was Wondering
« Reply #14 on: June 22, 2007, 02:21:36 pm »
Quote from: "Death On Ice"
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?


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

  • Posts: 410
  • Turrets: +27/-22
    • Gamez-Host.com
Was Wondering
« Reply #15 on: June 22, 2007, 05:25:15 pm »
Quote from: "robert"
ty oblivion and tuple they worked

No problem man.
World Wide Server Host