Stop Repeating Yourself
#1

How do I add a Stop Repeating Yourself Thing. So people cant do this.


Код:
[SU]BP13: wow you suck
[SU]BP13: wow you suck
[SU]BP13: wow you suck
[SU]BP13: wow you suck
[SU]BP13: wow you suck
that it will only come out as this on the chat:

Код:
[SU]BP13: wow you suck
only once and the others do not show up?
Reply
#2

If you mean to stop people from spamming, then you should try an anti spam script,
usually search helps

here is one
http://forum.sa-mp.com/index.php?topic=48944.0
Reply
#3

uh think something:
pawn Код:
new Text[MAX_PLAYERS][256] = " }~{ ";

public OnPlayerText(playerid,text[])
{
if(Text[playerid] == text)
{
SendClientMessage(playerid,color,"You're repeating youself ^^");
return 0;
}
Text[playerid] = text;
return 1;
}
Reply
#4

spamming... use an anti-spam system.. use the search bar search for anti-smap and ill come out a lot of things
Reply
#5

I'm not looking for a antispam. I'm looking for something that does not let you say the exact same thing more than once in a row.
Reply
#6

Quote:
Originally Posted by Crusher!!
uh think something:
pawn Код:
new Text[MAX_PLAYERS][256] = " }~{ ";

public OnPlayerText(playerid,text[])
{
if(Text[playerid] == text)
{
SendClientMessage(playerid,color,"You're repeating youself ^^");
return 0;
}
Text[playerid] = text;
return 1;
}
Theres something wrong with this
Код:
C:\DOCUME~1\User\Desktop\MYNEWE~1\GAMEMO~1\SU.pwn(21452) : error 001: expected token: "{", but found "-string-"
C:\DOCUME~1\User\Desktop\MYNEWE~1\GAMEMO~1\SU.pwn(21452) : error 001: expected token: "}", but found ";"
C:\DOCUME~1\User\Desktop\MYNEWE~1\GAMEMO~1\SU.pwn(21456) : error 033: array must be indexed (variable "Text")
C:\DOCUME~1\User\Desktop\MYNEWE~1\GAMEMO~1\SU.pwn(21461) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Reply
#7

256 to 128. Text strings never vary beyond the size of 128 (FYI).
Reply
#8

If your using LAdmin4v2.. You could simply use he's pro anti-spam protection good for servers for anti-advertising :P
Reply
#9

Quote:
Originally Posted by [DP
eXchainZ ]
If your using LAdmin4v2.. You could simply use he's pro anti-spam protection good for servers for anti-advertising :P
He already said he's not searching for anti-spam script, but for anti-repeat script:
Quote:
Originally Posted by [SU
BP13 ]
I'm not looking for a antispam. I'm looking for something that does not let you say the exact same thing more than once in a row.
Reply
#10

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by [DP
eXchainZ ]
If your using LAdmin4v2.. You could simply use he's pro anti-spam protection good for servers for anti-advertising :P
He already said he's not searching for anti-spam script, but for anti-repeat script:
Quote:
Originally Posted by [SU
BP13 ]
I'm not looking for a antispam. I'm looking for something that does not let you say the exact same thing more than once in a row.
Oh sorry then, mate... First time didn't read the first post :P
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)