Ссылка на Сообщение
#1
30.1.2010, 14:43

Gain/Drain (Fun Script)
So hey again, this is my second ES.
What it does: well This script should work like this, if it doesnt let me know.
If you shoot someone, they gain Hp, so if a AK47 hits 30. the victim would gain 30hp.
the only way to die is by getting killed by a flashbang! Flashbang hits 1's
This mod Requires
Matties Event Scripts
So hey again, this is my second ES.
What it does: well This script should work like this, if it doesnt let me know.
If you shoot someone, they gain Hp, so if a AK47 hits 30. the victim would gain 30hp.
the only way to die is by getting killed by a flashbang! Flashbang hits 1's

This mod Requires
Matties Event Scripts
CODE
// Gain/Drain Script. (WidowMkR) (KaT.FisH)
event round_start
{
es_msg #green [Gain/Drain Is Running, Do Not Shoot, Shooting Would Give the Victim Hp, Use Flashbangs!]
}
event player_hurt
{
es playerset healthadd event_var(userid) event_var(dmg_health)
if (event_var(weapon) == flashbang) do
{
es damage event_var(userid) 100 32 event_var(attacker)
}
}
event flashbang_detonate
{
es_give event_var(userid) weapon_flashbang
}
event round_start
{
es_msg #green [Gain/Drain Is Running, Do Not Shoot, Shooting Would Give the Victim Hp, Use Flashbangs!]
}
event player_hurt
{
es playerset healthadd event_var(userid) event_var(dmg_health)
if (event_var(weapon) == flashbang) do
{
es damage event_var(userid) 100 32 event_var(attacker)
}
}
event flashbang_detonate
{
es_give event_var(userid) weapon_flashbang
}