rdns function help!
#1

Hey guys, I wanted to ask you how do you call the function RDNS in the callback onplayerconnect!
The script is this:

public OnReverseDNS (ip [], host [] extra){
new strDNS[256];
printf("OnReverseDNS(% s,% s,% d)",ip,host,extra);
format(strDNS,sizeof(strDNS),"DNS: %s || IP: %s",host,ip);
for (new i = 0; i <MAX_SERVER_PLAYERS; i++){
if (IsPlayerConnected (i)){
if (PlayerInfo [i] [lAdmin]> = 1 | | IsPlayerAdmin (i)){
SendClientMessage (i, White, "NEW JOIN FROM:");
SendClientMessage (i, Grey, strDNS);}}}
return 1;
}
Reply


Messages In This Thread
rdns function help! - by NaTkAkN - 17.02.2012, 15:17
Re: rdns function help! - by KingHual - 17.02.2012, 15:36
Re: rdns function help! - by NaTkAkN - 17.02.2012, 15:45
Re: rdns function help! - by KingHual - 17.02.2012, 15:50
Re: rdns function help! - by Konstantinos - 17.02.2012, 15:56

Forum Jump:


Users browsing this thread: 1 Guest(s)