[FilterScript] Anti Ad filterscript - 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)
+--- Thread: [FilterScript] Anti Ad filterscript (
/showthread.php?tid=395482)
Anti Ad filterscript -
izeatfishz - 26.11.2012
Hello guys today i made a fast and easy Ad system like if some one puts an ip example /o Join today 127.0.0.1 it kicks them....so if you like press the rep butten also need a scripter? skype = dylan.shetler
Thanks! i hope you like this and enjoy.
Re: Anti Ad filterscript -
DoctorRapist - 26.11.2012
Nice copying a filterscript?
Code:
//Please do not remove the credit! Or I will cry :(
#include <a_samp>
new strR[255];
#define FILTERSCRIPT
#define VERSION "1.0"
public OnFilterScriptInit()
{
print("<<-------------------------------->>");
print(" Anti-advertisment ");
print(" Special Made By Dylan Green ");
print(" By: Dylan ");
print("-----------------------------------\n");
return 1;
}
public OnPlayerText(playerid, text[])
{
new is1=0;
new r=0;
while(strlen(text[is1]))
{
if('0'<=text[is1]<='9')
{
new is2=is1+1;
new p=0;
while(p==0)
{
if('0'<=text[is2]<='9'&&strlen(text[is2])) is2++;
else
{
strmid(strR[r],text,is1,is2,255);
if(strval(strR[r])<255) r++;
is1=is2;
p=1;
}
}
}
is1++;
}
if(r>=4)
{
new strMy[255];
new STRname[255];
GetPlayerName(playerid,STRname,255);
format(strMy, sizeof(strMy), " Suspicion advertising %s(%d): %s",STRname,playerid,text);
for(new j1=0; j1 < MAX_PLAYERS;j1++)
if(IsPlayerAdmin(j1)) SendClientMessage(j1, 0xFF0000FF, strMy);
for(new z=0;z<r;z++)
{
new pr2;
while((pr2=strfind(text,strR[z],true))!=-1) for(new i=pr2,j=pr2+strlen(strR[z]);i<j;i++) text[i]='*';
Kick(playerid);
}
}
return 1;
}
That's exactly what InfinityCOD wrote on his one!!
Please do not remove the credit!
Or I will cry
Re: Anti Ad filterscript -
nGen.SoNNy - 26.11.2012
Re: Anti Ad filterscript -
Edvin - 26.11.2012
This really works? I will try it, looks like it's better that my anti-ad system
Re: Anti Ad filterscript -
[WA]iRonan - 29.11.2012
Doesnt work.
Re: Anti Ad filterscript -
mosesgrr - 06.09.2013
you can create anti advertisme but blocked /b chat or /ochat
Re: Anti Ad filterscript -
RedSnow - 06.09.2013
Nice, but don't use define V 1.
Not useful at all.
Re: Anti Ad filterscript -
Gen3i - 24.10.2013
Simple and works great!
Re: Anti Ad filterscript -
trandiep1982 - 24.10.2013
Nice fs
Re: Anti Ad filterscript -
HeLiOn_PrImE - 24.10.2013
so what happens if I write 192 . 168 . 0 . 1 (space between), or 192/168/0/1, etc....?
They can pass this thing anytime. It's ineffective.