AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   get user ip (https://forums.alliedmods.net/showthread.php?t=116511)

JeweL` 01-23-2010 16:26

get user ip
 
hey,

when i use "get_user_ip" it gets ip with port..

how i can get user ip without port?

xbatista 01-23-2010 16:29

Re: get user ip
 
Quote:

get_user_ip ( index, ip[], len, [ without_port ] )
Quote:

If without_port is set to 1, the port is not included in the string (defaults to 0).

wrecked_ 01-23-2010 16:31

Re: get user ip
 
What he said... :oops:

xbatista 01-23-2010 16:34

Re: get user ip
 
PHP Code:

new szIP[40];

get_user_ip idszIPcharsmax(szIP) , ); // Get player's IP 

It's without the port, the 4-th parameter is set to 1.

JeweL` 01-23-2010 16:37

Re: get user ip
 
thanks :)


All times are GMT -4. The time now is 07:18.

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