Raised This Month: $ Target: $400
 0% 

CS Auto Mark Word (Highlighter)


Post New Thread Reply   
 
Thread Tools Display Modes
Breezy
Junior Member
Join Date: May 2010
Location: Türkiye
Old 06-11-2011 , 16:50   Re: Auto Mark Word
Reply With Quote #11

good job Ryokin.
__________________
www.clanTR.org - Main Administrator
Breezy is offline
Send a message via MSN to Breezy
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-11-2011 , 18:31   Re: Auto Mark Word
Reply With Quote #12

This will NOT work on ALL mods.
__________________
fysiks is offline
Tirant
Veteran Member
Join Date: Jul 2008
Location: Los Angeles, California
Old 06-11-2011 , 20:05   Re: Auto Mark Word
Reply With Quote #13

Maybe you should include Trie instead of an Array. Also, when you print team, if they are an enemy, the way you have it printing, they will show up friendly. And why not just make "bHadMarkWord" a boolean instead of assigning it integer values? Finally, you should just reformat the word into the same variable instead of creating a whole new one, and just reuse that variable for the player name. Also, szChat need only be 128 cells, that's the max length characters can show up on my computer at least (and i run 1680 wide).
__________________

PM me if you're interested in buying the Credits addition for Base Builder
Battlefield Rebirth [66% done]
Call of Duty: MW2 [100% done]
Base Builder [100% done]
Tirant is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-11-2011 , 20:16   Re: Auto Mark Word
Reply With Quote #14

If you use a Trie, then you have to parse all chat into single words and check if those words are a key of the Trie, i don't think it's a good option.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Tirant
Veteran Member
Join Date: Jul 2008
Location: Los Angeles, California
Old 06-11-2011 , 20:33   Re: Auto Mark Word
Reply With Quote #15

Nevermind, I just looked into the Trie, and I couldn't do it. I got stuck at trying not to individualize the chat.
__________________

PM me if you're interested in buying the Credits addition for Base Builder
Battlefield Rebirth [66% done]
Call of Duty: MW2 [100% done]
Base Builder [100% done]
Tirant is offline
Ryokin
Senior Member
Join Date: Jan 2010
Old 06-15-2011 , 08:25   Re: Auto Mark Word (Highlighter)
Reply With Quote #16

Update to 1.1

@Tirant Thank for the advices, i think variable "bHadMarkWord" is ok, not much different from boolean

@fysiks why doesn't it work ?
__________________
NH4CL + NaOH -> NH3 + H2O + NaCL
Ryokin is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-15-2011 , 13:46   Re: Auto Mark Word (Highlighter)
Reply With Quote #17

Quote:
Originally Posted by Ryokin View Post
@fysiks why doesn't it work ?
1. You include cstrike.
2. You hard code team names.
3. ColorChat only works on Counter-Strike.

You need to change the "Modification" category to Counter-Strike.
__________________
fysiks is offline
dfwu.dark
Senior Member
Join Date: Mar 2011
Location: In dreams...
Old 07-02-2011 , 16:35   Re: CS Auto Mark Word (Highlighter)
Reply With Quote #18

this will make my server cool..nice looking
__________________
[url]http://hw-movie.blogspot.com[/url]
Watch Latest Movies Online For Free !...
dfwu.dark is offline
Send a message via Skype™ to dfwu.dark
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-08-2011 , 12:06   Re: CS Auto Mark Word (Highlighter)
Reply With Quote #19

- I don't understand much why you replace ^n but nothing. Simply use trim().
- Don't check one character or if string is null with the equal native. Ie: szChat[0] == '/' ; !szChat[0]
- You use contain, containi would be more appropriate.
- You use contain, but actually you should use your own function. It will matches for example for "king" in "looking".
- You better hook actually SayText instead of hooking say/say_team, it will lead to less issues. As it is, you block the chat for others plugins (PLUGIN_HANDLED_MAIN should be used), chat logs, you hardcode english words (*DEAD* etc). Probably others problems. SayText would be more reliable and plugin-friendly.
- Be consistent and use charsmax() everywhere.

Probably others things to say..
__________________

Last edited by Arkshine; 10-28-2011 at 10:37.
Arkshine is offline
RuleBreaker
Senior Member
Join Date: May 2011
Old 11-11-2011 , 11:40   Re: CS Auto Mark Word (Highlighter)
Reply With Quote #20

I really like this plugin but I had to remove it from my server. I have JailBreak and I had 2 problems with it
1. It removes VIP prefix
2. Sometimes when I'm in T my name is blue in chat
RuleBreaker is offline
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 00:33.


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