![]() |
calling $args
I was wondering if it is possible to call an argument string in an alias, for example:
alias servermsg "rcon ui_message" $arg Ofcourse this doesn't work but ideally I would only have to type servermsg <something> in the console to have <something> relayed as a serverwide message. Anyone know of a way to make it work? |
remember that i'm not looking for an easy way to do servermessages, I'm looking for the correct syntax to call arguments.
|
setcvar
I think what you are looking for is "setcvar".
setcvar "mycvarname" "myvalue" cvar is a 'console variable', i.e. a variable accessible through the console. So if you type mycvarname in the console it would bring up the message myvalue--if it was set before hand. There is also "getcvar" and you can see a list of cvars that are already in the game by typing "cvarlist" in the console. Hope that helps. |
All times are GMT -6. The time now is 08:08 AM. |
Powered by vBulletin® Version 3.8.12 by ScriptzBin
Copyright ©2000 - 2025, vBulletin Solutions Inc.
© 1998 - 2007 by Rudedog Productions | All trademarks used are properties of their respective owners. All rights reserved.