colorchat problem
Hello, guys! I tried to make simple plugin, when a T/CT leaves, a red/blue message is shown on chat. Here's the code i tried:
Code:
blablablasorry, my english is not good :( |
Re: colorchat problem
If you put "TEAM_COLOR" will show the message color based on player team that read the message, so to T team will show RED and CT team BLUE. You must make something like
PHP Code:
|
Re: colorchat problem
Thanks for the answer! I have another question now: How can i make the message in 2 colors? I want nick and ip in red/blue/grey (depending ot team, i understood how to do this) and "has left!" in green.
EDIT: I found how to do this :) I added some functions to my plugin and...argument type mismatch (argument 3) error + warning type mismatch. Here's s one of the messages that has this error: Code:
case 1: ColorChat(0, RED, "^x03%s (%s) ^x04is trying to connect!", name, ip) |
Re: colorchat problem
Here as you wanted: [ has left is in green]
Code:
|
Re: colorchat problem
PHP Code:
|
Re: colorchat problem
You're very fast guys! While i was editing my post, 2 new post appeared :D
I got argument type mismatch (argument 3) error + warning: tag mismatch here's one ot the messages that has it: Code:
case 1: ColorChat(0, RED, "^x03%s (%s) ^x04is trying to connect!", name, ip) |
| All times are GMT -4. The time now is 07:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.