SA-MP Forums Archive
SA-MP Server ban Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: SA-MP Server ban Help (/showthread.php?tid=456516)



SA-MP Server ban Help - Xtream - 06.08.2013

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!


Re: SA-MP Server ban Help - FaceTutorialz - 06.08.2013

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.


Re: SA-MP Server ban Help - Red_Dragon. - 07.08.2013

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[])



Re: SA-MP Server ban Help - Xtream - 07.08.2013

Ok tnx


Re: SA-MP Server ban Help - TheCrescendo - 07.08.2013

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