Raised This Month: $ Target: $400
 0% 

Advanced Swear Filter + Punishment Menu v2.0


Post New Thread Reply   
 
Thread Tools Display Modes
DoubleTap
Veteran Member
Join Date: Mar 2004
Location: Harker Heights, TX
Old 03-30-2004 , 10:11  
Reply With Quote #41

The original version I had renamed (and that one didn't work)... with the updates I didn't and surely we missed that... good eye !

Vic/DT

Thanks man, I will tinker with it and give you any info I can...
__________________
DoubleTap is offline
Send a message via ICQ to DoubleTap
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 03-30-2004 , 11:19  
Reply With Quote #42

Glad that helped even a little!! lol.. anyway, here is a _debug_ version of the source code (uses same cfg's) maybe compiling/running this version may point you to any trouble spots if you experience them.. if you experience errors (or crash)..

it writes to both amx_log and console, so only use this version if you wanna test/debug..

if you find any errors or crash, please PM me with either your console dump (condump command while in console) or part of the log file with only the Swear-Filter parts.. that may help me narrow down which part is causing crash.. thx for any/all help guys!!
Attached Files
File Type: sma Get Plugin or Get Source (swearfilter_debug.sma - 1029 views - 46.7 KB)
xeroblood is offline
Send a message via MSN to xeroblood
BigBaller
Veteran Member
Join Date: Mar 2004
Location: Everett, WA
Old 03-30-2004 , 11:32  
Reply With Quote #43

hehe xeroblood just learned how to use the log_amx function
__________________

BigBaller is offline
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 03-30-2004 , 11:36  
Reply With Quote #44

Well, not much to learn really, it is much like all other print functions, but definetly different from the AMX version of Logging.. regardless, your post in another thread certainly helped to differentiate the two methods used by AMX & AMXX..
xeroblood is offline
Send a message via MSN to xeroblood
DoubleTap
Veteran Member
Join Date: Mar 2004
Location: Harker Heights, TX
Old 03-30-2004 , 17:47  
Reply With Quote #45

I got a slight bug report, otherwise this is a pretty sweet plugin (will be even better when it takes XP instead of money) hehehe... Whenever a cuss word comes out... the whole sentence they wrote is displayed as one long word with asterisks in the cuss word spot Makes it awful hard to see what the rest was

Vic/DT
__________________
DoubleTap is offline
Send a message via ICQ to DoubleTap
BigBaller
Veteran Member
Join Date: Mar 2004
Location: Everett, WA
Old 03-31-2004 , 02:35  
Reply With Quote #46

Yea I was able to show DoubleTap that bug when I was cussing at him on his server, I noticed it also.
__________________

BigBaller is offline
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 03-31-2004 , 09:06  
Reply With Quote #47

Ah!!! I know exactly why too, lol.. I forgot that I edited that part just b4 releasing again!! lol..

Ima go fix it now!! Thx for noticing that for me!! sry too!

EDIT: Fixed!! I updated original post..
I had to remove the 'space' from the Filters list, otherwise you get the problem, but now, it wont filter stuff like: c u s s.. hrmm, Ima find a way to fix that tho ;)
xeroblood is offline
Send a message via MSN to xeroblood
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 03-31-2004 , 17:39  
Reply With Quote #48

If you want this to take away xp from my frozen throne mod just execute this server command:

amx_takexp <id> <xp>

And then u can just print a message to them. Here is the function in my code:

Code:
public amx_takexp(){     new arg[32], arg2[32]     read_argv(1,arg,31)     read_argv(2,arg2,31)     new id = str_to_num(arg)     playerxp[id]-=str_to_num(arg2)     displaylevel(id,0)     return PLUGIN_HANDLED }

So if you execute it and don't put up a message they won't know why.
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 03-31-2004 , 20:59  
Reply With Quote #49

Nice!! Thx soooo much!! Saves me lotsa research into your code!!
I will definetly add this feature now for WC3FT Mod at least, when other versions make it to AMXX, I'll add them too!!

Thx again Pimp Daddy!!

Edit: I can now add support for WC3 2.22.X w/ AMXX now too!! Thx to DopeFish!

I will be releasing next version with support for both WC3 Versions!!
Big Thx to Pimp Daddy & DopeFish for saving me *who knows how much* research into their plugins
xeroblood is offline
Send a message via MSN to xeroblood
DoubleTap
Veteran Member
Join Date: Mar 2004
Location: Harker Heights, TX
Old 04-01-2004 , 18:56  
Reply With Quote #50

Hey guys... Is this the line (I finally found the .sma from my old swear filter) that does the take XP and has it changed in AMXX ?

server_cmd("wc3_changexp %d %d",id,xpLoss)

I am going to recompile it and see if it works

Vic/DT
__________________
DoubleTap is offline
Send a message via ICQ to DoubleTap
Reply



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 06:26.


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