Forum

> > CS2D > Scripts > sethealth command not working on hit hook
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch sethealth command not working on hit hook

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt sethealth command not working on hit hook

THE DARKNESS
User Off Offline

Zitieren
Hi all!
when i want to sethealth in hit hook , its not working!

1
2
3
4
5
addhook("hit","onhit")

function onhit(id)
parse("sethealth "..id.." 80")
end

but , when i want to sethealth in other hooks , its works!
example:
1
2
3
4
5
6
7
addhook("say","onsay")

function onsay(id,message)
if message == "hp" then
parse("sethealth "..id.." 80")
end
end

Why??
how can i do it?

Excuse me for my bad english
thanks.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht