Raised This Month: $ Target: $400
 0% 

How to work with a file [Help]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Callesson
Member
Join Date: Jan 2010
Old 12-04-2010 , 08:35   How to work with a file [Help]
Reply With Quote #1

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")
__________________

Last edited by Callesson; 12-04-2010 at 08:37. Reason: Miss
Callesson is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode