Raised This Month: $ Target: $400
 0% 

how do i look up ips ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
djh
Member
Join Date: Nov 2004
Old 10-12-2006 , 16:49   Re: how do i look up ips ?
Reply With Quote #7

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 needed
    if ((addr = inet_addr(hostname)) != INADDR_NONE) {
        // seems like hostname is a numeric ip, so put it into the structure
        memcpy( (char *)&server.sin_addr, &addr, sizeof(addr));
    }
    else {
        // hostname is a domain, so resolve it to an ip
        host_info = gethostbyname(hostname);
        if (host_info == NULL) {
[...]
as i said i don't understand much and i don't have a compiler to compile modules so maybe in the next relase you guys will add a function in the sockets module so that by adding "#include <sockets>" in my sma file i will be able to use let's say
Code:
new ip[32],hname[64] get_user_ip(id,ip,32,0) get_hostname(ip,hname,63)
etc etc one way or another it will be done, because i have friends that are well-versed in coding, but of course it's better to have it built-in amxx so that everyone can use it whenever they wish

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 ?
djh is offline
 



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 09:42.


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