RegisterHam killed dilema
What is the difference:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Re: RegisterHam killed dilema
Quote:
|
Re: RegisterHam killed dilema
So,0 is before and 1 if after?
|
Re: RegisterHam killed dilema
Quote:
|
Re: RegisterHam killed dilema
For example:
PHP Code:
|
Re: RegisterHam killed dilema
In this case you can use whatever you want.
Pre is mostly to act for block kill and let player kept alive for example. Pre = Player isnt dead yet, but is going to die if you dont do anything Post = Player is dead already I recommend you to use post, but pre should work just fine too, depending if other plugin blocks the death. |
Re: RegisterHam killed dilema
Quote:
I suppose this is for all functions(FM_UpdateClientData,FM_CmdStart etc...)-0 is always pre,and 1 is always post |
Re: RegisterHam killed dilema
Quote:
|
Re: RegisterHam killed dilema
I know that,but in this example:
PHP Code:
I want to say,when we see 1 or 0 at the end of certain functions,these numbers always have meaning -before- -after- |
Re: RegisterHam killed dilema
Pre is always before, post is always after.
Some functions may use 1 as post, but i think that amxx functions use always 0 as post and 1 as pre. The best way that you have to see it is by opening the include file and check by yourself. |
| All times are GMT -4. The time now is 02:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.