[REQ] AllChat Tag
How i can add this tag when livin players *ALIVE* and dead player can see alive players in chat this tag *ALIVE* plazma : Hi
thnx. Code: PHP Code:
|
Re: [REQ] AllChat Tag
PHP Code:
PHP Code:
|
Re: [REQ] AllChat Tag
Quote:
http://i.imgur.com/SsFISyv.png |
Re: [REQ] AllChat Tag
Uhm... I've just added the *ALIVE* tag in front of everything, didn't change nothing else in the code. I'll check uot again, but it doesn't seem to be the reason...
EDIT: Try to put ^x01 in front of *ALIVE* in the code and see the results. |
Re: [REQ] AllChat Tag
Ah, thanks alot anyone please...
|
Re: [REQ] AllChat Tag
Yes, I saw the problem. It's cause because this variable 'prefix' already includes a check for player dead and makes the prefix *DEAD*. So I just added in the function, where this defines, another check to make the prefix *ALIVE*.
This should already work: PHP Code:
Or if you want to know what did I do, I just added PHP Code:
PHP Code:
|
Re: [REQ] AllChat Tag
I've done this but it does not work out so Living players in chat can see *ALIVE* plazma : test
but I'm alive dont see my tag in chat *ALIVE* people *DEAD* and *SPEC* cant see *ALIVE* you understand bro... |
Re: [REQ] AllChat Tag
Problem Solved :
format( msg, 199, "%s%s%s%s : %s%s", is_user_alive(sndr) ? "^x01*ALIVE*" : "",\ strlen( prefix ) > 1 ? prefix : "",\ COLCHAR[namecol], sndr_name, COLCHAR[msgcol], str4 ) return PLUGIN_HANDLE I put this [b]^x01is_user_alive(sndr) ? "^x01*ALIVE*" : "",\ |
Re: [REQ] AllChat Tag
Yea, thet would work, too. But for code, to look better, maybe it'll be good to use the second method, by adding the prefix. :)
|
Re: [REQ] AllChat Tag
Its not good, he is Restart my server where is the problem??
|
| All times are GMT -4. The time now is 09:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.