kickme = guiCreateButton( 0.2, 0.52, 0.15, 0.05, "kick me", true )
cancel = guiCreateButton( 0.2, 0.60, 0.15, 0.05, "cancel", true )
addEventHandler( "onClientGUIClick", root,
function( )
if ( source == kickme ) then
kickTimer = setTimer( triggerServerEvent, 5000, 1, "kickPlayer", localPlayer )
elseif ( source == cancel ) then
if (kickTimer) and ( isTimer( kickTimer ) then
killTimer( kickTimer )
end
end
end, false
)