Forum

> > CS2D > Scripts > Need add custom kill
Forums overviewCS2D overview Scripts overviewLog in to reply

English Need add custom kill

3 replies
To the start Previous 1 Next To the start

old Need add custom kill

-DIE Wolf-
User Off Offline

Quote
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

old Re: Need add custom kill

Alistaire
User Off Offline

Quote
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

old Re: Need add custom kill

-DIE Wolf-
User Off Offline

Quote
EDIT : I have a question : Does kevlar/armor skill working well when we use this ?
edited 1×, last 09.02.14 01:47:43 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview