PDA

View Full Version : Got it installed, ? but a bit confused on what it does?


Buzz_Litebeer
02-02-2003, 03:02 AM
allright, i am just going to go through a step by step check on how to get it to work, or easy ways to test MAM.

first, log into the server with MAM installed

now, set your rconpassword (for this tutorial the rcon password will be "billybob"

anyway so at console you would type

rconpassword billybob

(we pretend billybob is the password to your server)

anyway now that thats done. lets say you really want to switch a player named jumper to axis team.

first you type at console


rcon status

now this gives a list of people. Now jumper is listed, and there is a number just to the left of his name, this number is called his client id (each player has a unique one, so if you see a number that everyone else has, probably 0, you are looknig in the wrong place ;-))

anyway

now you have his number, for this tutorial we will assume its the number 1.

so now you want to switch him to axis

you type at console

rcon command "switch_axis 1"

now he will switch to the axis team!

but lets say you dont like what he is doing and want to make him go to spectator mode, you can type.

rcon command "switch_spectator 1"

and now he will switch to spectator!

Allright allrighty you got that, but your having a problem, it doesnt work in spearhead!


well thats not really MAMs fault, spearhead has some serious issues, and one of them is that it doesnt recognize spaces very well, but we of MAM have a fix for that too!

instead of typing

rcon command "switch_axis 1"

you now type

rcon command "switch_axis\s1"

now your saying "what buzz why did you add the \s"

well the \s is for compatibility mode, IE we pretend that \s is actually a blank space

but now that you have that you ask

"buzz i want to make 3 people switch to axis, and 3 switch to allies, how do i do that?"

good question amigo, here is the answer

first type

rcon status (if you havent guessed now if you use this mod you will be typing this a lot)

and that will give you the client ids of all the players you want to switch.


now for this we will pretend that the 3 you want on axis are players 1 2 and 3, and the players you want on allies are 4 5 6 (makes it easier)

so now to do the commands you type

rcon command "switch_axis 1 2 3;switch_allies 4 5 6"
or for speahread
rcon command "switch_axis\s1\s2\s3;switch_allies\s4\s5\s6"

shizah buzz you can do commands on multiple people and mulitple commands at once? Why yes you can, and it gets better.

lets say you want to swap teams, thats right, swap teams!

you can type

rcon command "swap_teams" and it just swaps teams right then and there.

but now you ask,, but buzz i want to make axis team or allied team, or spectators do somthin, how do i do that!

well lets say we wanted to make each team do an action, say make all axis switch to allies, allies swithc to axis, and spectators to switch to axis.

the command for that would be

rcon command "switch_axis allies;switch_allies axis;switch_axis spectators"

or for spearhead.

rcon command "switch_axis\sallies;switch_allies\saxis;switch_axi s\sspectators"

"holy bejeezus you just sent commands to an entire team just by typing the team name!" thats right, its part of an internal built in function of MAM ;_)

"But buzz, im still not satisfied, how do i know if the command was sent correctly?"

well how you do that, is by typing

rcon status (hehe told you you would see this again)

and get YOUr client id, IE the one next to your name.

and now we will pretend your client id is 10.

so now for example you would type

rcon command "10 switch_axis 0"

and it would echo back into your console "******* command -switch_axis- sent"

thats right, as long as you specify an admininstrator var in the format of

rcon command "<yourclientid> <command> <arguments>" it will return whether or not the command was successfull, it will also tell you if the command failed, IE you mistyped osmething.

so if you plan on sending a command you HAVE to know if it worked, then sending it with your admin id is a GOOD IDEA.

Hopefully that helped you guys that were struggling a bit, this mod was created because of shortcomings in PJGAdmin, and the lack of integration and cohesion of other modificaitons.

This one has considerable cohesion, and we want it to work awsome for everyone, so if you have questions feel free to ask, if you would like a feature, and it is usefull enough for all people to use, just ask wemight just code it.

if you have a small feature you would like to add, go ahead and make one, we have provided pretty good tutorial documents on this site for creating mods for MAM.

Buzz out