Forum

> > CS2D > Scripts > Why it does not works
Forums overviewCS2D overview Scripts overviewLog in to reply

English Why it does not works

5 replies
To the start Previous 1 Next To the start

old Why it does not works

IvanAkulichev
User Off Offline

Quote
--[[
35hp
]]--

addhook("spawn" , "hegrenade")
function hegrenade(id,player)
     if (player(id,"score")>10) then      parse("equip "..id.." 51 ")
end
end
what is my mistake?

old Re: Why it does not works

sheeL
User Off Offline

Quote
look this idea

1
2
3
4
5
6
addhook("spawn","_Spawn")
function _Spawn(id)
if player(id,"score") >10 then
	parse("equip "..id.." 51")
	end
end

old Re: Why it does not works

KagamineLen
User Off Offline

Quote
1
2
3
4
5
6
addhook("spawn" , "hegrenade")
function hegrenade(id)
    if player(id,"score") > 10 then
		parse("equip "..id.." 51")
	end
end

maybe this will work
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview