Raised This Month: $248 Target: $400
 62% 

[INC] CromChat - a better ColorChat!


Post New Thread Reply   
 
Thread Tools Display Modes
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-09-2019 , 07:09   Re: [INC] CromChat - a better ColorChat!
Reply With Quote #41

Quote:
Originally Posted by RojedaFeik View Post
Is possible add another color, like purple?
No.
__________________
HamletEagle is offline
Abdou Bn
Member
Join Date: Sep 2019
Old 09-11-2019 , 16:31   Re: [INC] CromChat - a better ColorChat!
Reply With Quote #42

thats hard man
Abdou Bn is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 09-11-2019 , 20:44   Re: [INC] CromChat - a better ColorChat!
Reply With Quote #43

Quote:
Originally Posted by Abdou Bn View Post
thats hard man
I must agree, adding one line in the code is one of the hardest tasks humankind has to face, apart from figuring out how to use the brain.
__________________

Last edited by OciXCrom; 09-11-2019 at 20:46.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Sanjay Singh
Veteran Member
Join Date: Sep 2016
Old 01-13-2020 , 00:35   Re: [INC] CromChat - a better ColorChat!
Reply With Quote #44

Quote:
Originally Posted by OciXCrom View Post
I must agree, adding one line in the code is one of the hardest tasks humankind has to face, apart from figuring out how to use the brain.
How can i use white and team color in single message?

^5 white and ^3 for team
__________________
Sanjay Singh is offline
Send a message via AIM to Sanjay Singh
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 01-13-2020 , 09:16   Re: [INC] CromChat - a better ColorChat!
Reply With Quote #45

Quote:
Originally Posted by Sanjay Singh View Post
How can i use white and team color in single message?

^5 white and ^3 for team
Start reading the first post.

Quote:
Originally Posted by OciXCrom View Post

&x07 = red
&x06 = blue
&x05 = white
&x04 = green
&x03 = team color
&x01 = normal
&x00 = removes message prefix (only if put in the beginning of the message)


You can use only one of the following in a single message: &x07, &x06, &x05, &x03. If you use more than one in a message, it will automatically select the color that is first in the list and will replace all other colors with that one. Combining more than one team color is not possible in CS 1.6!!!


---------- [ View the API ] ----------

---------- [ Download ] ----------
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
iceeedr is offline
Send a message via Skype™ to iceeedr
msbeden
Member
Join Date: Jan 2020
Location: Turkey, Eskisehir
Old 02-13-2020 , 17:13   Re: [INC] CromChat - a better ColorChat!
Reply With Quote #46

How can I add other colors? Purple, turquoise, dark blue ..
msbeden is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-13-2020 , 17:34   Re: [INC] CromChat - a better ColorChat!
Reply With Quote #47

Quote:
Originally Posted by msbeden View Post
How can I add other colors? Purple, turquoise, dark blue ..
Not possible in CS 1.6.
__________________

Last edited by OciXCrom; 02-13-2020 at 17:34.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 04-22-2020 , 21:44   Re: [INC] CromChat - a better ColorChat!
Reply With Quote #48

I realized that if I use CC_SendMessage with the parameter "% n", id to get the player's nick (amxx 1.10) and by chance, the player disconnects, the plugin generates the following error.

Code:
L 04/22/2020 - 22:10:52: [AMXX] Run time error 10: native error (native "vformat")
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
iceeedr is offline
Send a message via Skype™ to iceeedr
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-23-2020 , 14:04   Re: [INC] CromChat - a better ColorChat!
Reply With Quote #49

Are you sure you used it correctly? Show your code.

Just did a quick test and it worked as expected:

Code:
#include <amxmodx> #include <cromchat> public plugin_init() {     register_plugin("MyPlugin", "1.0", "OciXCrom")     register_clcmd("say /test", "t") } public t(id) {     CC_SendMessage(id, "Your name is %n", id)     return PLUGIN_HANDLED }
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 04-23-2020 , 14:07   Re: [INC] CromChat - a better ColorChat!
Reply With Quote #50

Quote:
Originally Posted by OciXCrom View Post
Are you sure you used it correctly? Show your code.

Just did a quick test and it worked as expected:

Code:
#include <amxmodx> #include <cromchat> public plugin_init() {     register_plugin("MyPlugin", "1.0", "OciXCrom")     register_clcmd("say /test", "t") } public t(id) {     CC_SendMessage(id, "Your name is %n", id)     return PLUGIN_HANDLED }

The error occurs when the player (target) disconnects in the middle of executing the function. I know that is_user_connected (index) is missing, I'm just reporting you because instead of giving invalid index, it is returning an error in vformat.
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
iceeedr is offline
Send a message via Skype™ to iceeedr
Reply


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 07:30.


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