addEventHandler("onClientGUIClick",root,
function ()
local sel = guiGridListGetSelectedItem(gridlist2)
local text = guiGridListGetItemText(gridlist2,sel,1)
local player = getPlayerFromName(text)
if ( source == delete ) then
if ( sel~=-1 ) then
setElementData( player, "Diamond",0)
end
end
end
)