Topic: GetClientCountry
Hello,
Is there a Function called GetClientCountry(ClientID)?
And when, how can I look for a Players Country in Gamecontect.cpp?
THANKS
You are not logged in. Please login or register.
Teeworlds Forum → Development → GetClientCountry
Hello,
Is there a Function called GetClientCountry(ClientID)?
And when, how can I look for a Players Country in Gamecontect.cpp?
THANKS
Hi,
A quick research in your src folder would give you the answer (Ctrl+F -> GetClientCountry).
Try to look in the player CClientData class:
struct CClientData
{
int m_UseCustomColor;
int m_ColorBody;
int m_ColorFeet;
char m_aName[MAX_NAME_LENGTH];
char m_aClan[MAX_CLAN_LENGTH];
int m_Country; // < There you gooooo
This contains the info on the player's selected country code
"m_apPlayers[ClientID]->m_Country" - What's Wrong With That?
"m_apPlayers[ClientID]->m_Country" - What's Wrong With That?
Nothing Is Wrong With That.
Wrong object. It's in src/engine/server.h
Teeworlds Forum → Development → GetClientCountry
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 3 official extensions. Copyright © 2003–2009 PunBB.