Forum

> > CS2D > Scripts > little script help
Forums overviewCS2D overview Scripts overviewLog in to reply

English little script help

4 replies
To the start Previous 1 Next To the start

old little script help

robed
User Off Offline

Quote
hi guys

is there any a lua like this

when you use'd or attack with claw once then you regain health but it will stript your claw

message by mister.bad.english
edited 1×, last 31.05.11 07:08:17 pm

old Re: little script help

EngiN33R
Moderator Off Offline

Quote
And me.

1
2
3
4
5
6
7
addhook("attack","healwithclawonce")
function healwithclawonce(id)
	if (player(id,"weapontype")==78) then -- I think 78's claw
		parse("sethealth "..id.." "..(player(id,"health")+10)) --change 10 to the amount of HP you want to be healed
		parse("strip "..id.." 78")
	end
end

Something like that?
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview