local player = getLocalPlayer()local tp_Time = 0;function open_teleport_gui()if tp_Time == 0 then--unbindKey ( \"F1\", \"down\", open_teleport_gui)function teleport_time() tp_Time = tp_Time + 1 if tp_Time == 60 then tp_Time = 0 endendsetTimer(teleport_time,1000,60)screen_x, screen_y = guiGetScreenSize()gui_x, gui_y = 1280,720x = (screen_x/2) - (gui_x/2) y = (screen_y/2) - (gui_y/2) ----GUI----showCursor(true)guiMap = guiCreateStaticImage(x, y, 1280, 720, \"images/gui_map.png\",false)guiSetVisible(guiMap, true)----GUI--------GOMBOK----btn_nagy_antenna = guiCreateLabel(66,168,289,180, \" \",false,guiMap)btn_parkolo = guiCreateLabel(496,168,289,180, \" \",false,guiMap)btn_sf_alatti = guiCreateLabel(926,168,289,180, \" \",false,guiMap)exit_button = guiCreateLabel(1228,20,30,30,\" \",false,guiMap)----GOMBOK----addEventHandler(\"onClientGUIClick\",btn_nagy_antenna,tp_nagy_antenna,false)addEventHandler(\"onClientGUIClick\",btn_parkolo,tp_parkolo,false)addEventHandler(\"onClientGUIClick\",btn_sf_alatti,tp_sf_alatti,false)addEventHandler(\"onClientGUIClick\",exit_button,hideguiMap,false)elseoutputChatBox (\"#FF0000 [sERVER] #00FFFF Csak egyszer teleportálhatsz percenként!!! #FF0000Hátralévő idő:\"..(60-tp_Time),255,255,255,true)endendaddCommandHandler(\"teleport\",open_teleport_gui)function hideguiMap()showCursor(false)function slow_alpha()alpha = guiGetAlpha(guiMap)guiSetAlpha(guiMap, alpha - 0.05)endsetTimer(slow_alpha,50,20)if (alpha==0) then guiSetVisible(guiMap,false)end end function tp_nagy_antenna()--outputChatBox(\"Jó helyen van!\")setElementPosition ( player, math.random(-346.6,-339.7) ,math.random(1535.5,1549), 75.6 )hideguiMap()endfunction tp_parkolo()--outputChatBox(\"Jó helyen van!\")setElementPosition ( player, math.random (2349.5,2356.1) ,math.random (1503.8,1512.5), 43 )hideguiMap()endfunction tp_sf_alatti()--outputChatBox(\"Jó helyen van!\")setElementPosition ( player, math.random(-2524.5,-2518) ,-622, 132 )hideguiMap()end function bind_f1()function cursor()showCursor(true)endbindKey(\"m\", \"down\", cursor)bindKey ( \"F1\", \"down\", open_teleport_gui)endaddEventHandler(\"onClientResourceStart\",getRootElement(),bind_f1)
local player = getLocalPlayer()local tp_Time = 0;local lehetGombotNyomni = true;function open_teleport_gui() if (lehetGombotNyomni == false) then outputChatBox (\"#FF0000 [sERVER] #00FFFF Csak egyszer teleportálhatsz percenként!!! #FF0000Hátralévő idő:\"..(60-tp_Time),255,255,255,true) return;end if tp_Time == 0 then function teleport_time() tp_Time = tp_Time + 1 if tp_Time == 60 then tp_Time = 0 lehetGombotNyomni = true; end end setTimer(teleport_time,1000,60) screen_x, screen_y = guiGetScreenSize() gui_x, gui_y = 1280,720 x = (screen_x/2) - (gui_x/2) y = (screen_y/2) - (gui_y/2) ----GUI---- showCursor(true) guiMap = guiCreateStaticImage(x, y, 1280, 720, \"images/gui_map.png\",false) guiSetVisible(guiMap, true) ----GUI---- ----GOMBOK---- btn_nagy_antenna = guiCreateLabel(66,168,289,180, \" \",false,guiMap) btn_parkolo = guiCreateLabel(496,168,289,180, \" \",false,guiMap) btn_sf_alatti = guiCreateLabel(926,168,289,180, \" \",false,guiMap) exit_button = guiCreateLabel(1228,20,30,30,\" \",false,guiMap) ----GOMBOK---- addEventHandler(\"onClientGUIClick\",btn_nagy_antenna,tp_nagy_antenna,false) addEventHandler(\"onClientGUIClick\",btn_parkolo,tp_parkolo,false) addEventHandler(\"onClientGUIClick\",btn_sf_alatti,tp_sf_alatti,false) addEventHandler(\"onClientGUIClick\",exit_button,hideguiMap,false) endendaddCommandHandler(\"teleport\",open_teleport_gui)function hideguiMap() showCursor(false) function slow_alpha() alpha = guiGetAlpha(guiMap) guiSetAlpha(guiMap, alpha - 0.05) end setTimer(slow_alpha,50,20) if (alpha==0) then guiSetVisible(guiMap,false) end end function tp_nagy_antenna() --outputChatBox(\"Jó helyen van!\") setElementPosition ( player, math.random(-346.6,-339.7) ,math.random(1535.5,1549), 75.6 ) hideguiMap()lehetGombotNyomni = false;endfunction tp_parkolo() --outputChatBox(\"Jó helyen van!\") setElementPosition ( player, math.random (2349.5,2356.1) ,math.random (1503.8,1512.5), 43 ) hideguiMap()lehetGombotNyomni = false;endfunction tp_sf_alatti() --outputChatBox(\"Jó helyen van!\") setElementPosition ( player, math.random(-2524.5,-2518) ,-622, 132 ) hideguiMap()lehetGombotNyomni = false;end function bind_f1() function cursor() showCursor(true) end bindKey(\"m\", \"down\", cursor) bindKey ( \"F1\", \"down\", open_teleport_gui)endaddEventHandler(\"onClientResourceStart\",getRootElement(),bind_f1)
function hideguiMap()showCursor(false)function slow_alpha()alpha = guiGetAlpha(guiMap)guiSetAlpha(guiMap, alpha - 0.05)if(alpha==0) then guiSetVisible(guiMap,false)endendsetTimer(slow_alpha,50,21) end