AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hook death in half-life deathmatch (https://forums.alliedmods.net/showthread.php?t=249526)

urban_ninja 10-07-2014 09:07

Hook death in half-life deathmatch
 
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.

neverminde 10-07-2014 22:14

Re: Hook death in half-life deathmatch
 
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



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

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