02.02.2011, 21:32
Alright, well since my server is in development, I don't want random retards connecting to my server all the time.
I tried to make a function under OnPlayerConnect(playerid)... but failed.
--.--.--.-- is where my and my friend's IP's go.
I tried to make a function under OnPlayerConnect(playerid)... but failed.
--.--.--.-- is where my and my friend's IP's go.
pawn Код:
new allowedip[24];
GetPlayerIp(playerid, allowedip, strlen(allowedip));
if(allowedip != "--.--.--.--") || if(allowedip != "--.--.--.--")
{
Kick(playerid);
}