Raised This Month: $ Target: $400
 0% 

player country (geoip)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
LondoN
Senior Member
Join Date: Dec 2015
Location: Roman, Romania.
Old 12-20-2018 , 05:11   Re: player country (geoip)
Reply With Quote #7

public client_putinserver ( Player )
{
if ( is_user_bot ( Player ) || is_user_hltv ( Player ) )
return;

new Name [ 32 ], Country [ 32 ], IP [ 16 ];
get_user_name ( id, Name, charsmax ( Name ) );
get_user_ip ( id, IP, charsmax ( IP ), 1 );
geoip_country ( IP, Country, charsmax ( Country ) );

client_print ( 0, print_chat, "Player %s joined from %s", !strlen ( Country ) ? "N/A" : Country );
}

cam simplify the strlen.
__________________
LondoN is offline
 



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 07:30.


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