how do i look up ips ?
we have the get_user_ip(id,[...]) etc
how can i lookup the address like the command host does in linux or nslookup in windows ? |
Re: how do i look up ips ?
you mean get_user_ip(index,ip[],len, without_port = 0);
example new ip[32] get_user_ip(id ,ip,32, 0); |
Re: how do i look up ips ?
Code:
|
Re: how do i look up ips ?
No, he means the full version. (Like you see in IRC) with the host and whatnot.
The answer to that is that it can't be done. You can only get the IP. |
Re: how do i look up ips ?
thanx xanimos.
note: some ppl just don't like reading the fist post :) now comes *THE* part has it been done before using custom made modules ? :) (ofc now everybody reads this and everybody will tell me to search-> http://forums.alliedmods.net/showthr...ostname+lookup lovely ain't it ?) |
Re: how do i look up ips ?
I think the best you can do is get the country the IP address is from, using the GeoIP module.
|
Re: how do i look up ips ?
well i've been through parts of the sockets module source code but i don't understand it. not yet anyway
this however rang a bell : Code:
// Test the hostname, and resolve if neededCode:
just so that anyone wonders what's all this fuss about ? ppl often get banned when playing from icaffes because of - cheating -. now icaffe owners don't afford to get their icaffe accounts vac-banned so obviousely there's no cheat, it just so happens that the player has good skills and with the right hardware he's simply owning. i've modified enough to show a console-outpout containing the user the ip and his access, but if i had a "hostname" ie pc55.l337-caffe.city.providername.com standing after each user name then well.. he/she wouldn't get banned for cheating now would he/she ? :) |
Re: how do i look up ips ?
actually i've seen a server with announcing joinging steam + ip addresses in the HUD, only thing was different that it showed hostnames instead of just IP addresses
wonder what was that server useing to get such a result is there a public plugin for this nowadays? |
| All times are GMT -4. The time now is 09:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.