#1

can anyone gimme a rban cmd?
kthxbai
Reply
#2

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

Use this
Reply
#3

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

This is the request topic...
Reply
#5

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

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
Reply
#7

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)