Re: Server Advertisement. -
Jakku - 01.02.2010
Me and my admins ban them immediately
Re: Server Advertisement. -
CrunkBankS - 01.02.2010
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
Re: Server Advertisement. -
Sergei - 01.02.2010
Anybody tested my function (
http://forum.sa-mp.com/index.php?top...5774#msg895774)?
It's obivously that CalgonX's version won't work.
Re: Server Advertisement. -
CrunkBankS - 01.02.2010
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;
Re: Server Advertisement. -
Sergei - 01.02.2010
Probably fixed now.
EDIT: Nah it wouldn't work either. Someone should put some effort to make precise IP searcher.
Re: Server Advertisement. -
Calgon - 01.02.2010
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.
Re: Server Advertisement. - [03]Garsino - 01.02.2010
Someone should make a function that replaces IP's with your server IP.
Re: Server Advertisement. -
shady91 - 02.02.2010
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.
Re: Server Advertisement. -
CrunkBankS - 02.02.2010
Dont work :O
Code:
public OnPlayerText(playerid, text[])
{
HasTextIp(text);
return 1;
}
Re: Server Advertisement. -
Calgon - 07.02.2010
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;
}
}
Re: Server Advertisement. -
Brandon_Brown - 19.03.2010
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.