Server Advertisement.
#21

Me and my admins ban them immediately
Reply
#22

Quote:
Originally Posted by CalgonX
Agreed. I ban them too, as most of them are completely retarded spammers. Though I made a stock to check if an IP is mentioned in a message:

pawn Code:
stock AdvertisementCheck( string[ ] )
{
new count;
   
for( new i = 0; i < strlen( string ); i++)
{
if( strfind( string[ i ], ".", true ) )
{
count++;
}
}
 
if( count == 3 )
{
if( strfind( string, ":", true ) )
{
return true;
}
else
{
return false;
}
}
else
{
return false;
}
}
Don't work AdvertisementCheck(text); in OnPlayerText
Reply
#23

Anybody tested my function (http://forum.sa-mp.com/index.php?top...5774#msg895774)?

It's obivously that CalgonX's version won't work.
Reply
#24

your version
Quote:

error 029: invalid expression, assumed zero
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

on
Code:
 else if(text[x] == ':' && IsNumeric(text[x+1]) && && IsNumeric(text[x+2]) && IsNumeric(text[x+3]) && IsNumeric(text[x+4])) count2 = true;
Reply
#25

Probably fixed now.

EDIT: Nah it wouldn't work either. Someone should put some effort to make precise IP searcher.
Reply
#26

Quote:
Originally Posted by $ЂЯĢ
Probably fixed now.

EDIT: Nah it wouldn't work either. Someone should put some effort to make precise IP searcher.
I was going to reply to state that yours didn't work either.
Reply
#27

Someone should make a function that replaces IP's with your server IP.
Reply
#28

Quote:
Originally Posted by CalgonX
Agreed. I ban them too, as most of them are completely retarded spammers. Though I made a stock to check if an IP is mentioned in a message:

pawn Code:
stock AdvertisementCheck( string[ ] )
{
new count;
   
for( new i = 0; i < strlen( string ); i++)
{
if( strfind( string[ i ], ".", true ) )
{
count++;
}
}
 
if( count == 3 )
{
if( strfind( string, ":", true ) )
{
return true;
}
else
{
return false;
}
}
else
{
return false;
}
}
you didnt make this, this was made ages ago i remember when i first saw it.
Reply
#29

Dont work :O
Code:
public OnPlayerText(playerid, text[])
{

HasTextIp(text);

	return 1;
}
Reply
#30

Quote:
Originally Posted by Shady91
Quote:
Originally Posted by CalgonX
Agreed. I ban them too, as most of them are completely retarded spammers. Though I made a stock to check if an IP is mentioned in a message:

pawn Code:
stock AdvertisementCheck( string[ ] )
{
new count;
   
for( new i = 0; i < strlen( string ); i++)
{
if( strfind( string[ i ], ".", true ) )
{
count++;
}
}
 
if( count == 3 )
{
if( strfind( string, ":", true ) )
{
return true;
}
else
{
return false;
}
}
else
{
return false;
}
}
you didnt make this, this was made ages ago i remember when i first saw it.
No, I made it. But I used the same stock name as the one in Junkbuster, theirs replaced URLs too, mine just finds an IP + I updated mine (but it will return 1 if they use text, I need to add a numeric thingy):

pawn Code:
stock AdvertisementCheck( string[ ] )
{
    new count, tmc;

  for( new i = 0; i < strlen( string ); i++)
  {
    if( ! strfind( string[ i ], ".", false ) )
    {
      count++;
    }
    if( ! strfind( string[ i ], ":", false ) )
    {
      tmc++;
    }
  }

  if(count == 3)
  {
    if(tmc == 1)
    {
            return true;
        }
        else
        {
          return false;
        }
  }
  else
    {
        return false;
    }
}
Reply
#31

I agree with Garsino. They think they'll get players to their server by advertising and since its a new server. I range ban them.. Hate 'em, same as cheaters.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)