Raised This Month: $ Target: $400
 0% 

ip address.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zombieplague
Veteran Member
Join Date: Apr 2009
Old 03-26-2011 , 10:50   ip address.
Reply With Quote #1

how do i get user ip address ??
zombieplague is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-26-2011 , 11:12   Re: ip address.
Reply With Quote #2

http://www.amxmodx.org/funcwiki.php?...r_ip&go=search
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 03-26-2011 , 12:45   Re: ip address.
Reply With Quote #3

Is it hard to look in a inc files?
.Dare Devil. is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-26-2011 , 17:22   Re: ip address.
Reply With Quote #4

Quote:
Originally Posted by .Dare Devil. View Post
Is it hard to look in a inc files?
Yes, apparently it is.
__________________
fysiks is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-26-2011 , 17:47   Re: ip address.
Reply With Quote #5

Quote:
Originally Posted by .Dare Devil. View Post
Is it hard to look in a inc files?
That's not fair, because all of the functions you get from the core (AMXModX) module aren't all in 1 include file.
If you see amxmodx.inc, you will see the multiple other includes.

A better response would've been, "Is it hard to look in the funcwiki?"
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
zombieplague
Veteran Member
Join Date: Apr 2009
Old 03-27-2011 , 09:28   Re: ip address.
Reply With Quote #6

i don't get this part

ip[], len, [ without_port ]

get_user_ip( id, %s, ?, 291.156.45: ) ?

i need help.
zombieplague is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-27-2011 , 09:57   Re: ip address.
Reply With Quote #7

without port:
PHP Code:
new szIp[10];
get_user_ip(idszIpcharsmax(szIp), 1); 
with port
PHP Code:
new szIp[10];
get_user_ip(idszIpcharsmax(szIp), 0); 
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.

Last edited by drekes; 03-27-2011 at 13:49.
drekes is offline
Send a message via MSN to drekes
zombieplague
Veteran Member
Join Date: Apr 2009
Old 03-27-2011 , 11:11   Re: ip address.
Reply With Quote #8

i can't seem to see the ip and it gave false ip.

PHP Code:
client_print0print_chat"( %d ) test ip."szIp 
and it show 2 digit only instead of 123.156.123.45:4545
zombieplague is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-27-2011 , 11:32   Re: ip address.
Reply With Quote #9

use %s
ip is in string format
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-27-2011 , 11:34   Re: ip address.
Reply With Quote #10

Quote:
Originally Posted by drekes View Post
without port:
PHP Code:
new szIp[10];
get_user_ip(idszIpcharsmax(szIp)); 
with port
PHP Code:
new szIp[10];
get_user_ip(idszIpcharsmax(szIp), 1); 
speak scientist/completelywrong
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 14:38.


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