Hello guys
*The plugin im trying to to
My plugin is going to kick you if you use bad words
Previous thread about this
http://forums.alliedmods.net/showthread.php?t=144371
* What I want help with
I would someone to explain how I can work with a file for my plugin.
I've founded this
http://www.amxmodx.org/funcwiki.php?go=inc&id=3 but I don't know how to use it.
* My code right now
So now my function only runs if you type "shit"
Code:
register_clcmd("say shit", "kick",,"User get kicked for swearing")
* I would like
A textfile like this (Textfile will be in the Config folder.)
Code:
;Bad words list
fuck
shit
damn
And then use those words to run my function.
* One more thing
This will only run player say "shit". Not if he says "you shit".
How can I get the word in a text/sentence ?
Code:
register_clcmd("say shit", "kick",,"User get kicked for swearing")
__________________