Sick of random noobs...
#1

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.

pawn Код:
new allowedip[24];
    GetPlayerIp(playerid, allowedip, strlen(allowedip));
    if(allowedip != "--.--.--.--") || if(allowedip != "--.--.--.--")
    {
        Kick(playerid);
    }
Reply
#2

It's easier to just set a password.
Reply
#3

WOW. I'm really stupid today... honestly didn't even think of that. Thanks.
Reply
#4

Haha, no problem, matey. :3
Reply
#5

use strcmp to compare strings
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)