Raised This Month: $ Target: $400
 0% 

Hook death in half-life deathmatch


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
urban_ninja
Senior Member
Join Date: Feb 2009
Old 10-07-2014 , 09:07   Hook death in half-life deathmatch
Reply With Quote #1

I can't seem to find a function to hook deaths that actually works in half-life deathmatch. I've tried Ham_Killed but the forward function never gets executed on player death. Preferably I would use a function that returns hitbox upon death like client_death() but thats only available in game specific modules like tfcx and cstrike. I would like a kill streak plugin for half-life but it doesn't look like its even possible without using some dirty method since kills aren't even getting detected by amx mod x through non-game specific hooks.

EDIT: Nvm. For some reason the plugin started paused on 1st run.

Last edited by urban_ninja; 10-07-2014 at 09:51.
urban_ninja is offline
neverminde
Senior Member
Join Date: Feb 2011
Location: St.Piter
Old 10-07-2014 , 22:14   Re: Hook death in half-life deathmatch
Reply With Quote #2

Maybe this
PHP Code:
register_event("DeathMsg""hook_death""a""1>0"
PHP Code:
public hook_death()
{

Killer  read_data(1)
Victim read_data(2
neverminde is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode