SA-MP Server ban Help
#1

Hello i have one question!
How i can make to server auto ban's who post some ip like samp server ect...
My Server is on linux runnung from Shell!

Help me pliss Tnx!
Reply
#2

There is a Search button, far in the mountains of the forum. Use it wisely, it may lead you to the problems you need solving.
Reply
#3

Place this code
pawn Код:
//=========================[Anti-server advertisement]==========================
    new dotcount =0;
    new coloncount =0;
    for(new a=1; a <strlen(cmdtext); a++)
    {
        if(cmdtext[a] == ':')
        {
            coloncount ++;
        }
        else
        if(cmdtext[a] == '.')
        {
            dotcount ++;
        }
    }
    if(dotcount == 3 && coloncount == 1 && PlayerInfo[playerid][pAdmin] < 1)
    {
        SendClientMessage(playerid, COLOR_GREEN, "You are not allowed to advertise other servers here.");
        return 1;
    }
under this callback
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
Reply
#4

Ok tnx
Reply
#5

You should really search before making a new post. x) All you had to do was to type that in search, and you would get the answer. :3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)