SA-MP Forums Archive
[FilterScript] Anti-SPAM (URL/Server IP) - 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-SPAM (URL/Server IP) (/showthread.php?tid=248976)



Anti-SPAM (URL/Server IP) - GROVE4L - 16.04.2011

||- Informacion -||

With this FS you can detected SPAM in your own servers. More info in below images.


||- Screens -||

Normal SPAM.



Other SPAM.



Note: This images has been modification from the original FS. MOre info in the "Example"

||- Example -||

pawn Code:
public OnPlayerText(playerid, text[])
{
    if(DetectarSpam(text))
    {
        MensajeError(playerid,"No esta permitido el SPAM."); //Message to SPAM Player
        SendClientMessage(playerid,0xFF0000FF,"Los administradores fueron advertidos."); //Message to SPAM Player
        format(largocolor,128,"[DC] Usuario %s[ID:%i] esta intentando hacer SPAM.",NombreEx(playerid),playerid); //String with Name and ID of SPAM Player
        MandarMensajeAdmins(largocolor,1); //Send the message to all admins.
        format(largocolor,128,"Texto enviado: \"%s\"",text); //String with message sender text of SPAM player
        MandarMensajeAdmins(largocolor,1); //Send the message to all admins.
        return 0; //Not display the message
    }
    return 1;
}
||- Download -||

SolidFiles

||- Credits -||

- GROVE4L (Script)


Re: Anti-SPAM (URL/Server IP) - gamer931215 - 16.04.2011

Can you translate the script for us maybe ?


Re: Anti-SPAM (URL/Server IP) - GROVE4L - 16.04.2011

Quote:
Originally Posted by gamer931215
View Post
Can you translate the script for us maybe ?
http://pastebin.com/mVPDaMsQ


Re: Anti-SPAM (URL/Server IP) - Ironboy - 16.04.2011

Nice work


Re: Anti-SPAM (URL/Server IP) - Abinesh™ - 17.04.2011

nice, gud job


Re: Anti-SPAM (URL/Server IP) - justsomeguy - 17.04.2011

Sow this is... what? i couldnt understandt it i know what its used for but how it works is an huge mystery.


Re: Anti-SPAM (URL/Server IP) - Vince - 17.04.2011

It filters out IP's and website addresses, but it only works with websites that have a www subdomain and a specific TLD. If someone was to type: 'Visit website at somestupidroleplay.co.cc', this script wouldn't work.


pawn Code:
if(SPAM[StringSPAM] == '0' || SPAM[StringSPAM] == '1' || SPAM[StringSPAM] == '2' || SPAM[StringSPAM] == '3' || SPAM[StringSPAM] == '4' || SPAM[StringSPAM] == '5' || SPAM[StringSPAM] == '6' || SPAM[StringSPAM] == '7' || SPAM[StringSPAM] == '8' || SPAM[StringSPAM] == '9') COUNTN ++;
Т_o
pawn Code:
if ('0' <= SPAM[StringSPAM] <= '9') COUNTN++;



Re: Anti-SPAM (URL/Server IP) - justsomeguy - 17.04.2011

oke smart not completely usefull but i like it, does this also contain like: visit 98.65.0.5.3:7777
that in the chat it 'll say: visit **************
? if not suggestion right there!


Re: Anti-SPAM (URL/Server IP) - iJumbo - 17.04.2011

Nice but i like more the ***************


Re: Anti-SPAM (URL/Server IP) - Ken_Block - 17.04.2011

Quote:
Originally Posted by Vince
View Post
It filters out IP's and website addresses, but it only works with websites that have a www subdomain and a specific TLD. If someone was to type: 'Visit website at somestupidroleplay.co.cc', this script wouldn't work.


pawn Code:
if(SPAM[StringSPAM] == '0' || SPAM[StringSPAM] == '1' || SPAM[StringSPAM] == '2' || SPAM[StringSPAM] == '3' || SPAM[StringSPAM] == '4' || SPAM[StringSPAM] == '5' || SPAM[StringSPAM] == '6' || SPAM[StringSPAM] == '7' || SPAM[StringSPAM] == '8' || SPAM[StringSPAM] == '9') COUNTN ++;
Т_o
pawn Code:
if ('0' <= SPAM[StringSPAM] <= '9') COUNTN++;
Y agregaselo cara de la Cho*a

Bien Grove!