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 ?