SA-MP Forums Archive
help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help (/showthread.php?tid=185194)



help - dark_clown - 23.10.2010

can anyone gimme a rban cmd?
kthxbai


Re: help - TouR - 23.10.2010

https://sampforum.blast.hk/showthread.php?tid=118885

Use this


Re: help - dark_clown - 23.10.2010

Quote:
Originally Posted by tour15
Посмотреть сообщение
?


Re: help - TouR - 23.10.2010

This is the request topic...


Re: help - dark_clown - 23.10.2010

Quote:
Originally Posted by tour15
Посмотреть сообщение
This is the request topic...
what do u want me to do -.-?


Re: help - TouR - 23.10.2010

Quote:
Originally Posted by dark_clown
Посмотреть сообщение
can anyone gimme a rban cmd?
kthxbai
You just requested a rban command.. This is where you should post


Re: help - Las Venturas CNR - 23.10.2010

Function:

pawn Код:
stock RangeBan(playerid)
{
    if(!IsPlayerConnected(playerid)) return 0;
    new total[16],ip[16],string[100];
    GetPlayerIp(playerid, ip, sizeof(ip));
    new cnt;
    for(new i=0;i<strlen(ip);i++)
    {
        if(ip[i] == '.') cnt++;
        if(cnt == 2)
        {
            i++;
            strdel(ip, i, strlen(ip));
            format(total,sizeof(total),"%s*.*",ip);
        }
    }
    format(string, sizeof(string),"banip %s",total);
    SendRconCommand(string);
    return 1;
}