3 simple questions
how to catch/hook "%s dropped the bomb" and "%s hans picked up the bomb"?
how to show solid text in the middle of the screen (that such of text used in "%s picked up/dropped the bomb")? |
Re: 3 simple questions
Quote:
Code:
|
Here is an example using the get_user_name function
Code:
|
What do you mean catch/hook?
|
I mean when that message is displayed to the T's then start a function!
|
Code:
|
thx VEN!
EDIT: I meant the #Game_bomb_pickup message, should that message have the "bc" flags aswell EDIT #2: How to detect the flags of a message like that and how to replace a message? And how to get the #id of a person that gets a "Personal message" like "You picked up the bomb" Does this work to replace a message: Code:
|
If you take it from the code Ven posted:
Code:
#include <amxmodx> |
Code:
You cant block messages with this way. But you can use engine register_message for such purpose. Quote:
"b" flag mean that you want to catch specified event. "c" flag mean that you do not want to repeat your event function if the same event repeats for more than one person. Example: DeathMsg event is global so you should put "a" flag. Code:
Example: Code:
Quote:
Quote:
You can replace center text messages by sending your own center text message with Code:
Quote:
Code:
Quote:
So if i would like to overwrite "(Radio) Fire in the hole" message this wouldn't work. The only way to overwrite any message it's a change message with engine register_message. |
thx VEN, that was all!
K++ |
| All times are GMT -4. The time now is 15:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.