CurWeapon - message vs Event
So, I got to see that CurWeapon is used in two ways as register_message and register_event.
I want to know the difference between two types and which is used for what. |
Re: CurWeapon - message vs Event
Look at the definition of register_message() and register_event() and you should be able to figure out the basic difference. You can also look at plugins that use these to see how they use them.
Note: These links are for AMX Mod X 1.8.2. |
Re: CurWeapon - message vs Event
Quote:
|
Re: CurWeapon - message vs Event
Quote:
|
Re: CurWeapon - message vs Event
I read it. So the as per the link register_message hooks directly to the engine. So, using message is better than event ?
What do you say ? |
Re: CurWeapon - message vs Event
It's not a 1 to 1 comparison, it depends on what you want to do. register_message allows you to block and alter the message, register_event doesn't.
|
All times are GMT -4. The time now is 12:01. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.