msgID (death)
I am hooking it like that:
PHP Code:
PHP Code:
Is msg_id the person who died or am I off the mark? or can I use something like this: PHP Code:
|
Re: msgID (death)
msg_id is equal to get_user_msgid() value, that is usefull in case you would use same callback for multiple registered messages (kind of stupid)
msg_dest is MSG_ONE, MSG_ALL etc..., in case of DeathMsg, it can be MSG_BROADCAST or MSG_ALL. msg_entity is the player who the message is sent to, in your case it's 0 because DeathMsg is sent to all players at the same time using MSG_ALL or MSG_BROADCAST. If you want an example on how to hide T kills (note that i don't use any of msg_id, msg_dest nor msg_entity params) : PHP Code:
|
Re: msgID (death)
|
Re: msgID (death)
I didn't want to hide the T's, thanks for your explanation, I just would like to find out with register_message( get_user_msgid( "DeathMsg" ) , "fw_EvDeathMsg" );
and public fw_EvDeathMsg( msg_id , msg_dest , msg_entity ) how to get the killed player like in e_deathmsg with: new iKiller = read_data(1); new iVictim = read_data(2); |
Re: msgID (death)
Quote:
Quote:
|
Re: msgID (death)
I really don't understand this, can you show me an example please?
So something like this? PHP Code:
|
Re: msgID (death)
Quote:
It's the same. |
Re: msgID (death)
Quote:
So can I use: PHP Code:
|
Re: msgID (death)
Quote:
|
Re: msgID (death)
That's why i showed you the code in my first answer...
|
| All times are GMT -4. The time now is 11:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.