addEventHandler("onClientGUIClick",GUIEditor.button[2],
function ( )
if guiGetText(GUIEditor.edit[1]) ~= '' then
triggerServerEvent("support",localPlayer,guiGetText(GUIEditor.edit[1]))
guiSetText (GUIEditor.edit[1], "" )
end
end,false
)
addEvent("sendmessage2",true)
addEventHandler("sendmessage2",root,
function ( Name,Text )
local hour = getRealTime().hour
local minute = getRealTime().minute
local second = getRealTime().second+1
local gg = guiGridListAddRow(GUIEditor.gridlist[2])
if ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) then
guiGridListSetItemText ( GUIEditor.gridlist[2],gg,1,"["..tostring(hour)..":"..tostring(minute)..":" ..tostring(second).."] [support] "..Name:gsub("#%x%x%x%x%x%x", "") ..": " .. Text , false, false )
guiGridListSetItemColor ( GUIEditor.gridlist[2],gg, 1, 255, 0, 255 )
elseif ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == true ) then
guiGridListSetItemText ( GUIEditor.gridlist[2],gg, 2, "["..tostring(hour)..":"..tostring(minute)..":" ..tostring(second).."] [Player] "..Name:gsub("#%x%x%x%x%x%x", "") ..": " .. Text , false, false )
guiGridListSetItemColor ( GUIEditor.gridlist[2],gg, 2, 255, 136, 0 )
end
end
)