SA-MP Forums Archive
[FilterScript] [FS]AntiSpam + AntiFlooding + PM - 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] [FS]AntiSpam + AntiFlooding + PM (/showthread.php?tid=193259)



[FS]AntiSpam + AntiFlooding + PM - Elmerz_com - 25.11.2010

[FS]AntiSpam + AntiFlooding + PM

Info
This Filterscript has a antispam system pluss a antiflooding and pm command.
Commands:

/PM
Download:

NEW!> Elmerz Oficial: >>CLICK HERE!<<
Mediafire: >>CLICK HERE!<<



Re: [FS]AntiSpam + AntiFlooding + PM - [SU]Balli - 25.11.2010

Any cmd to disable pm's ? anyway, gj.


AW: [FS]AntiSpam + AntiFlooding + PM - [SU]Balli - 26.11.2010

Thats bad Else i'd be using it, were searching long for a antispam + anti flood + pm try to add a cmd to disable pms pl0x ^^


Re: [FS]AntiSpam + AntiFlooding + PM - FreshDoubleX - 26.11.2010

Look at THIS
It has Disable/Enable Command too. And' It's dialog based. Anyways, you can use that PM system what I gave and this antispam/antiflood.


AW: [FS]AntiSpam + AntiFlooding + PM - [SU]Balli - 26.11.2010

Well, i don't want a dialog based one. I just want /pm id message and a cmd to disable it ;p And a anti flood + anti spam that works properly.


Re: [FS]AntiSpam + AntiFlooding + PM - FreshDoubleX - 26.11.2010

Well it's not hard to make it yourself!

pawn Код:
new IgnorePM[MAX_PLAYER_NAME];
OnPlayerConnect:
pawn Код:
public OnPlayerConnect(playerid)
{
        IgnorePM[playerid] = 1;
        return 1;
}
pawn Код:
CMD:pm(playerid, params[])
{
    new str2[256], id, Name1[MAX_PLAYER_NAME], Name2[MAX_PLAYER_NAME];

    if(sscanf(params, "us", id, str2))
    {
        SendClientMessage(playerid, COLOR_HERE, "/pm [ID] [MESSAGE]");
        return 1;
    }
    if(IgnorePM[id] == 0)
        return SendClientMessage(playerid, COLOR_RED, "That player is not accepting PM's at this time!");

    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, 0xFF0000FF, "[Error]: Player not connected");
    if(playerid == id) return SendClientMessage(playerid, 0xFF0000FF, "[Error]: You cannot pm yourself!");
    {
        GetPlayerName(playerid, Name1, sizeof(Name1));
        GetPlayerName(id, Name2, sizeof(Name2));
        format(stri, sizeof(stri), "PM To %s(%d): %s", Name2, id, str2);
        SendClientMessage(playerid, COLOR_HERE, stri);
        format(stri, sizeof(stri), "PM From %s(%d): %s", Name1, playerid, str2);
        SendClientMessage(id, COLOR_HERE, stri);
        printf("PM From %s to %s: %s", Name1, Name2, str2);
    }
    return 1;
}
pawn Код:
CMD:ignorepm(playerid, params[])
{
    if(IgnorePM[playerid] == 1)
    {
        SendClientMessage(playerid, COLOR_HERE, "You have disabled private messages and will no longer receive them!");
        IgnorePM[playerid] = 0;
    }
    else
    {
        SendClientMessage(playerid, COLOR_HERE, "You have enabled private messages and will receive them!");
        IgnorePM[playerid] = 1;
    }
    return 1;
}
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
        IgnorePM[playerid] = 0;
        return 1;
}



Re: [FS]AntiSpam + AntiFlooding + PM - Elmerz_com - 05.12.2010

FreshDoubleX You do NOT post tutorials here!


Re: [FS]AntiSpam + AntiFlooding + PM - Zh3r0 - 05.12.2010

Your topics always look like a comic book lol...to many colors...


Re: [FS]AntiSpam + AntiFlooding + PM - InTeL_cOrE_i7 - 26.03.2013

Quote:
Originally Posted by [SU]Balli
Посмотреть сообщение
Any cmd to disable pm's ? anyway, gj.
just edit the pawno code


Re: AW: [FS]AntiSpam + AntiFlooding + PM - InTeL_cOrE_i7 - 26.03.2013

Quote:
Originally Posted by [SU]Balli
Посмотреть сообщение
Thats bad Else i'd be using it, were searching long for a antispam + anti flood + pm try to add a cmd to disable pms pl0x ^^
don't be a noob just edit the pawno code