AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to get server ip:port (https://forums.alliedmods.net/showthread.php?t=225367)

quark 09-03-2013 19:01

How to get server ip:port
 
How to get server ip:port?

YamiKaitou 09-03-2013 19:37

Re: How to get server ip:port
 
get_user_ip(0

fysiks 09-03-2013 21:22

Re: How to get server ip:port
 
Seriously, people need to search.

kiki33hun 09-04-2013 02:45

Re: How to get server ip:port
 
PHP Code:

#include <amxmodx>

public plugin_init()
{
    new 
ip[64];
    
get_user_ip(0ip630);
    
log_amx("%s"ip)



TheDS1337 09-04-2013 04:17

Re: How to get server ip:port
 
Code:
new address[32]; get_cvar_string("net_address", address, charsmax(address));

quark 09-04-2013 05:24

Re: How to get server ip:port
 
Quote:

Originally Posted by fysiks (Post 2027959)
Seriously, people need to search.

All threads with good titles for this , gives 404 :3

hornet 09-04-2013 05:47

Re: How to get server ip:port
 
Quote:

Originally Posted by quark (Post 2028139)
All threads with good titles for this , gives 404 :3

https://forums.alliedmods.net/showthread.php?t=162561
https://forums.alliedmods.net/showthread.php?p=1365625
https://forums.alliedmods.net/showthread.php?t=224189

I could keep going but I'm going to assume that you've got it.


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

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