Server Ip Detector - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Server Ip Detector (
/showthread.php?tid=573761)
Server Ip Detector -
MouizGhouri - 10.05.2015
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
Re: Server Ip Detector -
SoFahim - 10.05.2015
100% yes.
How your all player IP same? Maybe there a script problem. check it
Re: Server Ip Detector -
MouizGhouri - 10.05.2015
I use ZeroAdmin script but can anyone help me by fixing it?this function is from zeroadmin.
Re: Server Ip Detector -
SoFahim - 10.05.2015
Sorry. I don't have idea about the ZeroAdmin thing. sorry
Re: Server Ip Detector -
Threshold - 10.05.2015
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.
Re: Server Ip Detector -
Abagail - 10.05.2015
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.