Hook for dead player spectate
2 Attachment(s)
Hello, when Player has dead (by world or by killer, whatever), then camera targeted and follow to Killer (if Player killed by another Player) or targeted to Player corpse (if killed by world), this camera active ~5 seconds, after this dead Player change view camera to spectate (Free look, First Person, etc.) how I can hook this event (event of move player to "dead spectators")?
See screenshots if not understand. Thanks! |
Re: Hook for dead player spectate
To hook this event add this code to plugin_init()
PHP Code:
|
Re: Hook for dead player spectate
Thasnk, I use:
Code:
register_message(get_user_msgid("ClCorpse"), "event_client_corpse")Code:
event_client_corpse(id) { |
Re: Hook for dead player spectate
|
Re: Hook for dead player spectate
Ok, this work:
PHP Code:
This is for mp_fadetoblack analog (by IPs). Any solution? |
Re: Hook for dead player spectate
Quote:
|
Re: Hook for dead player spectate
Don't use register_message when you only need the event, use register_event.
If you really need register_message (assuming you need to alter a param or block the message when some conditions matches), then don't name your callback "event_XXX" but rather "message_XXX" Quote:
|
Re: Hook for dead player spectate
Quote:
|
Re: Hook for dead player spectate
Quote:
ConnorMcLeod, ok, I understand, thanks. |
Re: Hook for dead player spectate
Quote:
|
| All times are GMT -4. The time now is 03:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.