I do not know much English, so I apologize.
I do not want to see the curse of the player writing.
How can I do it with the lapper.
I do not want to see the curse of the player writing.
How can I do it with the lapper.
<?php
##################
#Swearword filter#
##################
#Specify a list of swearwords seperated by ,
#Specify a file with swearwords, one word per line
#-------------------------------------------------------------------
#$SwearWordsList = "****,asholes,bastard,idiot";
$SwearWordsList = "&./swearwords.txt";
$SwearWordsMax = 2; # Maximum number of allowed swearwords per session
Event OnSwearWords1( $userName ) # Player event
privMsg( langEngine( "%{main_swear11}%" ) );
privMsg( langEngine( "%{main_swear12}%", GetCurrentPlayerVar("SwearWordsRem") ) );
EndEvent
Event OnSwearWords2( $userName ) # Player event
privMsg( langEngine( "%{main_swear21}%" ) );
cmdLFS( "/spec " . GetCurrentPlayerVar("NickName") );
EndEvent
?>
<?php
$SwearWordsList = "&./swearwords.txt";
$SwearWordsMax = 2; # Maximum number of allowed swearwords per session
Event OnSwearWords1( $userName ) # Player event
privMsg( langEngine( "%{main_swear11}%" ) );
privMsg( "You will be kicked in ^2" . GetCurrentPlayerVar("SwearWordsRem") . "^1 more attempt(s)" );
EndEvent
Event OnSwearWords2( $userName ) # Player event
privMsg( "Too many swearwords, kicked" );
cmdLFS( "/kick " . GetCurrentPlayerVar("UserName") );
EndEvent
?>