Server IP
hi
How i can read server ip? I want set the Server IP in a Hud, but i dont want use hardcode because i have more then one server, and is better if i can use same plugin for all servers |
Re: Server IP
get_user_ip(0, ...
or get the "ip" cvar (I think it's a cvar) |
Re: Server IP
"ip" cvar can be false.
|
Re: Server IP
net_address..
EDIT: PHP Code:
|
Re: Server IP
Thanks all.
But fysiks are you sure get_user_ip(0,...) will show server ip? |
Re: Server IP
Quote:
Code:
|
Re: Server IP
get the fuc*ing net_address! its always shows a real IP..
the ip cvar its only works if used in command line of HLDS like: ./hlds_run -game cstrike +ip xxx.xxx.xxx.xxx Ps. For get a: xxx.xxx.xxx.xxx:27015 for example, you need to get 2 cvars: ip cvar and port cvar And later use in a string or in a format() funcions... net_address its only use one cvar :) >> Quote:
Send-me any plugin with using this and i will be breaking whole file using a fake cvars.. |
Re: Server IP
Quote:
|
| All times are GMT -4. The time now is 10:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.