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
Page 2 of 2 • 1, 2
Is healing A team mate a good idea ?
Re: Heal ure Team mate !
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- Number of posts : 204
Age : 29
Birthday : 1995-04-26
Registration date : 2009-11-27
what about the ct's ?
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 !
let me know !
Re: Heal ure Team mate !
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
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!!)
swarley- Number of posts : 489
Age : 16
Birthday : 2007-07-06
Location : Arsenal, Emirates Stadium
Job/hobbies : Doing nothing
Registration date : 2010-05-28
Re: Heal ure Team mate !
That means endless rounds?.
dont think it will be a good idea,
dont think it will be a good idea,
Eazy- nD* Jail Member
- Number of posts : 116
Age : 32
Birthday : 1991-09-24
Location : Denmark
Registration date : 2010-01-11
Re: Heal ure Team mate !
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 so i dont see why i would work for CT's.
Re: Heal ure Team mate !
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- nD* Jail Member
- Number of posts : 242
Age : 34
Birthday : 1989-10-15
Location : Sweden
Registration date : 2010-07-14
Re: Heal ure Team mate !
Sarah wrote:I dont see this working its a good idea but I think it will be stupid to have in game
This.
Marksel- nD* Runner Member
- Number of posts : 3979
Age : 32
Birthday : 1992-02-01
Location : Holland
Job/hobbies : Owning you!
Registration date : 2009-08-19
Re: Heal ure Team mate !
Fixed.
This one works, like I use in my l4d
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- Number of posts : 204
Age : 29
Birthday : 1995-04-26
Registration date : 2009-11-27
Page 2 of 2 • 1, 2
Similar topics
» To my birthday mate ;>
» [GAME] I'm not your mate, buddy!
» Happy birthday mate!
» I'm not your mate, buddy. (game)
» This is what the non nD team is!
» [GAME] I'm not your mate, buddy!
» Happy birthday mate!
» I'm not your mate, buddy. (game)
» This is what the non nD team is!
Page 2 of 2
Permissions in this forum:
You cannot reply to topics in this forum
|
|