[SOLVE]My code make say team message print to everyone.
I want to re-write the say team and I'm using a stock version color chat.
But when I test it, I found out that it print the team say message to another team. How can fix it? Code:
new szName[32], szTag[24]; |
Re: My code make say team message print to everyone.
Code:
(szAlive ? client_printc(0, "^x04%s ^x03%s ^x01: %s", szTeam, szName, szMessages) : client_printc(0, "^x01%s ^x04%s ^x03%s ^x01: %s", szDead, szTeam, szName, szMessages)); |
Re: My code make say team message print to everyone.
If I use id, it will print the message to myself only, other teammate can't see.
|
Re: My code make say team message print to everyone.
You have to make a loop and determine whether you want to display the message to the player or not by checking his team. And if you want to show the message to him, put that line there. (the client_printc line with the id of the user you are checking).
|
| All times are GMT -4. The time now is 01:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.