TPDerp wrote:Some player_spawn skills/items that modify a player's health (etc.) might not work correctly on CS:GO. Try to change it to post_player_spawn and see if that solves the problem.
Yes, that's work.
But I found a new bug.
Code: Select all
name = "HP (+50HP)"
desc = ""
cost = 3000
level = 0
dab = 1 #0=death, 1=alive, 2=both
duration = 1 #0=this round, 1=untill death
max = 2
cfg = "post_player_spawn"
cmdbuy = "es wcs_setfx health server_var(wcs_userid) + 50 0"
cmdactivate = "es wcs_setfx health event_var(userid) + 50 0"
1)Now if I buy that (for example) item 2 times - in the next round it is activated only once.
Instead of 100 hp, I get 50 hp.
2)Also, this item after the first purchase continues to be activated every round, even after death in the case of duration = "1", without a second purchase.