Raised This Month: $ Target: $400
 0% 

Coding Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 11-06-2007 , 22:20   Re: Coding Help
Reply With Quote #2

Quote:
Originally Posted by Stars View Post
-Starting a function when damage is taken
register_event("Damage", "hook_Damage", "be", "2>0");

Quote:
Originally Posted by Stars View Post
-Knowing Damage taken
The 2nd argument of the damage message you are hooking above.

Quote:
Originally Posted by Stars View Post
-Pauses in code (wait 1 second)
set_task(1.0, "function_to_start");

Quote:
Originally Posted by Stars View Post
-Knowing current hp
new health = pev(id, pev_health);
hlstriker is offline
 



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 01:16.


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