protect my PM
#1

If somebody knows how to make a protection for Pm Flooding/Spamming please write it here
Reply
#2

Make an anti spam?
Reply
#3

You could script a command that disallows PM-ing.

Like:
At to of your script
pawn Code:
new nopm[MAX_PLAYERS];
pawn Code:
if (strcmp("/nopms", cmdtext, true) == 0)
    {
      if(nopm[playerid] == 0)
      {
            nopm[playerid] = 1;
            SendClientMessage(playerid, YOUR_COLOR, "You turned off private messages");
        } else if(nopm[playerid] == 1) {
            nopm[playerid] = 0;
            SendClientMessage(playerid, YOUR_COLOR, "You turned on private messages");
        }
        return 1;
    }
Then do this in OnPlayerPrivmsg
pawn Code:
if(nopm[recieverid] == 1) {
        SendClientMessage(playerid, YOUR_COLOR, "This player doesn't want to be PM'd");
        return 0;
    }
Reply
#4

Quote:
Originally Posted by Pyrokid
You could script a command that disallows PM-ing.

Like:
At to of your script
pawn Code:
new nopm[MAX_PLAYERS];
pawn Code:
if (strcmp("/nopms", cmdtext, true) == 0)
    {
      if(nopm[playerid] == 0)
      {
            nopm[playerid] = 1;
            SendClientMessage(playerid, YOUR_COLOR, "You turned off private messages");
        } else if(nopm[playerid] == 1) {
            nopm[playerid] = 0;
            SendClientMessage(playerid, YOUR_COLOR, "You turned on private messages");
        }
        return 1;
    }
Then do this in OnPlayerPrivmsg
pawn Code:
if(nopm[receiverid] == 1) {
        SendClientMessage(playerid, YOUR_COLOR, "This player doesn't want to be PM'd");
        return 0;
    }
|


I know this one...I need anti PM spam! example /pm 1 hello //when you wanna spam than it comes up " Do not reapit your self!" so I need anti PM spam
Reply
#5

Set a timer that if the player writes more than %d letters per a %d seconds he gets this message.
Reply
#6

Quote:
Originally Posted by MenaceX^
Set a timer that if the player writes more than %d letters per a %d seconds he gets this message.
yeah..I tryed but ... not working...my pwn closes when compiling..can somebody write it?
Reply
#7

Yes because you had less/too many brackets.
Show your code.
Reply
#8

Quote:
Originally Posted by MenaceX^
Yes because you had less/too many brackets.
Show your code.
well now ... No errors..looks like working..BTW; I tryed and nothing
here
i made a static lastmsg with max player 128
and under public OnPlayerPrivmsg(playerid, recieverid, text[])
made if(strfind(lastmsg[playerid], text, false) != -1)
{
SendClientMessage(playerid, 0xFF0000FF, "Do not reapit your self!");


it's probably with no errors
...but it's not working in the game i can spam. .:S
Reply
#9

If your looking for a PM antispam, i'm about to release one.
Reply
#10

Quote:
Originally Posted by Mikep
If your looking for a PM antispam, i'm about to release one.
ok..write the code here..i can't wait dont have much time .. thx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)