How to work with a file [Help]
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") A textfile like this (Textfile will be in the Config folder.) Code:
;Bad words list * 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") |
Re: How to work with a file [Help]
This may help http://forums.alliedmods.net/showpos...7&postcount=13
Search or browse for hooking say and reading what was said. This has been covered many times. |
Re: How to work with a file [Help]
Okey i'm gonna check :)
Thank you! |
Re: How to work with a file [Help]
Sorry but it's very hard to me to get it just by looking at the code as i'm new to this :/
If you could explain the steps that would be awesome :) ? Ty |
Re: How to work with a file [Help]
I made this a lot of time ago .
Its not tested , but i think need works . I have looked a version with tries , but i never understand the tries , and doesn't exist a tutorial , sorry. Code:
|
Re: How to work with a file [Help]
Quote:
|
Re: How to work with a file [Help]
I have searched a lot :P And can't find that much about it...
|
Re: How to work with a file [Help]
spam blocker is the best
|
All times are GMT -4. The time now is 16:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.