Raised This Month: $51 Target: $400
 12% 

cromchat help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sanjay Singh
Veteran Member
Join Date: Sep 2016
Old 03-16-2021 , 05:07   cromchat help
Reply With Quote #1

I want to print chat to all but not the current id , how can i do that without creating custom stock?
Is this feature available in cromchat and if yes how can i use that?
__________________
Sanjay Singh is offline
Send a message via AIM to Sanjay Singh
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 03-16-2021 , 05:27   Re: cromchat help
Reply With Quote #2

just replace id with 0, it will print to everyone
__________________
My plugin:
Celena Luna is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-16-2021 , 08:25   Re: cromchat help
Reply With Quote #3

Could have just checked the API, read the thread or simply asked in the thread itself instead of making a new one.

https://amxx-bg.info/api/cromchat/CC_SendMessage

Quote:
Client index (use 0 to send to all players)
__________________

Last edited by OciXCrom; 03-16-2021 at 08:25.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
arijan
Junior Member
Join Date: Aug 2020
Old 03-16-2021 , 13:02   Re: cromchat help
Reply With Quote #4

To actually answer your question, you can use a for loop that loops through all players, continue if the id matches the player's id and if not it sends the colorchat.
arijan is offline
Sanjay Singh
Veteran Member
Join Date: Sep 2016
Old 03-16-2021 , 14:43   Re: cromchat help
Reply With Quote #5

Quote:
Originally Posted by OciXCrom View Post
Could have just checked the API, read the thread or simply asked in the thread itself instead of making a new one.

https://amxx-bg.info/api/cromchat/CC_SendMessage
re read i want to print msg to all except the current player

if i use 0 it will print msg to all but including the current player id
__________________
Sanjay Singh is offline
Send a message via AIM to Sanjay Singh
Sanjay Singh
Veteran Member
Join Date: Sep 2016
Old 03-16-2021 , 14:44   Re: cromchat help
Reply With Quote #6

Quote:
Originally Posted by arijan View Post
To actually answer your question, you can use a for loop that loops through all players, continue if the id matches the player's id and if not it sends the colorchat.
you got me right but i thought if cromchat has feature or not else i have to do manually check.
__________________
Sanjay Singh is offline
Send a message via AIM to Sanjay Singh
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-16-2021 , 15:06   Re: cromchat help
Reply With Quote #7

I might add something like this in the near future, but for now do what arijan said.
__________________

Last edited by OciXCrom; 03-16-2021 at 15:06.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 07:18.


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