[question] print_chat messages
Hello! :wink: I've got one question, is there any way to recive/get messages printed by other plugin with print_chat? I didn't found any topic about this, so I write new one, but if it exist - sorry, I didn't know how to type great keyword for this. Waitin 4 respond :mrgreen: +karma for useful posts. |
Re: [question] print_chat messages
If you code yourself the plugin and use emessage, yes.
You can use this : It supports default game message, for example : ClientPrint(iKiller, print_center, "#Killed_Teammate") // print center : You have killed a teamate or ClientPrint(id, print_chat, "#Game_teammate_attack", szName) // print in chat : "Name attacked a teamate" Doesn't format strings as client_print does, for example you can do : client_print(id, print_chat, "Your id is %d", id) %d will be replaced with id value You can't do it with ClientPrint I could make another fonction for it, or change some code in the existing function, i just had this one ready, so i give it to you. PHP Code:
Then, to catch it in another plugin, just register the event TextMsg : register_event("TextMsg", "Event_TextMsg", "b" /* or "a" */) |
| All times are GMT -4. The time now is 17:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.