Raised This Month: $ Target: $400
 0% 

How to get server ip:port


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 09-03-2013 , 19:01   How to get server ip:port
Reply With Quote #1

How to get server ip:port?
__________________

Check out My Plugins:
qServerInfo ; ASKTAG
quark is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 09-03-2013 , 19:37   Re: How to get server ip:port
Reply With Quote #2

get_user_ip(0
__________________
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
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-03-2013 , 21:22   Re: How to get server ip:port
Reply With Quote #3

Seriously, people need to search.
__________________
fysiks is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 09-04-2013 , 02:45   Re: How to get server ip:port
Reply With Quote #4

PHP Code:
#include <amxmodx>

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

__________________
kiki33hun is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 09-04-2013 , 04:17   Re: How to get server ip:port
Reply With Quote #5

Code:
new address[32]; get_cvar_string("net_address", address, charsmax(address));
TheDS1337 is offline
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 09-04-2013 , 05:24   Re: How to get server ip:port
Reply With Quote #6

Quote:
Originally Posted by fysiks View Post
Seriously, people need to search.
All threads with good titles for this , gives 404
__________________

Check out My Plugins:
qServerInfo ; ASKTAG
quark is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 09-04-2013 , 05:47   Re: How to get server ip:port
Reply With Quote #7

Quote:
Originally Posted by quark View Post
All threads with good titles for this , gives 404
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.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet 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 18:59.


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