Raised This Month: $ Target: $400
 0% 

HeadShot healer


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Sav
Junior Member
Join Date: Dec 2006
Old 01-24-2007 , 00:59   Re: HeadShot healer
Reply With Quote #8

since once again there being asses i think this is a great plugin good job
try using pcvars check out wat i added and let me knowwat you think i also added a help motd. if you look at the file path change the name the .txt file what eva you want
and then creat it in that path.

Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
new g_Switch
public plugin_init()
{
  register_plugin("Head Shot Healer" , "1.0" , "NeoFORT");
  register_event("DeathMsg" , "event_DeathMsg" , "a" ,  "1>0" , "2>0" , "3=1");
  g_Switch = register_cvar("Amx_hsheal", "1");
  register_concmd("say /heal help", "help_motd")
}
public event_DeathMsg()
{
 if(get_cvar_num(g_Switch))
 {
  new id = read_data(1); // changed 2 -> 1
  if(is_user_alive(id))
    set_user_health(id , 100);
    }
}
public help_motd(id)
{
 if(get_cvar_num(g_Switch))
  {
   show_motd(id, "addons\amxmodx\configs\hs_heal.txt", "Neo Headshot Healer")
  }
}
Sav 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 20:24.


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