mrlongshen 22 Posted April 13, 2015 Hello there, can someone help me edit this script ? prontera,150,180,5 script restricted_manner -1,{OnInit: setarray .@bad_word$, "noob", "coward", "fuck", "ass", "ashhole", "kimak", "pukimak", "cibai", "celaka" "pundek", "konek", "pepek"; // add as your content lol .@size_b = getarraysize( .@bad_word$ ); for( ; .@i < .@size_b; .@i++ ) defpattern 1, "([^:]+):.*s"+ .@bad_word$[.@i] +".$", "warning"; activatepset 1; end;warning: @warning++; if ( @warning == 3 ) { @warning = 0; deltimer strnpcinfo(0) +"::OnDelay"; atcommand "@mute 5 "+ strcharinfo(0); } else { deltimer strnpcinfo(0) +"::OnDelay"; addtimer 300000, strnpcinfo(0) +"::OnDelay"; message strcharinfo(0), "Be careful with your language... Warning "+ @warning +"/3"; } end;OnDelay: @warning = 0; end;} Can set GM level to bypass the rudes words. Auto detect the foul language on sentence, example: fuck you. so this sentences will be block. currently script only block on the single words. Thanks you Quote Share this post Link to post Share on other sites
0 evilpuncker 503 Posted April 13, 2015 if you are familiar with plugins I recommend this one: http://herc.ws/board/topic/3977-odin-server-side-manner/ Quote Share this post Link to post Share on other sites
0 mrlongshen 22 Posted April 14, 2015 @@evilpuncker yeah Im familar with plugin, but I have problem with plugin and the segmentation fault. I have to troubleshoot it first before use. hehe Quote Share this post Link to post Share on other sites
Hello there, can someone help me edit this script ?
Thanks you
Share this post
Link to post
Share on other sites