Forum
CS2D Scripts Only hats for a menu"say"first in
hats.hookstable and add this at the nearly end of your code.
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
function h_say(id, message) if string.sub(message, 1, 10) == "!removehat" then if hats.player[id] then freeimage(hats.player[id]) hats.player[id] = nil msg2(id, "Your hat has been successfully removed!") else msg2(id, "You don't have any hat!") end return 1 end end
My code in GeoB99's post contains what you wanted. Check line 67 and line 105. It will remove hat if the player is a terrorist. That's what you asked me for before.