AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   HeadShot healer (https://forums.alliedmods.net/showthread.php?t=50150)

Amxx-PluginCreator 01-20-2007 16:53

HeadShot healer
 
1 Attachment(s)
**HEAD SHOT HEALER**



What it does: This plugin will give you back HP everytime you make a headshot, on any player. It's really basic.


What you need: amxmodx and fun need to activated.


What game do I need:
Should work on all(not source).


What version: Currently 1.0.


What to except in future: Sounds, HUD message text, bonus speed.

This is my first plugin, so be nice:)

REPORT ALL BUGS AND ERRORS!!!



Amxx-PluginCreator 01-20-2007 17:02

Re: HeadShot healer
 
+Karma
If it works, if you don't want to it's ok(just figured since its my first plugin.)

COMMENTS WANTED

Bo0m! 01-20-2007 17:06

Re: HeadShot healer
 
1. Post the SMA.
2. This is already done here.

Amxx-PluginCreator 01-20-2007 17:08

Re: HeadShot healer
 
Ah, darn.:|

I'll still keep it up, becuase I'm going to add more.

POSTING SMA.

John6000 01-20-2007 18:30

Re: HeadShot healer
 
I like the idea behind this plugin! I hope it gets approved. =)

Amxx-PluginCreator 01-20-2007 18:32

Re: HeadShot healer
 
Thank you, if theres any errors tell me.

s p l i t 01-20-2007 19:31

Re: HeadShot healer
 
Its already been done as Bo0m! stated, plus it offers more.

Unapproved.

http://forums.alliedmods.net/showthread.php?t=11201

Sav 01-24-2007 00:59

Re: HeadShot healer
 
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")
  }
}



All times are GMT -4. The time now is 20:24.

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