Server Ip Detector
#1

I have a script which detects ip of the players but its like that :
Код:
$oulKiLLeR=192.168.1.1
Devil=192.168.1.1
aBut=192.168.1.1
Jaycee_Joseph=192.168.1.1
Metal=192.168.1.1
4Bit_GeT=192.168.1.1
Gangman=192.168.1.1
Sage=192.168.1.1
avert=192.168.1.1
flickz.=192.168.1.1
nghiabacs2=192.168.1.1
Saymen=192.168.1.1
Yash=192.168.1.1
zaril=192.168.1.1
Raymond=192.168.1.1
So if i ip ban one player so all will be banned including me
Reply
#2

100% yes.

How your all player IP same? Maybe there a script problem. check it
Reply
#3

I use ZeroAdmin script but can anyone help me by fixing it?this function is from zeroadmin.
Reply
#4

Sorry. I don't have idea about the ZeroAdmin thing. sorry
Reply
#5

192.168.1.1 is not an IP... it is your router address, or more specifically, your IPv4 address or localhost.

192.168.1.1 is NOT from GetPlayerIp. Your code is wrong.
Reply
#6

pawn Код:
stock ReturnPlayerIP(playerid)
{
      new pIP[32];
      GetPlayerIp(playerid, pIP, sizeof(pIP));
      return pIP;
}
Returns the IP of a player as a string. As Threshold stated, GetPlayerIP doesn't return the router address, ever.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)