Hello, im trying to edit this plugin but there is a problem i can't solve.. so i need to create zone and if someone enter in, it will heal him for 'x' hp.
i did change public player_damage and player_traceattack from original to:
Code:
public dmg()
{
for(new i; i<g_iZonesNum; i++)
{
if(is_user_in_zone(i,i))
{
set_user_health((i),get_user_health(i)+5)
}
}
}
and in plugin_init
set_task(1.0, "dmg", .flags="b")
the problem is - it works only for the first player on the map who will enter into created zone, i can't solve it by myself :/