1

Topic: [Help] Getting Players name from "player.cpp"

Well, the title says it all. And sorry for pestering you once again smile
I want to add code to player.cpp to get a players name.
Thanks in advance,
Ikaron

2

Re: [Help] Getting Players name from "player.cpp"

Example inside player.cpp:

str_format(aBuf, sizeof(aBuf), "leave player='%d:%s'", m_ClientID, Server()->ClientName(m_ClientID));

Example inside character.cpp:

str_format(bBuf,sizeof(bBuf),"%s metamorphosed and gained alien-multijump", Server()->ClientName(m_pPlayer->GetCID()));

Greetings,
Mo(2)

3

Re: [Help] Getting Players name from "player.cpp"

Thanks ^^
I don't know what I would do without you smile

4

Re: [Help] Getting Players name from "player.cpp"

I think I had for sure more then 500 hours of fun with TW already for free. Maybe 1000? Dunno... Compare it how much you have to pay for  500 hours in cinema. To be honsest - the question you've asked here would be easy to answer yourself  if you read seriously the source (coz it's necessary to know the player name in various parts of the game). Anyway I've asked that question myself already at CNH and Alien mod ... so recycle it for free. Hopefully your mod is worth the effort. wink

Greetings,
Mo(2)

5

Re: [Help] Getting Players name from "player.cpp"

I'm coding a level mod smile
Almost everything done except account saving smile