[Include] Anti Advertising - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Anti Advertising (
/showthread.php?tid=604086)
Re: Anti Advertising -
Kar - 07.11.2017
Quote:
Originally Posted by Zorono
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
Код:
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
|
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
The include don't work, bro!
|
If you say so.
Quote:
Originally Posted by Yousha
Код:
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.
Re: Anti Advertising -
Ritzy2K - 13.11.2017
This example won't work -
Код:
public OnPlayerText(playerid, text[])
{
if(stringContainsIP(text)) {
SendClientMessage(playerid, "Text blocked for advertising.");
return 0;
}
return 1;
}
Код:
SendClientMessage(playerid, -1, "Text blocked for advertising.");
Good job with the include though, regex usually gives run time error 20 and crashes server randomly.
Re: Anti Advertising -
Kar - 13.11.2017
Fine, I've updated the include to remove the string length for peope who don't know how to remove it lol.