Page 1 of 1
How can I output the player name?
Posted: Sat Jun 29, 2002 9:32 am
by Pvt.Mapper
Hi.
I'm making class system in MOHAA.
it's use a "local.myclass = #", 1 = soldier, 2 = Medic, 3 = engineer...
so it must print the name and class.
iprintlnbold_noloc "****(player name) be the Medic."
maybe it 's "local.player.name", but cant output my name...
HELP!! 
player numbers
Posted: Mon Jul 08, 2002 5:50 am
by tltrude
Have you tried using $player1, $player2, etc..? For multiplay it might be $allied.player1 or $axis.player1. Try looking at the console during a multiplayer game and ask someone to type a message. Good luck.
Posted: Tue Jul 09, 2002 1:31 am
by obersturmfuhrer
I think I fiqured it out but I havent tried it:
$player.name
Posted: Tue Sep 17, 2002 7:57 am
by ScorpioMidget
Did u ever get this sorted out ?
Coz i've tried numerous ways to do it, but had no luck so far.
Posted: Tue Sep 17, 2002 7:14 pm
by obersturmfuhrer
Duncan,
I haven't even tried it yet. I've been busy working on the geometry for my new map. I'll try it tonight and see what I come up with and let ya know.
Posted: Wed Sep 18, 2002 4:21 pm
by jv_map
I think the following will work to find out the current player's name, but I don't know how to output the name of an other player on a server:
local.playername = getcvar(name)
This line of code inputs the in-game 'name' variable.
Posted: Wed Sep 18, 2002 5:59 pm
by ScorpioMidget
i tried that ages ago but it only returns the name of the player on the server

Posted: Tue Oct 01, 2002 3:36 pm
by jv_map
I'm afraid it's not really helpful either, but anyway. I tried some things with MOHAA and will found out that if you type
rcon status
in your console that you can get a list of player names, scores etc. But you must know and set the rcon password first. Sadly, I don't think you could use any 'getcvar' tricks on it to put a player's name to a variable.
Posted: Tue Oct 01, 2002 3:38 pm
by jv_map
Why can't I edit my posts on this forum? Just found out I made some grammar error.
