Raised This Month: $ Target: $400
 0% 

Get server ip


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Speed!
BANNED
Join Date: Jan 2009
Old 02-21-2009 , 20:39   Get server ip
Reply With Quote #1

easy, but idk
search was useless
i wanna get the IP of the server where the plugin is running
Speed! is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-21-2009 , 20:42   Re: Get server ip
Reply With Quote #2

get_user_ip(0, ...);
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 02-22-2009 , 03:09   Re: Get server ip
Reply With Quote #3

or:
PHP Code:
new ip[64];
get_cvar_string("ip"ipsizeof (ip) - 1); 
TheRadiance is offline
Send a message via ICQ to TheRadiance
Owyn
Veteran Member
Join Date: Nov 2007
Old 02-22-2009 , 05:03   Re: Get server ip
Reply With Quote #4

why won't it return local ip ?
Owyn is offline
Send a message via ICQ to Owyn
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-22-2009 , 12:29   Re: Get server ip
Reply With Quote #5

get_user_ip(is_dedicated_server() ? 0 : 1, ...);
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 17:01.


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