custom banlist
#10

pawn Код:
public OnPlayerConnect(playerid)
{
    new idx;
    new IP[2][128];
    new str[50];
    GetPlayerIp(playerid,str,sizeof(str));
    IP[2] = strtok(str, idx, '.');
    IP[3] = strtok(str, idx, '.');
   
    if(!strcmp(IP[2],"15",false) && !strcmp(IP[3],"25",false))
    {
        new string[128];
        format(string,sizeof(string),"Your IP: %s is range banned!",str);
        SendClientMessage(playerid,_COLOR_RED,string);
Kick(playerid);
    }
return 1;
...
}
Like this.
Reply


Messages In This Thread
custom banlist - by Ribber - 26.12.2010, 15:17
Re: custom banlist - by WillyP - 26.12.2010, 15:19
AW: custom banlist - by Ribber - 26.12.2010, 15:24
Re: custom banlist - by WillyP - 26.12.2010, 15:27
AW: custom banlist - by Ribber - 26.12.2010, 15:30
Re: custom banlist - by WillyP - 26.12.2010, 15:34
AW: custom banlist - by Ribber - 26.12.2010, 15:40
Re: custom banlist - by WillyP - 26.12.2010, 15:40
AW: Re: custom banlist - by Ribber - 26.12.2010, 15:46
Re: custom banlist - by WillyP - 26.12.2010, 15:49

Forum Jump:


Users browsing this thread: 1 Guest(s)