Zeik1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
function new_players_array()
local players = {}
for id=1,32 do
players[id] = {image = nil} -- player's "properties"
end
return players
end
players = new_players_array()
addhook("say","anything")
function anything(id, txt)
local player = players[id]
if (txt=="!hat") then
if player.image then
freeimage(player.image)
player.image = nil
end
player.image = image("gfx/hats_menu/hat1.png",1,1,200+id)
return 1
end
if (txt=="!hat2") then
if player.image then
freeimage(player.image)
player.image = nil
end
player.image = image("gfx/hats_menu/hat2.png",1,1,200+id)
return 1
end
end
And it won't remove the hat after adding a new one! so any one of you guys have any other codes for removing hats?
Script not working!
1 
Offline