,If player kill' it spawn projectile ON MURDER (SMOKE EFECT) - color: red
Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
Spawn projectile
7 Antworten![Zum Anfang](img/i_first.png)
![Vorherige](img/i_prev.png)
![Nächste](img/i_next.png)
![Zum Anfang](img/i_last.png)
,If player kill' it spawn projectile ON MURDER (SMOKE EFECT) - color: red
Basically
![cs2d lua hook](img/i_codehelp.png)
![cs2d lua cmd](img/i_codehelp.png)
![cs2d cmd](img/i_codehelp.png)
![cs2d cmd](img/i_codehelp.png)
1
2
3
4
2
3
4
addhook("die", "killsmoke") function killsmoke(id) parse('effect "colorsmoke" '..player(id,'x')..' '..player(id,'y')..' 48 32 255 0 0') end
1
2
3
4
2
3
4
xjaile = 1 yjaile = 1 timer(15000,"parse",'effect "colorsmoke" "..xjaile*6120-60 .." "..yjaile*2490-75) 48 32 255 0 0')
wrong! HELP
1× editiert, zuletzt 09.01.16 17:03:51
1
2
3
4
2
3
4
xjaile = 1 yjaile = 1 timer(15000,"parse",'effect "colorsmoke" '.. xjaile*6120-60 ..' '.. yjaile*2490-75 ..' 48 32 255 0 0')
![](img/smiles/smile.gif)
![user](img/i_friend.png)
So your code can be simplified to:
1
timer(15000,"parse",'effect "colorsmoke" '.. 6120-60 ..' '.. 2490-75 ..' 48 32 255 0 0')
...unless you change the values of the variables somewhere to move the effect. Then they would make sense of course - but probably not in a multiplication with 6120-60 or 2490-75
![](img/smiles/ugly.gif)
![Zum Anfang](img/i_first.png)
![Vorherige](img/i_prev.png)
![Nächste](img/i_next.png)
![Zum Anfang](img/i_last.png)