AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Get server ip (https://forums.alliedmods.net/showthread.php?t=86167)

Speed! 02-21-2009 20:39

Get server ip
 
easy, but idk
search was useless
i wanna get the IP of the server where the plugin is running

Exolent[jNr] 02-21-2009 20:42

Re: Get server ip
 
get_user_ip(0, ...);

TheRadiance 02-22-2009 03:09

Re: Get server ip
 
or:
PHP Code:

new ip[64];
get_cvar_string("ip"ipsizeof (ip) - 1); 


Owyn 02-22-2009 05:03

Re: Get server ip
 
why won't it return local ip ?

Exolent[jNr] 02-22-2009 12:29

Re: Get server ip
 
get_user_ip(is_dedicated_server() ? 0 : 1, ...);


All times are GMT -4. The time now is 17:01.

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