Raised This Month: $ Target: $400
 0% 

Help / Support Help !!!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
med
Member
Join Date: Mar 2013
Old 03-23-2013 , 09:48   Help !!!
Reply With Quote #1

ShowSyncHudMsg(ID_SHOWHUD, g_MsgSync2, "%L %s^nHP: %d - %L %s - %L %d - %L %d", ID_SHOWHUD, "SPECTATING", g_playername[id],pev(id, pev_health), ID_SHOWHUD, "CLASS_CLASS", class, ID_SHOWHUD, "AMMO_PACKS1", g_ammopacks[id], ID_SHOWHUD, "ARMOR", pev(id, pev_armorvalue))


How add country/city on that code after #include geoip
__________________
med is offline
Send a message via Skype™ to med
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 03-23-2013 , 10:10   Re: Help !!!
Reply With Quote #2

Code:
static szIP[ 16 ], szCountry[ 32 ], szCity[ 32 ];
get_user_ip( id, szIP, charsmax( szIP ) );
geoip_country( szIP, szCountry, charsmax( szCountry ) );
geoip_city( szIP, szCity, charsmax( szCity ) );

ShowSyncHudMsg(ID_SHOWHUD, g_MsgSync2, "%L %s^nHP: %d - %L %s - %L %d - %L %d^nCountry: %s - City: %s", ID_SHOWHUD, "SPECTATING", g_playername[id],pev(id, pev_health), ID_SHOWHUD, "CLASS_CLASS", class, ID_SHOWHUD, "AMMO_PACKS1", g_ammopacks[id], ID_SHOWHUD, "ARMOR", pev(id, pev_armorvalue), szCountry, szCity)
TheDS1337 is offline
med
Member
Join Date: Mar 2013
Old 03-23-2013 , 10:25   Re: Help !!!
Reply With Quote #3

Thx
__________________
med is offline
Send a message via Skype™ to med
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 03-23-2013 , 11:41   Re: Help !!!
Reply With Quote #4

You're welcome
TheDS1337 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:52.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode