PDA

View Full Version : [Tutorial] Using Mani Admin Commands Through Maps



Loller Dan
25 Jun 2008, 10:02am
This is a tutorial on how to use mani admin commands through your maps.
-----------------------------------------------------------------------------------------
1 point_servercommand
1 logic_auto
--------------
First off, you will need to name your point_servercommand so it can be triggered by an entity, lets use "colors" since I will be showing you how to color certain players.

http://i189.photobucket.com/albums/z274/Danoverkill/tutorial_pic_2a.jpg

Next, we will need our logic_auto, seeing how it isn't going to be targeted by any entities we won't have to name it.

--------------------------------

1) Click on the "Outputs" tab at the top.

2) Click on the "Add" button near the button.

3) Make the "My output named" OnMapSpawn, this makes it so every time a new round starts the output will be activated.

4) Make the "Target entities named" whatever you have your point_servercommand named as, ours is "colors", so that is what we will put in.

5) Make the "Via this input" Command, this tells the point_servercommand to use a command in game.

6) Make the "With a parameter override of" your mani admin command.

Since we are covering colors I will make mine "ma_colour TP|LollerDan 255 0 0 255"

ma_colour is the command, Tp|LollerDan is who it will be targeting, and 255 0 0 255 is the colour it will turn him. "255 =red, 255 = green, 255 = blue, last one is the alpha of the player, 255 being regular and 0 being invisible"
If you are doing this way DO NOT PUT SPACES IN THE NAME, it will crash your hammer big time and corrupt your .vmf file. Also, people in game can change their name to the one listed and they will be affected by the command. To fix this use the better option bellow.

http://i189.photobucket.com/albums/z274/Danoverkill/tutorial_pic_3a.jpg

-----------------------------------------------------------------------------------------------------

Unfortunately it shows (CONSOLE) set player colour "players name" in game. If you want to make it so nothing shows up ingame you must use that players SteamID.
Thus making the "With a parameter override of" "ma_colour STEAM_0:0:12366349 255 0 0 255" This will colour the player with THAT EXACT STEAMID the color red. Since no one else has their SteamID only they will be colored.

http://i189.photobucket.com/albums/z274/Danoverkill/tutorial_pic_1a.jpg

There is a "After a delay in seconds of". You can set a time if you want the player(s) to be affected later in the game, this is optional though.

-----------------------------------------------------------------------------------------------------

There are plenty of other commands that you can use, but I will not go into those since you should know how to do it now.

For example:

If you are doing a saying command you would write
"ma_say Brought to you by Loller Dan" to appear in the text box menu.

Or if you want it to appear on their screens
"ma_csay Brought to you by Loller Dan"

You can also have buttons activate a point_servercommand. Just make it so when you press the button it targets the point_servercommand. (Triggers can activate them too)

http://i189.photobucket.com/albums/z274/Danoverkill/tutorial_pic_4a.jpg

DO NOT USE THOSE STEAM ID'S, THEY ARE REAL

I hope this tutorial has helped, Loller Dan.