Stop Repeating Yourself - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Stop Repeating Yourself (
/showthread.php?tid=100716)
Stop Repeating Yourself -
BP13 - 06.10.2009
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?
Re: Stop Repeating Yourself -
spiper - 06.10.2009
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
Re: Stop Repeating Yourself -
Crusher!! - 06.10.2009
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;
}
Re: Stop Repeating Yourself -
usa.vs.iraq - 06.10.2009
spamming... use an anti-spam system.. use the search bar search for anti-smap and ill come out a lot of things
Re: Stop Repeating Yourself -
BP13 - 06.10.2009
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.
Re: Stop Repeating Yourself -
BP13 - 06.10.2009
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.
Re: Stop Repeating Yourself -
Calgon - 06.10.2009
256 to 128. Text strings never vary beyond the size of 128 (FYI).
Re: Stop Repeating Yourself -
eXchainZ-FoReVeR - 06.10.2009
If your using LAdmin4v2.. You could simply use he's pro anti-spam protection
![Wink](images/smilies/wink.png)
good for servers for anti-advertising :P
Re: Stop Repeating Yourself -
Correlli - 06.10.2009
Quote:
Originally Posted by [DP
eXchainZ ]
If your using LAdmin4v2.. You could simply use he's pro anti-spam protection ![Wink](images/smilies/wink.png) 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.
|
Re: Stop Repeating Yourself -
eXchainZ-FoReVeR - 06.10.2009
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 ![Wink](images/smilies/wink.png) 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