24.03.2009, 21:30
If somebody knows how to make a protection for Pm Flooding/Spamming please write it here
new nopm[MAX_PLAYERS];
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;
}
if(nopm[recieverid] == 1) {
SendClientMessage(playerid, YOUR_COLOR, "This player doesn't want to be PM'd");
return 0;
}
|
Originally Posted by Pyrokid
You could script a command that disallows PM-ing.
Like: At to of your script pawn Code:
pawn Code:
pawn Code:
|
|
Originally Posted by MenaceX^
Set a timer that if the player writes more than %d letters per a %d seconds he gets this message.
|
|
Originally Posted by MenaceX^
Yes because you had less/too many brackets.
Show your code. |
|
Originally Posted by Mikep
If your looking for a PM antispam, i'm about to release one.
|