SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 07/11/2017, 05:21 PM   #21
Kar
High-roller
 
Kar's Avatar
 
Join Date: May 2010
Location: Black Asylum
Posts: 3,155
Reputation: 450
Default Re: Anti Advertising

Quote:
Originally Posted by Zorono View Post
found a new bug or idk
why does it counts this text 'Let's goto ******** and chat there...' as an ADV it kicks me multiple times with false reasons .... and iam not using any another Includes for ADV detect... please some bug fixs
No it does not? I tested it...

Quote:
Originally Posted by Dayrion View Post
Code:
I sell 2. mp5 for 6.000$, 3uzi for 4.000$, 4mp5 for 200$
Detect an IP. I set fixedSeparation to true, IP become easily undetectable like
Code:
127.0.0 .1
Because... fixedSeparation is set to true!

It works fine. You guys just are expecting too much from a pawn anti-advertising include.

Use regex for better results.

Quote:
Originally Posted by JoaoBorges View Post
The include don't work, bro!
If you say so.

Quote:
Originally Posted by Yousha View Post
Code:
public OnPlayerText(playerid, text[])
{
	if (stringContainsIP(text, false, true))
	{
default.pwn(1927) : error 047: array sizes do not match, or destination array is too small


Also links in your Github Repository must be updated.
Fixed.

Also you gotta set a string length.

Last edited by Kar; 12/11/2017 at 08:06 PM.
Kar is offline   Reply With Quote
Old 13/11/2017, 08:02 AM   #22
Ritzy
High-roller
 
Ritzy's Avatar
 
Join Date: Jun 2014
Posts: 1,532
Reputation: 135
Default Re: Anti Advertising

This example won't work -
Code:
public OnPlayerText(playerid, text[])
{
	if(stringContainsIP(text)) {
		SendClientMessage(playerid, "Text blocked for advertising.");
		return 0;
	}
	return 1;
}


Code:
SendClientMessage(playerid, -1, "Text blocked for advertising.");
Good job with the include though, regex usually gives run time error 20 and crashes server randomly.
Ritzy is offline   Reply With Quote
Old 13/11/2017, 12:46 PM   #23
Kar
High-roller
 
Kar's Avatar
 
Join Date: May 2010
Location: Black Asylum
Posts: 3,155
Reputation: 450
Default Re: Anti Advertising

Fine, I've updated the include to remove the string length for peope who don't know how to remove it lol.
Kar is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Anti-Advertising Biggy54 Scripting Help 3 04/09/2014 10:27 AM
[FilterScript] [NEW] Anti swear and Anti Advertising [BLOCKS WORDS] Dopefull Filterscripts 24 10/10/2013 12:48 PM
[HELP]Anti-IP advertising Nenad Help Archive 14 06/05/2011 06:19 PM
Anti Advertising bajskorv123 Help Archive 6 21/04/2011 10:53 AM


All times are GMT. The time now is 08:36 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.