Knowledgebase
Storm Palace Hosting > Storm Hosting Help Desk > Knowledgebase

Ask a question:


Censor Script ( GLOBAL )

Solution Scripts Music Images WWW Tweaks/How to's Server & Programs Voice Sound PChat Security Contact Us Us

Hover mouse on each icon for information

Censor Script.

ON ENTER{
censor GLOBAL
{ [ "fuck" "shit" "bitch" "whore" "cunt" "penis" "nigga" "f u c k" " tits"
"nigger" "fuk" "asshole" "cocksucker" "dickhead" "bastard" "suck my" "fukk"
] badwords =
badwords length nocuss = 0 i =
{ badwords i GET cuss =
{ ""CHATSTR =
"Sorry, but that language isn't allowed on this server. Please refrain from swearing while you chat." LOCALMSG
} CHATSTR LOWERCASE cuss LOWERCASE GREPSTR IF
1 i + i = } { i nocuss < } WHILE
} censor DEF
}
ON OUTCHAT { censor GLOBAL censor EXEC }

If you put the above script at your entrance, and then put the last line in other rooms, those rooms will be censored too.

ON OUTCHAT { censor GLOBAL censor EXEC }

Remember, the person must go to the first room with the script for this to take effect in the other rooms containing just the last line.

 
Was this article helpful? yes / no
Article details
Article ID: 306
Category: Room Scripts
Date added: 12-16-2011 20:18:43
Views: 413
Rating (Votes): Article not rated yet (0)

 
<< Go back

Powered by Help Desk Software HESK™