neonDragon.net
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Heal ure Team mate !

+17
golden_glock
xReii
Sps
DarkNess
pn
x-regit-x
Marksel
hazik666
Necro
Coffeecake
Florent
QuickSilver
Koyumu
kwaakt
Hibari
Smile
Army Of oNe
21 posters

Page 2 of 2 Previous  1, 2

Go down

Is healing A team mate a good idea ?

Heal ure Team mate ! - Page 2 I_vote_lcap17%Heal ure Team mate ! - Page 2 I_vote_rcap 17% 
[ 4 ]
Heal ure Team mate ! - Page 2 I_vote_lcap0%Heal ure Team mate ! - Page 2 I_vote_rcap 0% 
[ 0 ]
Heal ure Team mate ! - Page 2 I_vote_lcap83%Heal ure Team mate ! - Page 2 I_vote_rcap 83% 
[ 20 ]
 
Total Votes : 24
 
 
Poll closed

Heal ure Team mate ! - Page 2 Empty Re: Heal ure Team mate !

Post by Xalus Fri Jul 30, 2010 11:07 am

Try this..

Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fun>
#include <engine>

#define PLUGIN "[Xalus Projects] Heal Prisoners"
#define VERSION "1.0"
#define AUTHOR "Xalus"

#define MAXHEAL 100
#define TAG "[Jailbreak]"

new Float:gfNextHealTime[33];
new cStatus, cHeal;

public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR);
   
   /* Cvar's */
   cStatus      = register_cvar("healer_status", "1");
   cHeal      = register_cvar("healer_heal", "1");
   
   RegisterHam(Ham_Touch, "player", "PlayerTouch");
}
public PlayerTouch(id, player) {
   if(!get_pcvar_num(cStatus))
      return PLUGIN_HANDLED;
   actionHeal(id, player);
   actionHeal(player, id);
   return PLUGIN_HANDLED;
}

actionHeal(id, player) {
   if (halflife_time() >= gfNextHealTime[id]) {
      set_user_health( id, min( ( get_user_health( id ) + get_pcvar_num(cHeal) ), MAXHEAL ) );
      
      if(get_user_health(id) < 100) {
         new szName[32]; get_user_name(player, szName, 31);
         set_hudmessage(255, 0, 0, -1.0, 0.01);
         show_hudmessage(id, "%s^n %s is healing you!", TAG, szName);
      }
      gfNextHealTime[id] = halflife_time() + 1.0;
   }
}


Last edited by Xalus on Tue Aug 03, 2010 11:39 am; edited 1 time in total
Xalus
Xalus

Number of posts : 204
Age : 29
Birthday : 1995-04-26
Registration date : 2009-11-27

Back to top Go down

Heal ure Team mate ! - Page 2 Empty what about the ct's ?

Post by Army Of oNe Mon Aug 02, 2010 4:19 pm

ok, if the terrorist is such a bad idea, what about the ct's ? maby it is a good idea that the ct's can heal there mates so that the can command better and try to live longer !

let me know !
Army Of oNe
Army Of oNe

Male Number of posts : 115
Age : 36
Birthday : 1988-02-19
Location : Netherlands, Arnhem.
Job/hobbies : Sales-manager, Computer-Poker-Dating.
Registration date : 2010-03-24

http://hyves.nl/under-influence9

Back to top Go down

Heal ure Team mate ! - Page 2 Empty Re: Heal ure Team mate !

Post by swarley Mon Aug 02, 2010 4:46 pm

Army Of oNe wrote:ok, if the terrorist is such a bad idea, what about the ct's ? maby it is a good idea that the ct's can heal there mates so that the can command better and try to live longer !

let me know !

bad idea , CTS can just heal whenever they want (healing machine) terrorist cant they have too escape and heal which they can also take weapons then Razz
This could work for some map as jail_czone and ba_tamama_v2 (CZONE doesnt have an healing machine) and ba_tamama_v2's healing machine (SUCKS truely!!) Cool
swarley
swarley

Male Number of posts : 489
Age : 16
Birthday : 2007-07-06
Location : Arsenal, Emirates Stadium
Job/hobbies : Doing nothing
Registration date : 2010-05-28

Back to top Go down

Heal ure Team mate ! - Page 2 Empty Re: Heal ure Team mate !

Post by Eazy Mon Aug 02, 2010 5:03 pm

That means endless rounds?.
dont think it will be a good idea,
Eazy
Eazy
nD* Jail Member
nD* Jail Member

Male Number of posts : 116
Age : 32
Birthday : 1991-09-24
Location : Denmark
Registration date : 2010-01-11

Back to top Go down

Heal ure Team mate ! - Page 2 Empty Re: Heal ure Team mate !

Post by Army Of oNe Mon Aug 02, 2010 5:55 pm

i dont think there will be endless rounds then, because then the cts would have to be together all the time to heal. and u also know eazy that that will never happen Razz so i dont see why i would work for CT's.
Army Of oNe
Army Of oNe

Male Number of posts : 115
Age : 36
Birthday : 1988-02-19
Location : Netherlands, Arnhem.
Job/hobbies : Sales-manager, Computer-Poker-Dating.
Registration date : 2010-03-24

http://hyves.nl/under-influence9

Back to top Go down

Heal ure Team mate ! - Page 2 Empty Re: Heal ure Team mate !

Post by Sarah Mon Aug 02, 2010 6:30 pm

I dont see this working its a good idea but I think it will be stupid to have in game, like eazy said the rounds will last forever if the cts had it and if the ts would have it the cts wouldnt stand a chanse unless they only camped wich would be to booring so yeah, this is not a good idea I think not for the jail concept I think its good as it is..
Sarah
Sarah
nD* Jail Member
nD* Jail Member

Female Number of posts : 242
Age : 34
Birthday : 1989-10-15
Location : Sweden
Registration date : 2010-07-14

Back to top Go down

Heal ure Team mate ! - Page 2 Empty Re: Heal ure Team mate !

Post by Marksel Tue Aug 03, 2010 9:09 am

Sarah wrote:I dont see this working its a good idea but I think it will be stupid to have in game


This.
Marksel
Marksel
nD* Runner Member
nD* Runner Member

Male Number of posts : 3979
Age : 32
Birthday : 1992-02-01
Location : Holland
Job/hobbies : Owning you!
Registration date : 2009-08-19

Back to top Go down

Heal ure Team mate ! - Page 2 Empty Re: Heal ure Team mate !

Post by Xalus Tue Aug 03, 2010 11:41 am

Fixed.
This one works, like I use in my l4d

Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fun>
#include <engine>

#define PLUGIN "[Xalus Projects] Heal Prisoners"
#define VERSION "1.0"
#define AUTHOR "Xalus"

#define MAXHEAL 100
#define TAG "[Jailbreak]"

new Float:gfNextHealTime[33];
new cStatus, cHeal;

public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR);
   
   /* Cvar's */
   cStatus      = register_cvar("healer_status", "1");
   cHeal      = register_cvar("healer_heal", "1");
   
   RegisterHam(Ham_Touch, "player", "PlayerTouch");
}
public PlayerTouch(id, player) {
   if(!get_pcvar_num(cStatus) || !is_user_alive(id) || !is_user_alive(player))
      return PLUGIN_HANDLED;
   actionHeal(id, player);
   return PLUGIN_HANDLED;
}

actionHeal(id, player) {
   if (halflife_time() >= gfNextHealTime[id]) {
      set_user_health( id, min( ( get_user_health( id ) + get_pcvar_num(cHeal) ), MAXHEAL ) );
      
      if(get_user_health(id) < 100) {
         new szName[32]; get_user_name(player, szName, 31);
         set_hudmessage(255, 0, 0, -1.0, 0.01);
         show_hudmessage(id, "%s^n %s is healing you!", TAG, szName);
      }
      gfNextHealTime[id] = halflife_time() + 1.0;
   }
}
Xalus
Xalus

Number of posts : 204
Age : 29
Birthday : 1995-04-26
Registration date : 2009-11-27

Back to top Go down

Heal ure Team mate ! - Page 2 Empty Re: Heal ure Team mate !

Post by Sponsored content


Sponsored content


Back to top Go down

Page 2 of 2 Previous  1, 2

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum