Anti IP, .com, .info & .org
#1

Hi can anyone give me an idea on how to make an anti IP and .com...
I tried to search but failed
Reply
#2

You could block messages sent by players that have .com's, .info's, etc. Here's an example.

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(strfind(text,"rcon",true)!= -1||strfind(text,".com",true)!= -1||strfind(text,".org",true)!= -1)
    {
        return 0;
    }
    return 1;
}
Reply
#3

TY, but what about IP's I use *.*.*.*?
Reply
#4

That would be a little bit more complicated. There might be some example code for it under script snippets.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)