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")
}
}