custom colour
is it possible to make your own custom color like red for an example without using any include just like stock.
|
Re: custom colour
Custom colour for what?
EDIT: Are you talking about colour chat? |
Re: custom colour
Just search, there are a few stocks.
|
Re: custom colour
I use this:
PHP Code:
|
Re: custom colour
how to make red and blue colour ?? i don't want to use team colour. i don't want colourchat. somehow just colour code for my stuff.
|
Re: custom colour
You could change his team, print the msg, and set him back to his original team.
I don't know if there's another solution. |
Re: custom colour
Quote:
For all the times after the first call, it could cause an error where the player is not connected. Code:
|
Re: custom colour
Oh, i see.
Thanks for fixing it. |
Re: custom colour
You can pass a not connected player as argument 1, it works.
Also, would be better to use the function like this : fnColorPrint(0, "^4[%s] ^1your name is %s", g_szPrefix, szName) Then you can remove lot of code : Also, you had passed iPlayer as last message_begin argument, the receiver is id and not iPlayer. PHP Code:
Note that such a function doesn't allow team color change or ML when you pass id = 0 ( see my sig :D ) |
Re: custom colour
I almost never use ML, I like something like that because i don't have to add the prefix to every sentence i write.
Thanks for the optimisation :) EDIT: you forgot to change Buffer2 to szMsg PHP Code:
PHP Code:
|
| All times are GMT -4. The time now is 14:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.