Topic: [Help] Getting Players name from "player.cpp"
Well, the title says it all. And sorry for pestering you once again
I want to add code to player.cpp to get a players name.
Thanks in advance,
Ikaron
You are not logged in. Please login or register.
Teeworlds Forum → Modifications → [Help] Getting Players name from "player.cpp"
Well, the title says it all. And sorry for pestering you once again
I want to add code to player.cpp to get a players name.
Thanks in advance,
Ikaron
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)
Thanks ^^
I don't know what I would do without you
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.
Greetings,
Mo(2)
I'm coding a level mod
Almost everything done except account saving
Teeworlds Forum → Modifications → [Help] Getting Players name from "player.cpp"
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 3 official extensions. Copyright © 2003–2009 PunBB.