Forum

> > CS2D > General > Hats with kills
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Hats with kills

2 replies
To the start Previous 1 Next To the start

old Hats with kills

Jabama
User Off Offline

Quote
Hello, Does anyone have a script which when you get enough kills you can choose a hat. So like, 5 kills=pirate hat, 10 kills=another one..

old Re: Hats with kills

Yates
Reviewer Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
hat = {}

addhook("join","_join")
function _join(id)
	hat[id]=0
end

-- Copy/Paste this to where you want it to check whether they have enough score or not.
if player(id,"score") == [amount] then
	freeimage(hat[id])
	hat[id] = image("[imagelocation]",1,1,200+id)
end

Apply to where ever you want.
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview