Raised This Month: $ Target: $400
 0% 

Is it possible to get serverip ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-03-2010 , 09:41   Re: Is it possible to get serverip ?
Reply With Quote #1

get_user_ip(0, IP, charsmax(IP), 1);

Moved to Scripting Help
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 08-03-2010 , 10:27   Re: Is it possible to get serverip ?
Reply With Quote #2

get_user_ip() is for the client.

He wants to use it for get the server ip.
__________________
You can do anything you set your mind to, man.

Devil259 is offline
vL.
Senior Member
Join Date: Aug 2009
Location: Estonia
Old 08-03-2010 , 11:04   Re: Is it possible to get serverip ?
Reply With Quote #3

Quote:
Originally Posted by Devil259 View Post
get_user_ip() is for the client.

He wants to use it for get the server ip.
get_user_ip(0) returns LAN IP

also, but how to get server name?
vL. is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 08-03-2010 , 11:17   Re: Is it possible to get serverip ?
Reply With Quote #4

Quote:
Originally Posted by vL. View Post
get_user_ip(0) returns LAN IP
Ah ok, sorry

Quote:
Originally Posted by vL. View Post
also, but how to get server name?
PHP Code:
new hostname128 ]
 
get_cvar_string"hostname" hostname charsmaxhostname ) ) 
__________________
You can do anything you set your mind to, man.


Last edited by Devil259; 08-03-2010 at 11:20.
Devil259 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 00:07.


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