GeoB99: Thanks man, you know how I put in the script a button to remove the image through the menu? Forum
Scripts
Only hats for a menu
GeoB99: Thanks man, you know how I put in the script a button to remove the image through the menu?
Rainoth comes and gives you a better way. Note that you must add "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.
Only hats for a menu


Offline