Page 1 of 1
Console commands and getcvar in MP
Posted: Mon May 05, 2003 6:07 pm
by Rookie One.pl
Hi,
Two questions:
1. How to execute a console command on a dedicated server's console (stufftext command)?
2. How to get a cvar from various players (in MP)? I thought of something like this:
Code: Select all
local.playerModel = $player[local.playerNum] getcvar(ui_dmplayermodel)
Would it work?
Thanks in advance,
[FPP]Rookie One 8)
Posted: Mon May 05, 2003 6:08 pm
by jv_map
I'm not sure either is possible.
1. Well there's a couple of commands to try:
stuffcmd
server
cmd
Not sure if any of them work though
2. I don't think that's possible

:)
Posted: Mon May 05, 2003 6:12 pm
by Rookie One.pl
Thanks, I'll try them out 8) .
:/
Posted: Tue May 06, 2003 12:30 pm
by Rookie One.pl
Okay, I've found out that the command I've been looking for is stuffcmd, but I don't know how to use it

. I've exported the script commands list (eventhelp command in console and it says:
Code: Select all
stuffcmd:
a server-only console command. Usage:
stuffcmd ( [ StringArg1 ], [ StringArg2 ], [ StringArg3 ], [ StringArg4 ], [ StringArg5 ], [ StringArg6 ] )
or something like this. I tried this:
but it didn't worked

, it said 'unknown command set'! I tried to put it in brackets:
and it didn't show the error message, but it also didn't set that cvar

. Can somebody help me with this
Now I'm going to test $player getcvar, I hope that at least this will work with no problems.