Raised This Month: $ Target: $400
 0% 

Headshot = 100HP


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
jordy
Junior Member
Join Date: Apr 2006
Old 05-08-2006 , 15:56   Headshot = 100HP
Reply With Quote #1

Hi I'm looking for a plugin so when you make a headshot you get back exactly 100hp. V3X wrote one for me but unforunately it isn't working.

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(2);
  if(is_user_alive(id))
    set_user_health(id , 100);
}
can somebody recheck if its write?
jordy 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