Raised This Month: $ Target: $400
 0% 

Headshot = 100HP


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
KoST
Senior Member
Join Date: Jul 2005
Old 05-08-2006 , 16:04  
Reply With Quote #2

try this:

Code:
#include <amxmodx> #include <fun> public plugin_init() {   register_plugin("100hp on Headshot" , "0.1" , "v3x");   register_event("DeathMsg" , "event_DeathMsg" , "1>0" , "2>0" , "3=1"); } public event_DeathMsg() {   new id = read_data(1); // changed 2 -> 1   if(is_user_alive(id))     set_user_health(id , 100); }

http://wiki.amxmodx.org/index.php/Ha...vents#DeathMsg

[edit]
please use small-tags instead of code-tags to make code better readable..
__________________
KoST 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 05:07.


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