Raised This Month: $ Target: $400
 0% 

Static IP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Vechta
Veteran Member
Join Date: Jun 2010
Old 10-15-2010 , 07:22   Static IP
Reply With Quote #1

Possible to get there with Amxx plugin?

Print in chat or console?
Vechta is offline
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 10-15-2010 , 08:22   Re: Static IP
Reply With Quote #2

Get where?
Print what?
SpeeDeeR is offline
Vechta
Veteran Member
Join Date: Jun 2010
Old 10-15-2010 , 08:31   Re: Static IP
Reply With Quote #3

Possible to get static IP from player* and maybe print the static ip then in console / chat
Vechta is offline
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 10-15-2010 , 08:35   Re: Static IP
Reply With Quote #4

get_user_ip();
__________________
minimiller is offline
Send a message via MSN to minimiller
Vechta
Veteran Member
Join Date: Jun 2010
Old 10-15-2010 , 08:39   Re: Static IP
Reply With Quote #5

It gets only dynamic IP..

This was a test and it print only dynamic

PHP Code:
#include <amxmodx>

new szIP[50]

public 
plugin_init() 
    
register_clcmd("say ip""print_ip")
    
public 
print_ip(id)
{
    
get_user_ip(idszIP491)
    
client_print(idprint_chat"Your static IP is: ^"%s^""szIP
Vechta is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-15-2010 , 09:11   Re: Static IP
Reply With Quote #6

Explain how it would be possible to differentiate between a static and dynamic ip.
__________________
Bugsy is offline
Vechta
Veteran Member
Join Date: Jun 2010
Old 10-15-2010 , 09:18   Re: Static IP
Reply With Quote #7

Dynamic IP: Changes every 24 hours.
Static IP: Never changes

Last edited by Vechta; 10-15-2010 at 09:48.
Vechta is offline
zirualas
Senior Member
Join Date: Jun 2010
Location: Lithuania
Old 10-15-2010 , 09:53   Re: Static IP
Reply With Quote #8

Yes, then you looking on website your ip it's show dynamic ip, but you can see static ip only on start>run>cmd>ipconfig/all
There is static ip, if you wanna vip you need add to user.ini static ip not dynamic.
__________________
Still studying scripting...
zirualas is offline
Send a message via Skype™ to zirualas
ARES[ro]
Senior Member
Join Date: Apr 2010
Old 10-15-2010 , 09:57   Re: Static IP
Reply With Quote #9

well use steamid okay? unless ur in non-steam
and also its impossible to have a static ip if its dynamic lol u can only have 1 of them
u can also have a LAN ip but thats only in ur local network
dynamic ip cannot be changed to static its ur ISP that sets those up...
__________________
okay

Last edited by ARES[ro]; 10-15-2010 at 10:00.
ARES[ro] is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 10-15-2010 , 10:00   Re: Static IP
Reply With Quote #10

Quote:
Originally Posted by zirualas View Post
Yes, then you looking on website your ip it's show dynamic ip, but you can see static ip only on start>run>cmd>ipconfig/all
There is static ip, if you wanna vip you need add to user.ini static ip not dynamic.
That's not static ip, but internal ip and you can't get it with amxx. Server (amxx) can only see external ip.
If you want to add vip then use steamid.
__________________
Impossible is Nothing
Sylwester is offline
Reply


Thread Tools
Display Modes

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 10:27.


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