Raised This Month: $ Target: $400
 0% 

Wall rechargers, driving vehicle


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 03-15-2013 , 19:08   Wall rechargers, driving vehicle
Reply With Quote #1

I've got two questions:

1) Wall rechargers. These Half-Life health/armor wall rechargers. How do you hook them? I need to know who's using one and how many health/armor did they get by using it.

2) If a player's currently driving a vehicle. I know about hooking Ham_Use, but I need to detect when someone's got killed while driving a vehicle.


Edit for #1: Using Ham_TakeHealth seems to work, although how do I know if a user's using the charger at some time? Is there a Ham hook that get's called when the healing is done or something? Also, what about armor?

Thanks in advance.

Last edited by Backstabnoob; 03-15-2013 at 19:19.
Backstabnoob is offline
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 03-20-2013 , 17:42   Re: Wall rechargers, driving vehicle
Reply With Quote #2

1) Those are for the health healers and armor ones.
PHP Code:
RegisterHamHam_Use,                         "func_healthcharger",     "Ham_Use_Recharger_Pre",                    false );
RegisterHamHam_Use,                         "func_recharge",         "Ham_Use_Recharger_Pre",                     false ); 
2) About this, I think maybe looking at the Vehicle Real Killer plugin will give you an idea.
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]

Last edited by tonykaram1993; 03-20-2013 at 17:42.
tonykaram1993 is offline
Reply


Thread Tools
Display Modes

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 21:47.


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