Pm advertisment
#1

Hi Guys,
i was searching pm advertisment kick for 2 day i didnt get.its there to attak pm advertiser to kick for pm advertisment
Reply
#2

there is an example in lux admin script... anti advertisement script
Reply
#3

i am using lux admin but i didnt find it we can advertise in pm
Reply
#4

You can use this stock (I did not make it).

pawn Код:
stock detectIP(text[])
{
    new
        dotCount
    ;
    for(new i; text[i] != 0; ++i)
    {
        if('0' <= text[i] <= '9')
        {
            do
            {
                if(text[i] == '.') ++dotCount;
                ++i;
            }
            while(('0' <= text[i] <= '9') || text[i] == '.' || text[i] == ':');
        }
        else dotCount = -1;
    }
    return (dotCount > 2);
}
Then you can use:
pawn Код:
if(detectIP(sometext)) {
    // If there's an IP in the text
}
else {
    // No IP in the text
}
Reply
#5

Even im facing the same problem,i tried many anti advertisements but there is no anti advertisment for commandtext(in my search) except Junkbuster.
But JunkBuster can't be compiled in my gm so i also need a good anti advertise.
Please help me also.

Edit:Fixed!
Reply
#6

Quote:
Originally Posted by [xB]Lordz
Посмотреть сообщение
Even im facing the same problem,i tried many anti advertisements but there is no anti advertisment for commandtext(in my search) except Junkbuster.
But JunkBuster can't be compiled in my gm so i also need a good anti advertise.
Please help me also.
You can use the stock I posted anywhere you want.
Reply
#7

Thanks but will that function help to protect against pm advertisement.
Example:
/pm 15.25.35....
Reply
#8

So you use the function in your PM command right?
Reply
#9

But undefined symbol sometext, how to fix this?
Reply
#10

Quote:
Originally Posted by Mean
Посмотреть сообщение
You can use this stock (I did not make it).

pawn Код:
stock detectIP(text[])
{
    new
        dotCount
    ;
    for(new i; text[i] != 0; ++i)
    {
        if('0' <= text[i] <= '9')
        {
            do
            {
                if(text[i] == '.') ++dotCount;
                ++i;
            }
            while(('0' <= text[i] <= '9') || text[i] == '.' || text[i] == ':');
        }
        else dotCount = -1;
    }
    return (dotCount > 2);
}
Then you can use:
pawn Код:
if(detectIP(sometext)) {
    // If there's an IP in the text
}
else {
    // No IP in the text
}
You said-----------------------------------------------------
Then you can use:
pawn Код:
if(detectIP(sometext)) {
    // If there's an IP in the text
}
else {
    // No IP in the text
}
Where i should put this codes
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)