MTA-Fan Posted October 7, 2004 Posted October 7, 2004 Is it possible to make a script which !warns a player if he uses a word for example CRACK....
Mike Posted October 7, 2004 Posted October 7, 2004 It's quite simple for it to just say from admin a warning but if you want a system that kicks after 3 warnings for example it's slightly more complicated. For a simple warning system: alias mta.text { if (CRACK isin $3-) mta.say $1 elseif (OTHERWORD isin $3-) mta.say $1 }
DeeJee.nl Posted October 7, 2004 Posted October 7, 2004 under mta.text elseif (( crack isin $3-) { mta.slap $1 $2 mta.say $1 Stop talking abouth cracks } you can change: slap to any other command like kick or ban crack to every other word and if you got a admin log ina nd you still want to be able to say the word with out being kicked or slapped use this: under mta.text elseif (( crack isin $3-) && (%isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == false && %ismember. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == false )) { mta.slap $1 $2 mta.say $1 Stop talking abouth cracks }
MTA-Fan Posted October 7, 2004 Author Posted October 7, 2004 Yes that's good but I want a script with 3 warnings and a .txt or .ini file with the forbidden words
Oli Posted October 7, 2004 Posted October 7, 2004 make an alias mta.warn and then... alias mta.text if $3 == crack mta.warn $1- something like that
MTA-Fan Posted October 8, 2004 Author Posted October 8, 2004 Yes but how can I make a file with the forbidden words
DeeJee.nl Posted October 8, 2004 Posted October 8, 2004 not shure but summit like this under mta.text elseif ($read(badwords.txt,w,$3-)) { mta.say $1 $mta.name($1,$2) stop using bad words..!!! mta.slap $1 $2 } make a file called badwords.txt and place all words int here.. every word a new line. and place that file in your mirc folder but I don't know that much abouth how the script handles the file.. but I can think of the amount of work it is for mirc to read the file every time some one says something.. in other words I think it would make your script react very slowly. elseif (( lag isin $3-) && (%isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == false && %ismember. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == false )) { mta.slap $1 $2 mta.say $1 Stop complaining } that is what I have in our script.. think if you want to add words just put them behind lag with a space inbetween. That way the script doesn't have to acces any other file if you get my drift.
Guest Posted October 9, 2004 Posted October 9, 2004 uh.. just a small question: what are those [ $+ [ $1 ] $+ . $+ [ $2 ] $+ ] for? i have never found out
Shib Posted October 9, 2004 Posted October 9, 2004 Well, people who hav, i think its harrys admin system, that is wat is after a member of admin script to determin whether they are ann admin.
MrJax Posted October 9, 2004 Posted October 9, 2004 its basically to set a variable for an individual ID/Person
{Static} Posted October 17, 2004 Posted October 17, 2004 Is it possible to do this?: Some one swears. A message comes up saying; You have been word-warned. Two more warnings and your kicked; Reason: Swearing/insulting whatever. Then the next time it says Two more warnings and your kicked; Then if they swear again, they are kicked. So similar to the !warn system, but its seperate and automatic. Thanks Jamie
Recommended Posts