Forum

> > CS2D > Scripts > Need add custom kill
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Need add custom kill

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Need add custom kill

-DIE Wolf-
User Off Offline

Zitieren
Hey all. I have this simple scripts :
1
2
3
4
5
addhook("hit","customkill")
function customkill(i,killer,w,hpd,apd,rawd)
          parse("sethealth "..i.." "..player(i,"health")-3) 
return 1
end

That will change all the gun dmg to 3. ( Or make the player lost 3 HP when they get shot with any gun)
But when i killed them. There is no customkill. When player health is 0. It just show : "Player Die"
I want when to kill them. There is msg : Me Killed player

Help me
IMG:https://www.unrealsoftware.de/img/cookies.gif

alt Re: Need add custom kill

Alistaire
User Off Offline

Zitieren
1
2
3
4
5
if player(i, 'health')-3 <= 0 then
	parse('customkill '..killer..' killed '..i)
else
	parse('sethealth '..i..' '..player(i, 'health')-3)
end

alt Re: Need add custom kill

-DIE Wolf-
User Off Offline

Zitieren
EDIT : I have a question : Does kevlar/armor skill working well when we use this ?
1× editiert, zuletzt 09.02.14 13:47:43
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht