Forum

> > CS2D > Scripts > if player(kills) = __ then
Forums overviewCS2D overview Scripts overviewLog in to reply

English if player(kills) = __ then

3 replies
To the start Previous 1 Next To the start

old if player(kills) = __ then

Alistaire
User Off Offline

Quote
Is it possible to use this Lua command, like;

1
2
3
if player(id,"kills")==10 then
	MM.classes.tier="tier2"
end

Cause on the cs2d site help, it seems there is only 1 Lua command which changes with kills;

CS2D.com/help has written
Return a value of a player: (...) money, score, deaths, teamkills, hostagekills, teambuildingkills

old Re: if player(kills) = __ then

EngiN33R
Moderator Off Offline

Quote
I think there isn't a value which actually returns the frag count of a player, only the score.

Although,
1
2
3
4
5
6
7
8
9
fragcount={}
for i=1,32 do
fragcount[i]=0
end

addhook("kill","killcount")
function killcount(id)
fragcount[id]=fragcount[id]+1
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview