Anyone know of a Demo or can give me a code that stops Spam?
Thanks!
~~SSJ4_Gohan_Majin
ID:268021
![]() Feb 16 2004, 11:05 am
|
|
N649po wrote:
Well, it depends on what you mean by stopping spam. As far as I know, it would take a lot of code to enable your program to identify and stop spam. If you mean stopping certain users from using worldsays, worldemotes, etc... than here you go: You're a pretty good coder as I see from looking above. But, that is not what I meant. I meant: Say if a player wanted to be: I know, I'm bad at explaining this. ~~SSJ4_Gohan_Majin |
Easy,
mob |
So what you're saying is, when the user types in that they want a really big font size, you want it to appear at normal size? That's what I got from it, I'm not sure if that's what you meant.
|
mob/var/muted = 0
mob/admin/verb/mute(mob/M)
if (M.muted == 1)
usr << "[M] is already muted!"
else
world << "[M] is muted by the admins!"
M << "You have been muted!"
M.muted = 1
mob/verb/worldsay(msg as text)
if (usr.muted == 1)
usr << "You cannot do this! You are muted!"
else
(Your normal worldsay code)
If that's what you wanted, then there you go. Otherwise, I don't know what you meant by spam.