[Dyn Native] ColorChat v0.3.2 (04 jul 2013)
16 Attachment(s)
Note that this has been integrated to amxx 1.8.3 core since build 185
Usage here : https://forums.alliedmods.net/showpo...&postcount=232 ColorChat Native__________________ .: Stock Version :.__________________ .: Module Version :.__________________ |
Re: Native : ColorChat
Nice work man! :)
|
Re: Native : ColorChat
Rockin'! :up:
I think I will finally start using colorchat now :mrgreen: It looks great, I just noticed two things: Quote:
Code:
while( replace() ) |
Re: Native : ColorChat
Thanks for the blue color :)
Was first using replace_all, but that one check in every loop if string contain 'what[]', store position in string and check is there is enough place left to replace (+ this stock fails as you can get errors with it when you don't set good len params...). Since i'm replacing 2 chars with 2 chars, there shouldn't be any place problem. There could be a better stock though. From what i've tried, pass directly ^3 or ^4 in calling native works, but from what i remember when was using color chat in the past, some times when multi formating, it is altered, i haven't made enough tests yet to know if this replace stuff can be removed, gonna try to put ^4 in ML keys to see what happen. |
Re: Native : ColorChat
The problem with "^4" or the others in the ML is that it doesn't read '^' as the escape character. It reads it as "^^4".
So, you can do it with "!g" or "^4" or whatever you prefer, but you will need to end up using replace() to fix it. |
Re: Native : ColorChat
Quote:
[EDIT] !g code replacement is now only for ML and is proceeded at map start. |
Re: Native : ColorChat
this may come into conflict with Zombie_plague code.
cuz of " Send_TeamInfo(id, MSG_ONE_UNRELIABLE, g_szTeamName[iColor]) " user's team on scoreboard will be screwed up when we use GREY(or RED, BLUE, too) |
Re: Native : ColorChat
that i understand... i have to add !t !g and/or !n into the .sma of my plugins right?
good plugin i think... and one more question... its posible to force a color like "red, blue or grey"? for example i want to put a red message for TTs, CTs, and SPECS too... its posible? |
Re: Native : ColorChat
C... C... Cool!
|
Re: Native : ColorChat
Quote:
Quote:
Color will be user team color if you specify player id + use color = DontChange. |
All times are GMT -4. The time now is 15:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.