Raised This Month: $ Target: $400
 0% 

Mask of Death


Post New Thread Reply   
 
Thread Tools Display Modes
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-12-2006 , 02:20  
Reply With Quote #11

Quote:
Originally Posted by SweatyBanana
What happens if you thow a nade and get killed right when u throw it and then u get HP back?

do u respawn?
It checks if you're dead first, if so, the function is haulted.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
1c3_1k
Junior Member
Join Date: Mar 2006
Old 01-03-2007 , 20:22   Re: Mask of Death
Reply With Quote #12

Quote:
Originally Posted by v3x View Post
It was made by Avalanche

Code:
#include <amxmodx> #include <fun> public plugin_init() {   register_plugin("Mask of death" , "0.1" , "v3x");   register_cvar("mp_maskofdeath" , "1");   register_event("Damage" , "Event_Damage" , "b" , "1>0"); } public Event_Damage(id) {   if(!get_cvar_num("mp_maskofdeath")) {     return PLUGIN_CONTINUE;   }   new attacker = get_user_attacker(id);   if(!is_user_alive(id) || !is_user_alive(attacker) || id == attacker) {     return PLUGIN_CONTINUE;   }   if(get_user_health(id) < 100) {     new hp = (get_user_health(id) + (read_data(2) / 2));     set_user_health(id , hp);   }   return PLUGIN_CONTINUE; }
Or something.
Help plz... This not work! Heals not back! I need very much this plugin ! help
1c3_1k is offline
Send a message via ICQ to 1c3_1k
Imanoobie
BANNED
Join Date: Sep 2006
Old 01-03-2007 , 20:59   Re: Mask of Death
Reply With Quote #13

dont post in old threads
Imanoobie is offline
1c3_1k
Junior Member
Join Date: Mar 2006
Old 01-03-2007 , 21:30   Re: Mask of Death
Reply With Quote #14

Quote:
Originally Posted by Imanoobie View Post
dont post in old threads
create new Topic?? i dont think so
1c3_1k is offline
Send a message via ICQ to 1c3_1k
jim_yang
Veteran Member
Join Date: Aug 2006
Old 01-04-2007 , 00:21   Re: Mask of Death
Reply With Quote #15

Code:
#include <amxmodx> #include <fakemeta>   #define PLUGIN "Mask Of Death" #define VERSION "1.0" #define AUTHOR "Jim"   #define MAX_HEALTH 255 new g_pcvar_maskofdeath   public plugin_init() {         register_plugin(PLUGIN, VERSION, AUTHOR)         g_pcvar_maskofdeath = register_cvar("mp_maskofdeath", "1")         register_event("Damage", "event_damage", "be", "2>0") }   public event_damage(id) {         if(!get_pcvar_num(g_pcvar_maskofdeath))                 return PLUGIN_CONTINUE                         new attacker = get_user_attacker(id)         if(!is_user_alive(attacker) || attacker == id)                 return PLUGIN_CONTINUE                         set_pev(attacker, pev_health, float((get_user_health(attacker) + (read_data(2) + 1) / 2) % (MAX_HEALTH + 1)))         return PLUGIN_CONTINUE }
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 01-04-2007 , 09:41   Re: Mask of Death
Reply With Quote #16

Here is my version:
Code:
#include <amxmodx> #include <fakemeta> // plugin's main information #define PLUGIN_NAME "Get Some Health On Attack" #define PLUGIN_VERSION "0.1" #define PLUGIN_AUTHOR "VEN" //#define SUPPORT_FF #define MAX_HEALTH 100.0 #define HP_BONUS_PERCENTS 50.0 public plugin_init() {     register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)     register_event("Damage", "event_damage", "b", "2!0") } public event_damage(victim) {     new id = get_user_attacker(victim)     if (!is_user_alive(id) || id == victim)         return #if !defined SUPPORT_FF     if (get_user_team(id) == get_user_team(victim))         return #endif     new Float:health     pev(id, pev_health, health)     health += float(read_data(2)) * HP_BONUS_PERCENTS / 100.0     if (health > MAX_HEALTH)         health = MAX_HEALTH     set_pev(id, pev_health, health) }
Attached Files
File Type: sma Get Plugin or Get Source (get_some_health_on_attack.sma - 658 views - 961 Bytes)
VEN is offline
godlike
Senior Member
Join Date: Apr 2005
Old 01-04-2007 , 10:27   Re: Mask of Death
Reply With Quote #17

Lol i requested this 8 months ago :p
__________________
Read the rules before posting something stupid: click here

Any questions about amxx PM me
godlike is offline
1c3_1k
Junior Member
Join Date: Mar 2006
Old 01-04-2007 , 10:44   Re: Mask of Death
Reply With Quote #18

2VEN:
thx very match! its work!
2godlike:
we not forget for you
1c3_1k is offline
Send a message via ICQ to 1c3_1k
m@mBa
Junior Member
Join Date: Jan 2007
Old 01-04-2007 , 11:07   Re: Mask of Death
Reply With Quote #19

Wooohooo, this is WORKING ... THX AMIGOS ;)
m@mBa is offline
Reply


Thread Tools
Display Modes

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 08:02.


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