AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Static IP (https://forums.alliedmods.net/showthread.php?t=140659)

Vechta 10-15-2010 07:22

Static IP
 
Possible to get there with Amxx plugin?

Print in chat or console?

SpeeDeeR 10-15-2010 08:22

Re: Static IP
 
Get where?
Print what?

Vechta 10-15-2010 08:31

Re: Static IP
 
Possible to get static IP from player* :D and maybe print the static ip then in console / chat

minimiller 10-15-2010 08:35

Re: Static IP
 
get_user_ip();

Vechta 10-15-2010 08:39

Re: Static IP
 
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


Bugsy 10-15-2010 09:11

Re: Static IP
 
Explain how it would be possible to differentiate between a static and dynamic ip.

Vechta 10-15-2010 09:18

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

zirualas 10-15-2010 09:53

Re: Static IP
 
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.

ARES[ro] 10-15-2010 09:57

Re: Static IP
 
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...

Sylwester 10-15-2010 10:00

Re: Static IP
 
Quote:

Originally Posted by zirualas (Post 1325353)
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.


All times are GMT -4. The time now is 10:27.

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