I've searched and viewed a few topics and they seem to use arrays and what not which I don't know how to add to my code.
My request is just to make this work
Hope this is not too hard for you guys because it is for me
freeimage(pl)being executed. Here's the approach how to handle the way of removing the previous hats.
local hat_images = {}
removedp_msg2(id,color.white,"["..script_name.."]: "..color.yellow.."You have bought a Devil hat.")
rp_msg2(id,color.white,"["..script_name.."]: "..color.yellow.."You have bought a Devil hat.")
if (hat_images[pl]) then
if not (hat_images[pl]) then