Quote: "Thank you. I did not understand how to do the same thing but only reverse (power up). I tried to send the function -1 instead of 1 but it did not work. "
here's a working heal zone for you
--set to value of delay between heals (in seconds)
local delay = 1
--set to max amount of health player can heal up to while using zone
local max_health = 750
local init_delay = 0
function healing_zone_init(e)
end
function healing_zone_main(e)
if g_Entity[e]['plrinzone'] == 1 then
if init_delay == 0 then
StartTimer(e)
delay = delay * 1000
init_delay = 1
end
if g_PlayerHealth < max_health then
Prompt ("Healing...")
if GetTimer(e) > delay then
SetPlayerHealth(g_PlayerHealth + 1)
StartTimer(e)
end
end
end
end
@VysilHq Steve
you could use the actual functions rather than the "sendmessage" as it's quicker and would be more useful for beginners to understand as they look much better
i.e.
HurtPlayer(e,1)
rather than
sendmessage("hurtplayer,e,1")
life's one big game
windows vista ultimate
i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11