Ez a szekció lehetővé teszi a felhasználó által írt összes hozzászólás megtekintését. Vedd figyelembe, hogy csak azokba a fórumokba írt hozzászólásokat látod, amelyekhez hozzáférésed van.
Témák - thegergo02
Oldalak: 1 2 [3] 4 5 ... 7
31
« Dátum: 2017. Március 26. - 16:24:07 »
Sziasztok! Ugy gondolom hogyha onClientQuit-re (vgay milyen most igy nem jut eszembe) tennék mentést akkor az elmentödne? (dbExec) //Telo
32
« Dátum: 2017. Március 26. - 12:54:48 »
Sziasztok! Eddig jól müködött a kód, de rájöttem minden sorban megváltoztatja az értéket, hogy kéne átírnom. (K*rv* sokat kerestem, de nem sikerült megoldanom.) exports.mysql:_QuerySingle(\"UPDATE `??` SET `??`=? WHERE \'??\' = ?\", \"users\", \"characterVan\", 1, \"username\",getAccount(getPlayerName(whoIs))) --A whoIs-t megkapja kliens oldaról
33
« Dátum: 2017. Március 25. - 17:19:43 »
Sziasztok! Eddig így csináltam mindig a triggerelést kliensről, szerverre de most valamiért azt írja a debug nincs hozzáadva szerver oldalon az event. Szerver oldal (Az event hozzáadás) addEvent(\"createCharacter1\",true) addEventHandler(\"createCharacter1\",getRootElement(),createCharacter) Kliens oldal (Triggerelés) triggerServerEvent(\"createCharacter1\",resourceRoot,characterNameText,ageText,skinID)
34
« Dátum: 2017. Január 19. - 14:48:38 »
Sziasztok! Van egy funkcióm ami megváltoztatná, hogy melyik editBox(ok) maradjanak, és melyikek nem. A bejelentkezésnél jó, de a regisztrációnál ottmarad a bejelentkezéses. panelState = 1 volteegy = 0 volteketto = 0 function reg() ui = guiCreateEdit(0.46, 0.41, 0.17, 0.02, \"\", true) showCursor(true) pi = guiCreateEdit(0.42, 0.53, 0.21, 0.02, \"\", true) if panelState == 2 then if volteketto == 0 then regu = guiCreateEdit(0.46, 0.34, 0.17, 0.02, \"\", true) email = guiCreateEdit(0.41, 0.38, 0.21, 0.02, \"\", true) regp = guiCreateEdit(0.41, 0.42, 0.21, 0.02, \"\", true) regpa = guiCreateEdit(0.44, 0.46, 0.19, 0.02, \"\", true) end guiSetVisible ( regu, true ) guiSetVisible ( email, true ) guiSetVisible ( regp, true ) guiSetVisible ( regpa, true ) guiEditSetReadOnly ( regu, false ) guiEditSetReadOnly ( email, false ) guiEditSetReadOnly ( regp, false ) guiEditSetReadOnly ( regpa, false ) if volteegy == 1 then guiSetVisible ( ui, false ) guiSetVisible ( pi, false ) guiEditSetReadOnly ( ui, true ) guiEditSetReadOnly ( pi, true ) end volteketto = 1 elseif panelState == 1 then if volteegy == 0 then ui = guiCreateEdit(0.46, 0.41, 0.17, 0.02, \"\", true) pi = guiCreateEdit(0.42, 0.53, 0.21, 0.02, \"\", true) end if volteketto == 1 then guiSetVisible ( regu, false ) guiSetVisible ( email, false ) guiSetVisible ( regp, false ) guiSetVisible ( regpa, false )
guiEditSetReadOnly ( regu, true ) guiEditSetReadOnly ( email, true ) guiEditSetReadOnly ( regp, true ) guiEditSetReadOnly ( regpa, true ) end guiSetVisible ( ui, true ) guiSetVisible ( pi, true ) guiEditSetReadOnly ( ui, false ) guiEditSetReadOnly ( pi, false ) volteegy = 1 end end addEventHandler(\"onClientResourceStart\",getRootElement(),reg) addEvent(\"reg\",true) addEventHandler(\"reg\",getRootElement(),reg) local screenW, screenH = guiGetScreenSize() addEventHandler(\"onClientRender\", root, function() if panelState == 1 then uig = guiGetText(ui) pig = guiGetText(pi) dxDrawRectangle(screenW * 0.3823, screenH * 0.2713, screenW * 0.2417, screenH * 0.4944, tocolor(1, 0, 0, 230), false) dxDrawText(\"TopMTA - LoginPanel\", screenW * 0.3812, screenH * 0.2713, screenW * 0.6240, screenH * 0.3074, tocolor(255, 255, 255, 255), 1.00, \"bankgothic\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"FelhasználóNév:\", screenW * 0.3823, screenH * 0.4037, screenW * 0.4557, screenH * 0.4352, tocolor(255, 255, 255, 255), 0.50, \"bankgothic\", \"left\", \"center\", false, false, false, false, false) dxDrawText(\"Jelszó:\", screenW * 0.3823, screenH * 0.5287, screenW * 0.4557, screenH * 0.5602, tocolor(255, 255, 255, 255), 0.50, \"bankgothic\", \"left\", \"center\", false, false, false, false, false) dxDrawRectangle(screenW * 0.3859, screenH * 0.7019, screenW * 0.1052, screenH * 0.0491, tocolor(8, 8, 8, 230), false) dxDrawRectangle(screenW * 0.5156, screenH * 0.7019, screenW * 0.1052, screenH * 0.0491, tocolor(8, 8, 8, 230), false) dxDrawText(\"Bejelentkezés\", 739, 759, 943, 811, tocolor(255, 255, 255, 255), 0.50, \"bankgothic\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"Regisztráció\", 988, 758, 1192, 810, tocolor(255, 255, 255, 255), 0.50, \"bankgothic\", \"center\", \"center\", false, false, false, false, false) elseif panelState == 2 then dxDrawRectangle(screenW * 0.3823, screenH * 0.2713, screenW * 0.2417, screenH * 0.4944, tocolor(1, 0, 0, 230), false) dxDrawText(\"TopMTA - LoginPanel\", screenW * 0.3812, screenH * 0.2713, (screenW * 0.3812) + 466, ( screenH * 0.2713) + 39, tocolor(255, 255, 255, 255), 1.00, \"bankgothic\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"FelhasználóNév:\", screenW * 0.3823, screenH * 0.3352, screenW * 0.4557, screenH * 0.3667, tocolor(255, 255, 255, 255), 0.50, \"bankgothic\", \"left\", \"center\", false, false, false, false, false) dxDrawText(\"Jelszó:\", screenW * 0.3823, screenH * 0.4167, screenW * 0.4557, screenH * 0.4481, tocolor(255, 255, 255, 255), 0.50, \"bankgothic\", \"left\", \"center\", false, false, false, false, false) dxDrawRectangle(screenW * 0.4505, screenH * 0.7074, screenW * 0.1052, screenH * 0.0491, tocolor(8, 8, 8, 230), false) dxDrawText(\"Regisztráció\", screenW * 0.4495, screenH * 0.7074, screenW * 0.5557, screenH * 0.7556, tocolor(255, 255, 255, 255), 0.50, \"bankgothic\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"E-Mail:\", screenW * 0.3823, screenH * 0.3759, screenW * 0.4557, screenH * 0.4074, tocolor(255, 255, 255, 255), 0.50, \"bankgothic\", \"left\", \"center\", false, false, false, false, false) dxDrawText(\"Jelszó újra:\", screenW * 0.3823, screenH * 0.4574, screenW * 0.4557, screenH * 0.4889, tocolor(255, 255, 255, 255), 0.50, \"bankgothic\", \"left\", \"center\", false, false, false, false, false) dxDrawRectangle(screenW * 0.3823, screenH * 0.7157, screenW * 0.0260, screenH * 0.0491, tocolor(8, 8, 8, 255), false) dxDrawLine(screenW * 0.3833, screenH * 0.7583, screenW * 0.4057, screenH * 0.7185, tocolor(255, 255, 255, 255), 1, false) dxDrawLine(screenW * 0.3839, screenH * 0.7194, screenW * 0.4047, screenH * 0.7565, tocolor(255, 255, 255, 255), 1, false) else --semmi end end ) function dobozbaVan(dX, dY, dSZ, dM, eX, eY) if(eX >= dX and eX <= dX+dSZ and eY >= dY and eY <= dY+dM) then return true else return false end end function elore (gomb, statusz, absX, absY) if statusz == \"down\" and gomb == \"left\" then if dobozbaVan(screenW * 0.3859, screenH * 0.7019, screenW * 0.1052, screenH * 0.0491, absX, absY) then if panelState == 1 then outputChatBox(\"bejelentkezes\") --who = localPlayer --triggerServerEvent ( \"check\", resourceRoot, uig,pig,who ) end elseif dobozbaVan(screenW * 0.5156, screenH * 0.7019, screenW * 0.1052, screenH * 0.0491, absX, absY) then if panelState == 1 then outputChatBox(\"at dob regisztracio\") panelState = 2 reg() end elseif dobozbaVan(screenW * 0.3823, screenH * 0.7157, screenW * 0.0260, screenH * 0.0491, absX, absY) then panelState = 1 reg() end end end addEventHandler(\"onClientClick\",getRootElement(),elore)
35
« Dátum: 2017. Január 18. - 15:29:18 »
Sziasztok! A debug se, se a Console nem ír semmit. Ha nem adok meg valami adatot akkor teszi amit kell, de ha jót adok meg akkor csak amit kliens oldalon kell azt teszi meg. client: u = {} GUIEditor = { edit = {} } addEventHandler(\"onClientResourceStart\", resourceRoot, function() ui = guiCreateEdit(0.46, 0.41, 0.17, 0.02, \"\", true) showCursor(true) pi = guiCreateEdit(0.42, 0.53, 0.21, 0.02, \"\", true) end ) local screenW, screenH = guiGetScreenSize() addEventHandler(\"onClientRender\", root, function() uig = guiGetText(ui) pig = guiGetText(pi) dxDrawRectangle(screenW * 0.3823, screenH * 0.2713, screenW * 0.2417, screenH * 0.4944, tocolor(1, 0, 0, 230), false) dxDrawText(\"TopMTA - LoginPanel\", screenW * 0.3812, screenH * 0.2713, screenW * 0.6240, screenH * 0.3074, tocolor(255, 255, 255, 255), 1.00, \"bankgothic\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"FelhasználóNév:\", screenW * 0.3823, screenH * 0.4037, screenW * 0.4557, screenH * 0.4352, tocolor(255, 255, 255, 255), 0.50, \"bankgothic\", \"left\", \"center\", false, false, false, false, false) dxDrawText(\"Jelszó:\", screenW * 0.3823, screenH * 0.5287, screenW * 0.4557, screenH * 0.5602, tocolor(255, 255, 255, 255), 0.50, \"bankgothic\", \"left\", \"center\", false, false, false, false, false) dxDrawRectangle(screenW * 0.3859, screenH * 0.7019, screenW * 0.1052, screenH * 0.0491, tocolor(8, 8, 8, 230), false) dxDrawRectangle(screenW * 0.5156, screenH * 0.7019, screenW * 0.1052, screenH * 0.0491, tocolor(8, 8, 8, 230), false) dxDrawText(\"Bejelentkezés\", 739, 759, 943, 811, tocolor(255, 255, 255, 255), 0.50, \"bankgothic\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"Regisztráció\", 988, 758, 1192, 810, tocolor(255, 255, 255, 255), 0.50, \"bankgothic\", \"center\", \"center\", false, false, false, false, false) end ) function dobozbaVan(dX, dY, dSZ, dM, eX, eY) if(eX >= dX and eX <= dX+dSZ and eY >= dY and eY <= dY+dM) then return true else return false end end function elore (gomb, statusz, absX, absY) if statusz == \"down\" and gomb == \"left\" then if dobozbaVan(screenW * 0.3859, screenH * 0.7019, screenW * 0.1052, screenH * 0.0491, absX, absY) then outputChatBox(\"bejelentkezes\") who = localPlayer triggerServerEvent ( \"check\", resourceRoot, uig,pig,who ) elseif dobozbaVan(screenW * 0.5156, screenH * 0.7019, screenW * 0.1052, screenH * 0.0491, absX, absY) then outputChatBox(\"regisztracio\") end end end addEventHandler(\"onClientClick\",getRootElement(),elore)
server: function checklogin(u,p,w) local ui = u local pi = p local who = w if ui == \"\" or pi == \"\" then outputChatBox(\"Nem írtál be valamilyen adatot!\",who) elseif getAccount(ui,pi) == true then logIn(who,ui,pi) outputChatBox(\"Sikeres bejelentkezés!\",who) end end addEvent(\"check\",true) addEventHandler(\"check\",getRootElement(),checklogin)
36
« Dátum: 2016. December 24. - 15:21:54 »
Sziasztok! A portjaimat kinyitottam (22003 UDP ,22005 TCP ,22126 UDP) upc-s routeremen, a tűzfalnál a kimenő -és bemenő kapcsolatoknál is engedélyeztem a portokat, de a szerver console-ja még mindig closed-nak jelzi. Mi lehet a gebasz? (Target IP addresnek az IPv4 címet adtam meg)
37
« Dátum: 2016. December 23. - 22:19:56 »
Sziasztok! ( https://community.multitheftauto.com/index.php?p=gallery&s=show&pic=18199 ) Ez egy communitys script, de hogyan tudnám változtatni a kép pozicióját? Egyszerűen nem találom a kordinátákat. Köszönöm annak aki segít! (Aki nem szeret letöltögetni:) local cWindow = guiCreateWindow(337, 177, 816, 762, \"CINEMA\", false) local browser = guiCreateBrowser(0, 0, 800, 600, false, false, false, cWindow) local theBrowser = guiGetBrowser(browser) addEventHandler(\"onClientBrowserCreated\", theBrowser, function() loadBrowserURL(source, \"http://www.youtube.com\") end )
CINEMA = { button = {}, window = {}, edit = {} } addEventHandler(\"onClientResourceStart\", resourceRoot, function() guiWindowSetSizable(cWindow, false) guiSetProperty(cWindow, \"CaptionColour\", \"FF0309FB\") guiSetVisible(cWindow,false) CINEMA.button[1] = guiCreateButton(9, 608, 388, 35, \"GET URL\", false, cWindow) guiSetFont(CINEMA.button[1], \"default-bold-small\") guiSetProperty(CINEMA.button[1], \"NormalTextColour\", \"FFFF0000\") CINEMA.button[2] = guiCreateButton(427, 608, 381, 35, \"PUT VIDEO IN CINEMA\", false, cWindow) guiSetFont(CINEMA.button[2], \"default-bold-small\") guiSetProperty(CINEMA.button[2], \"NormalTextColour\", \"FFFF0000\") CINEMA.button[3] = guiCreateButton(10, 653, 388, 35, \"CLOSE\", false, cWindow) guiSetFont(CINEMA.button[3], \"default-bold-small\") guiSetProperty(CINEMA.button[3], \"NormalTextColour\", \"FFFF0000\") CINEMA.button[4] = guiCreateButton(425, 654, 383, 34, \"VIEW VIDEO IN FULL SCREEN MODE\", false, cWindow) guiSetFont(CINEMA.button[4], \"default-bold-small\") guiSetProperty(CINEMA.button[4], \"NormalTextColour\", \"FFFF0000\") CINEMA.edit[1] = guiCreateEdit(11, 700, 796, 52, \"\", false, cWindow) guiEditSetReadOnly(CINEMA.edit[1], true) end )
function geturl() if source == CINEMA.button[1] then guiSetText(CINEMA.edit[1],getBrowserURL(theBrowser)) end end addEventHandler(\"onClientGUIClick\",root,geturl)
function dxDrawImage3D(x,y,z,w,h,m,c,r,...) local lx, ly, lz = x+w, y+h, (z+tonumber(r or 0)) or z return dxDrawMaterialLine3D(x,y,z, lx, ly, lz, m, h, c , ...) end local screenWidth, screenHeight = guiGetScreenSize() local webBrowser = createBrowser(screenWidth, screenHeight, false, false) function webBrowserRender() local x, y = 110.7, 1024.15 dxDrawMaterialLine3D(x, y, 23.25, x, y, 14.75, webBrowser, 18.2, tocolor(255, 255, 255, 255), x, y+1, 19) end function fullscreen() local URLs = string.sub(guiGetText(CINEMA.edit[1]),\"33\") if source == CINEMA.button[4] then loadBrowserURL(webBrowser, \"https://www.youtube.com/embed/\"..URLs..\"?autoplay=1&iv_load_policy=3&enablejsapi=1&fs=0&theme=light\") end end addEventHandler(\"onClientGUIClick\",root,fullscreen) function brow() if source == CINEMA.button[2] then loadBrowserURL(webBrowser, guiGetText(CINEMA.edit[1])) addEventHandler(\"onClientPreRender\", root, webBrowserRender) end end addEventHandler(\"onClientBrowserCreated\", webBrowser, brow) addEventHandler(\"onClientGUIClick\",root,brow) function url() guiSetVisible(cWindow,true) showCursor( true ) guiSetInputEnabled( true ) end addCommandHandler(\"cinema\",url) function closeman() if source == CINEMA.button[3] then guiSetVisible(cWindow,false) showCursor( false ) guiSetInputEnabled( false ) end end addEventHandler(\"onClientGUIClick\",root,closeman)
38
« Dátum: 2016. November 22. - 18:06:51 »
Sziasztok! DebugScript: ERROR: Client (Greg) triggered serverside event, but event is not added serverside Client: local money = getPlayerMoney(localPlayer) local screenW, screenH = guiGetScreenSize() aholtart = 1 local panelState = false local markerPosition = 543.06183, -1292.82703, 17.24219 local asd = false local marker = createMarker(543.06183, -1292.82703, 17.24219, \"cylinder\",1.5, 255, 255, 255, 255) kocsik = {} kocsikara = {} kocsikfajtaja = {} kocsivegseb = {} kocsik[1] = 602 kocsik[2] = 477 kocsikara[1] = 100000 kocsikara[2] = 200000 kocsikfajtaja[1] = \"Alpha\" kocsikfajtaja[2] = \"ZR-350\" kocsivegseb[1] = 200 kocsivegseb[2] = 300 addEventHandler(\"onClientRender\", root, function() asdasd = aholtart if panelState == true then dxDrawText(\"Előre választott színek\", screenW * 0.7948, screenH * 0.4324, screenW * 0.9318, screenH * 0.4500, tocolor(255, 255, 255, 255), 1.00, \"default-bold\", \"center\", \"center\", false, false, false, false, false) --dxDrawText(\"Színválasztás\", screenW * 0.8193, screenH * 0.8111, screenW * 0.9094, screenH * 0.8269, tocolor(255, 255, 255, 255), 1.00, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawRectangle(screenW * 0.7510, screenH * 0.2991, 441, 571, tocolor(0, 0, 0, 200), false) dxDrawRectangle(screenW * 0.8286, screenH * 0.5741, screenW * 0.0625, screenH * 0.0324, tocolor(0, 0, 0, 255), false) dxDrawText(\"Vásárlás\", screenW * 0.8323, screenH * 0.5769, screenW * 0.8885, screenH * 0.6037, tocolor(255, 255, 255, 255), 2.00, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(kocsikfajtaja[asdasd], 1489, 329, 1845, 360, tocolor(255, 255, 255, 255), 2.00, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawRectangle(screenW * 0.7573, screenH * 0.3500, 282, 40, tocolor(0, 0, 0, 230), false) dxDrawText(\"Ára : \"..kocsikara[asdasd]..\" C$\", 1454, 377, 1532, 418, tocolor(255, 255, 255, 255), 2.00, \"default-bold\", \"left\", \"center\", false, false, false, false, false) dxDrawRectangle(screenW * 0.7573, screenH * 0.3963, 282, 39, tocolor(0, 0, 0, 230), false) dxDrawText(\"Végsebesség : \"..kocsivegseb[asdasd]..\" MP/H\", screenW * 0.7573, screenH * 0.3944, (screenW * 0.7573) + 78, ( screenH * 0.3944) + 41, tocolor(255, 255, 255, 255), 1.00, \"default-bold\", \"left\", \"center\", false, false, false, false, false) dxDrawRectangle(screenW * 0.7562, screenH * 0.4519, 51, 43, tocolor(255, 255, 255, 255), false) dxDrawRectangle(screenW * 0.7880, screenH * 0.4519, 51, 43, tocolor(0, 0, 0, 255), false) dxDrawRectangle(screenW * 0.8198, screenH * 0.4519, 51, 43, tocolor(28, 204, 61, 255), false) dxDrawRectangle(screenW * 0.8516, screenH * 0.4519, 51, 43, tocolor(42, 163, 189, 255), false) dxDrawRectangle(screenW * 0.8833, screenH * 0.4519, 51, 43, tocolor(21, 20, 97, 255), false) dxDrawRectangle(screenW * 0.9151, screenH * 0.4519, 51, 43, tocolor(116, 0, 0, 255), false) dxDrawRectangle(screenW * 0.9469, screenH * 0.4519, 51, 43, tocolor(211, 117, 25, 255), false) dxDrawRectangle(screenW * 0.7562, screenH * 0.5009, 51, 43, tocolor(233, 219, 2, 255), false) dxDrawRectangle(screenW * 0.7880, screenH * 0.5009, 51, 43, tocolor(202, 25, 209, 255), false) dxDrawRectangle(screenW * 0.8198, screenH * 0.5009, 51, 43, tocolor(98, 12, 153, 255), false) dxDrawRectangle(screenW * 0.8516, screenH * 0.5009, 51, 43, tocolor(77, 40, 20, 255), false) dxDrawRectangle(screenW * 0.8833, screenH * 0.5009, 51, 43, tocolor(49, 48, 47, 255), false) --dxDrawRectangle(screenW * 0.9464, screenH * 0.7037, screenW * 0.0328, screenH * 0.0278, tocolor(0, 0, 0, 255), false) dxDrawText(\"Előre\", screenW * 0.9464, screenH * 0.7000, (screenW * 0.9464) + 66, ( screenH * 0.7000) + 35, tocolor(255, 255, 255, 255), 2.00, \"default-bold\", \"center\", \"center\", false, false, false, false, false) --dxDrawRectangle(screenW * 0.7516, screenH * 0.7037, screenW * 0.0339, screenH * 0.0269, tocolor(0, 0, 0, 255), false) dxDrawText(\"Hátra\", screenW * 0.7510, screenH * 0.7000, (screenW * 0.7510) + 68, ( screenH * 0.7000) + 34, tocolor(255, 255, 255, 255), 2.00, \"default-bold\", \"center\", \"center\", false, false, false, false, false) --[[dxDrawText(\"Fehér\", dxDrawText(\"Fekete\", dxDrawText(\"Züld\", dxDrawText(\"Világos Kík\", dxDrawText(\"Sötét Kík\", dxDrawText(\"Piros\", dxDrawText(\"Narancssárga\", dxDrawText(\"Citromsárga\", dxDrawText(\"Rózsaszín\", dxDrawText(\"Lila\", dxDrawText(\"Barna\", dxDrawText(\"Szürke\", ]] end end ) function changePanelState () if panelState == false and source == marker then showCursor(true) createVehicle01() panelState = true setCameraMatrix(536.54602, -1298.54370, 32.54056,542.45947, -1296.78247, 32.54056) elseif panelState == true then showCursor(false) destroyElement(theVehicle) panelState = false setCameraTarget(localPlayer) asd = false end end function changeColor () if color == \"white\" then setVehicleColor(lehivott_kocsi,255,255,255) elseif color == \"black\" then setVehicleColor(lehivott_kocsi,0,0,0) elseif color == \"green\" then setVehicleColor(lehivott_kocsi,26,255,0) elseif color == \"blue0\" then setVehicleColor(lehivott_kocsi,0,255,247) elseif color == \"blue1\" then setVehicleColor(lehivott_kocsi,0,34,255) elseif color == \"red\" then setVehicleColor(lehivott_kocsi,255,0,0) elseif color == \"orange\" then setVehicleColor(lehivott_kocsi,255,205,0) elseif color == \"yellow\" then setVehicleColor(lehivott_kocsi,247,255,0) elseif color == \"pink\" then setVehicleColor(lehivott_kocsi,255,0,239) elseif color == \"purple\" then setVehicleColor(lehivott_kocsi,145,0,255) elseif color == \"brown\" then setVehicleColor(lehivott_kocsi,125,83,0) elseif color == \"grey\" then setVehicleColor(lehivott_kocsi,95,93,89) end end addEventHandler(\"onClientMarkerHit\",marker,changePanelState) function dobozbaVan(dX, dY, dSZ, dM, eX, eY) if(eX >= dX and eX <= dX+dSZ and eY >= dY and eY <= dY+dM) then return true else return false end end function elore (gomb, statusz, absX, absY) if panelState == true then if statusz == \"down\" and gomb == \"left\" then if dobozbaVan(screenW * 0.9464, screenH * 0.7037, screenW * 0.0328, screenH * 0.0278, absX, absY) then if aholtart == 2 then outputChatBox(\"elore 2 vót 1 lett\") aholtart = 1 createVehicle01() elseif aholtart == 1 then outputChatBox(\"elore 1 vót 2 lett\") aholtart = 2 createVehicle01() end elseif dobozbaVan(screenW * 0.7516, screenH * 0.7037, screenW * 0.0339, screenH * 0.0269, absX, absY) then if aholtart == 2 then outputChatBox(\"hatra 2 vót 1 lett\") aholtart = 1 createVehicle01() elseif aholtart == 1 then outputChatBox(\"hatra 1 vót 2 lett\") aholtart = 2 createVehicle01() end elseif dobozbaVan(screenW * 0.8286, screenH * 0.5741, screenW * 0.0625, screenH * 0.0324,absX, absY) then local money = getPlayerMoney(localPlayer) if money == kocsikara[asdasd] or money > kocsikara[asdasd] then playSound(\"sounds/igen.wav\") setPlayerMoney(money-kocsikara[asdasd]) outputChatBox(\"Megvásároltad\") changePanelState() triggerServerEvent ( \"onBuy\", resourceRoot) --lehivott_kocsi = createVehicle(kocsik[asdasd],536.04828, -1278.91553, 17.24219) --changeColor() elseif money < kocsikara[asdasd] then playSound(\"sounds/nem.mp3\") outputChatBox(\"Nincs elég pénzed\") end elseif dobozbaVan(screenW * 0.7562, screenH * 0.4519, 51, 43,absX, absY) then --Fehér color = \"white\" setVehicleColor(theVehicle,255,255,255) elseif dobozbaVan(screenW * 0.7880, screenH * 0.4519, 51, 43,absX, absY) then --Fekete color = \"black\" setVehicleColor(theVehicle,0,0,0) elseif dobozbaVan(screenW * 0.8198, screenH * 0.4519, 51, 43,absX, absY) then --Zöld color = \"green\" setVehicleColor(theVehicle,26,255,0) elseif dobozbaVan(screenW * 0.8516, screenH * 0.4519, 51, 43,absX, absY) then --Világos Kék color = \"blue0\" setVehicleColor(theVehicle,0,255,247) elseif dobozbaVan(screenW * 0.8833, screenH * 0.4519, 51, 43,absX, absY) then --Sötét Kék color = \"blue1\" setVehicleColor(theVehicle,0,34,255) elseif dobozbaVan(screenW * 0.9151, screenH * 0.4519, 51, 43,absX, absY) then --Piros color = \"red\" setVehicleColor(theVehicle,255,0,0) elseif dobozbaVan(screenW * 0.9469, screenH * 0.4519, 51, 43,absX, absY) then --Narancs color = \"orange\" setVehicleColor(theVehicle,255,205,0) elseif dobozbaVan(screenW * 0.7562, screenH * 0.5009, 51, 43,absX, absY) then --Citrom color = \"yellow\" setVehicleColor(theVehicle,247,255,0) elseif dobozbaVan(screenW * 0.7880, screenH * 0.5009, 51, 43,absX, absY) then --Rózsaszín color = \"pink\" setVehicleColor(theVehicle,255,0,239) elseif dobozbaVan(screenW * 0.8198, screenH * 0.5009, 51, 43,absX, absY) then --Lila color = \"purple\" setVehicleColor(theVehicle,145,0,255) elseif dobozbaVan(screenW * 0.8516, screenH * 0.5009, 51, 43,absX, absY) then --Barna color = \"brown\" setVehicleColor(theVehicle,125,83,0) elseif dobozbaVan(screenW * 0.8833, screenH * 0.5009, 51, 43,absX, absY) then --Szürke color = \"grey\" setVehicleColor(theVehicle,95,93,89) end end end end addEventHandler(\"onClientClick\", getRootElement(), elore) function createVehicle01 () if asd == true then destroyElement(theVehicle) theVehicle = createVehicle(kocsik[asdasd],542.45947, -1296.78247, 32.54056) elseif asd == false then theVehicle = createVehicle(kocsik[asdasd],542.45947, -1296.78247, 32.54056) asd = true end end function bindTheKeys () bindKey (\"backspace\", \"down\", changePanelState) end addEventHandler(\"onClientResourceStart\", getRootElement(),bindTheKeys) --Faveágó munka: -1686.99292 -2153.87622 38.72948 function test(commandName,cuccos) setPlayerMoney(cuccos) end addCommandHandler(\"setCash\",test) Server: function createVehForPlayer () theVehicle = createVehicle(kocsik[aholtart],536.04828, -1278.91553, 17.24219) --setVehicleColor(theVehicle,color) end addEvent( \"onBuy\", true ) addEventHandler( \"onBuy\", resourceRoot, createVehForPlayer ) Egy resource-ban vannak!
39
« Dátum: 2016. November 20. - 09:48:31 »
Sziasztok! Van egy dx-es panelem de \"gombokat\" hogyan tudnék csinálni? Mert a mostani módszerem mindik a körülötte lévő teret is gombnak veszi. function dobozbaVan(dX, dY, dSZ, dM, eX, eY) if(eX >= dX and eX <= dX+dSZ and eY >= dY and eY <= dY+dM) then return true else return false end end function elore (gomb, statusz, absX, absY) if panelsState == true then if statusz == \"down\" and gomb == \"left\" then if dobozbaVan(screenW * 0.9464, screenH * 0.7000, screenW * 0.9807, screenH * 0.7324, absX, absY) then if aholtart == 2 then outputChatBox(\"elore 2 vót 1 lett\") aholtart = 1 createVehicle01() elseif aholtart == 1 then outputChatBox(\"elore 1 vót 2 lett\") aholtart = 2 createVehicle01() end elseif dobozbaVan(screenW * 0.7510, screenH * 0.7000, screenW * 0.7865, screenH * 0.7315, absX, absY) then if aholtart == 2 then outputChatBox(\"hatra 2 vót 1 lett\") aholtart = 1 createVehicle01() elseif aholtart == 1 then outputChatBox(\"hatra 1 vót 2 lett\") aholtart = 2 createVehicle01() end elseif dobozbaVan(screenW * 0.8323, screenH * 0.5769, screenW * 0.8885, screenH * 0.6037,absX, absY) then local money = getPlayerMoney(localPlayer) if money == kocsikara[asdasd] or money > kocsikara[asdasd] then playSound(\"sounds/igen.wav\") setPlayerMoney(money-kocsikara[asdasd]) outputChatBox(\"Megvásároltad\") changePanelState() lehivott_kocsi = createVehicle(kocsik[asdasd],536.04828, -1278.91553, 17.24219) changeColor() elseif money < kocsikara[asdasd] then playSound(\"sounds/nem.mp3\") outputChatBox(\"Nincs elég pénzed\") end elseif dobozbaVan(screenW * 0.7562, screenH * 0.4519, 51, 43,absX, absY) then --Fehér color = \"white\" setVehicleColor(theVehicle,255,255,255) elseif dobozbaVan(screenW * 0.7880, screenH * 0.4519, 51, 43,absX, absY) then --Fekete color = \"black\" setVehicleColor(theVehicle,0,0,0) elseif dobozbaVan(screenW * 0.8198, screenH * 0.4519, 51, 43,absX, absY) then --Zöld color = \"green\" setVehicleColor(theVehicle,26,255,0) elseif dobozbaVan(screenW * 0.8516, screenH * 0.4519, 51, 43,absX, absY) then --Világos Kék color = \"blue0\" setVehicleColor(theVehicle,0,255,247) elseif dobozbaVan(screenW * 0.8833, screenH * 0.4519, 51, 43,absX, absY) then --Sötét Kék color = \"blue1\" setVehicleColor(theVehicle,0,34,255) elseif dobozbaVan(screenW * 0.9151, screenH * 0.4519, 51, 43,absX, absY) then --Piros color = \"red\" setVehicleColor(theVehicle,255,0,0) elseif dobozbaVan(screenW * 0.9469, screenH * 0.4519, 51, 43,absX, absY) then --Narancs color = \"orange\" setVehicleColor(theVehicle,255,205,0) elseif dobozbaVan(screenW * 0.7562, screenH * 0.5009, 51, 43,absX, absY) then --Citrom color = \"yellow\" setVehicleColor(theVehicle,247,255,0) elseif dobozbaVan(screenW * 0.7880, screenH * 0.5009, 51, 43,absX, absY) then --Rózsaszín color = \"pink\" setVehicleColor(theVehicle,255,0,239) elseif dobozbaVan(screenW * 0.8198, screenH * 0.5009, 51, 43,absX, absY) then --Lila color = \"purple\" setVehicleColor(theVehicle,145,0,255) elseif dobozbaVan(screenW * 0.8516, screenH * 0.5009, 51, 43,absX, absY) then --Barna color = \"brown\" setVehicleColor(theVehicle,125,83,0) elseif dobozbaVan(screenW * 0.8833, screenH * 0.5009, 51, 43,absX, absY) then --Szürke color = \"grey\" setVehicleColor(theVehicle,95,93,89) end end end end
40
« Dátum: 2016. November 08. - 19:28:31 »
Sziasztok! Amikor berakom hogy csak akkor érzékelje a gomb nyomást ha elö van hozva a panel , akkor sose érzékeli de ha kiszedem mindig érzékeli, 2. kérdés: Mindenkinek létrehozza a kocsit a scriptben? 3. kérdés: Hogyan csinálhatnék a Vásárláshoz triggerClientEventet? Kliensoldali script: local money = getPlayerMoney(localPlayer) local screenW, screenH = guiGetScreenSize() local aholtart = 1 local panelState = false local markerPosition = 543.06183, -1292.82703, 17.24219 local asd = false local marker = createMarker(543.06183, -1292.82703, 17.24219, \"cylinder\",1.5, 255, 255, 255, 255) kocsik = {} kocsikara = {} kocsikfajtaja = {} kocsivegseb = {} kocsik[1] = 602 kocsik[2] = 477 kocsikara[1] = 100000 kocsikara[2] = 200000 kocsikfajtaja[1] = \"Alpha\" kocsikfajtaja[2] = \"ZR-350\" kocsivegseb[1] = 200 kocsivegseb[2] = 300 addEventHandler(\"onClientRender\", root, function() asdasd = aholtart if panelState == true then dxDrawText(\"Előre választott színek\", screenW * 0.7948, screenH * 0.4324, screenW * 0.9318, screenH * 0.4500, tocolor(255, 255, 255, 255), 1.00, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"Színválasztás\", screenW * 0.8193, screenH * 0.8111, screenW * 0.9094, screenH * 0.8269, tocolor(255, 255, 255, 255), 1.00, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawRectangle(screenW * 0.7510, screenH * 0.2991, 441, 571, tocolor(0, 0, 0, 200), false) dxDrawText(\"Vásárlás\", screenW * 0.8323, screenH * 0.5769, screenW * 0.8885, screenH * 0.6037, tocolor(255, 255, 255, 255), 2.00, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(kocsikfajtaja[asdasd], 1489, 329, 1845, 360, tocolor(255, 255, 255, 255), 2.00, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawRectangle(screenW * 0.7573, screenH * 0.3500, 282, 40, tocolor(0, 0, 0, 230), false) dxDrawText(\"Ára : \"..kocsikara[asdasd]..\" C$\", 1454, 377, 1532, 418, tocolor(255, 255, 255, 255), 2.00, \"default-bold\", \"left\", \"center\", false, false, false, false, false) dxDrawRectangle(screenW * 0.7573, screenH * 0.3963, 282, 39, tocolor(0, 0, 0, 230), false) dxDrawText(\"Végsebesség : \"..kocsivegseb[asdasd]..\" MP/H\", screenW * 0.7573, screenH * 0.3944, (screenW * 0.7573) + 78, ( screenH * 0.3944) + 41, tocolor(255, 255, 255, 255), 1.00, \"default-bold\", \"left\", \"center\", false, false, false, false, false) dxDrawRectangle(screenW * 0.7562, screenH * 0.4519, 51, 43, tocolor(255, 255, 255, 255), false) dxDrawRectangle(screenW * 0.7880, screenH * 0.4519, 51, 43, tocolor(0, 0, 0, 255), false) dxDrawRectangle(screenW * 0.8198, screenH * 0.4519, 51, 43, tocolor(28, 204, 61, 255), false) dxDrawRectangle(screenW * 0.8516, screenH * 0.4519, 51, 43, tocolor(42, 163, 189, 255), false) dxDrawRectangle(screenW * 0.8833, screenH * 0.4519, 51, 43, tocolor(21, 20, 97, 255), false) dxDrawRectangle(screenW * 0.9151, screenH * 0.4519, 51, 43, tocolor(116, 0, 0, 255), false) dxDrawRectangle(screenW * 0.9469, screenH * 0.4519, 51, 43, tocolor(211, 117, 25, 255), false) dxDrawRectangle(screenW * 0.7562, screenH * 0.5009, 51, 43, tocolor(233, 219, 2, 255), false) dxDrawRectangle(screenW * 0.7880, screenH * 0.5009, 51, 43, tocolor(202, 25, 209, 255), false) dxDrawRectangle(screenW * 0.8198, screenH * 0.5009, 51, 43, tocolor(98, 12, 153, 255), false) dxDrawRectangle(screenW * 0.8516, screenH * 0.5009, 51, 43, tocolor(77, 40, 20, 255), false) dxDrawRectangle(screenW * 0.8833, screenH * 0.5009, 51, 43, tocolor(49, 48, 47, 255), false) dxDrawText(\"Előre\", screenW * 0.9464, screenH * 0.7000, (screenW * 0.9464) + 66, ( screenH * 0.7000) + 35, tocolor(255, 255, 255, 255), 2.00, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"Hátra\", screenW * 0.7510, screenH * 0.7000, (screenW * 0.7510) + 68, ( screenH * 0.7000) + 34, tocolor(255, 255, 255, 255), 2.00, \"default-bold\", \"center\", \"center\", false, false, false, false, false) --[[dxDrawText(\"Fehér\", dxDrawText(\"Fekete\", dxDrawText(\"Züld\", dxDrawText(\"Világos Kík\", dxDrawText(\"Sötét Kík\", dxDrawText(\"Piros\", dxDrawText(\"Narancssárga\", dxDrawText(\"Citromsárga\", dxDrawText(\"Rózsaszín\", dxDrawText(\"Lila\", dxDrawText(\"Barna\", dxDrawText(\"Szürke\", ]] end end ) function changePanelState () if panelState == false and source == marker then showCursor(true) createVehicle01() panelState = true setCameraMatrix(536.54602, -1298.54370, 32.54056,542.45947, -1296.78247, 32.54056) elseif panelState == true then showCursor(false) destroyElement(theVehicle) panelState = false setCameraTarget(localPlayer) asd = false end end function changeColor () if color == \"white\" then setVehicleColor(lehivott_kocsi,255,255,255) elseif color == \"black\" then setVehicleColor(lehivott_kocsi,0,0,0) elseif color == \"green\" then setVehicleColor(lehivott_kocsi,26,255,0) elseif color == \"blue0\" then setVehicleColor(lehivott_kocsi,0,255,247) elseif color == \"blue1\" then setVehicleColor(lehivott_kocsi,0,34,255) elseif color == \"red\" then setVehicleColor(lehivott_kocsi,255,0,0) elseif color == \"orange\" then setVehicleColor(lehivott_kocsi,255,205,0) elseif color == \"yellow\" then setVehicleColor(lehivott_kocsi,247,255,0) elseif color == \"pink\" then setVehicleColor(lehivott_kocsi,255,0,239) elseif color == \"purple\" then setVehicleColor(lehivott_kocsi,145,0,255) elseif color == \"brown\" then setVehicleColor(lehivott_kocsi,125,83,0) elseif color == \"grey\" then setVehicleColor(lehivott_kocsi,95,93,89) end end addEventHandler(\"onClientMarkerHit\",marker,changePanelState) function dobozbaVan(dX, dY, dSZ, dM, eX, eY) if(eX >= dX and eX <= dX+dSZ and eY >= dY and eY <= dY+dM) then return true else return false end end function elore (gomb, statusz, absX, absY) if panelsState == true then if statusz == \"down\" and gomb == \"left\" then if dobozbaVan(screenW * 0.9464, screenH * 0.7000, screenW * 0.9807, screenH * 0.7324, absX, absY) then if aholtart == 2 then outputChatBox(\"eloreKURVA 2 vót 1 lett\") aholtart = 1 createVehicle01() elseif aholtart == 1 then outputChatBox(\"eloreKURVA 1 vót 2 lett\") aholtart = 2 createVehicle01() end elseif dobozbaVan(screenW * 0.7510, screenH * 0.7000, screenW * 0.7865, screenH * 0.7315, absX, absY) then if aholtart == 2 then outputChatBox(\"hatraKURVA 2 vót 1 lett\") aholtart = 1 createVehicle01() elseif aholtart == 1 then outputChatBox(\"hatraKURVA 1 vót 2 lett\") aholtart = 2 createVehicle01() end elseif dobozbaVan(screenW * 0.8323, screenH * 0.5769, screenW * 0.8885, screenH * 0.6037,absX, absY) then local money = getPlayerMoney(localPlayer) if money == kocsikara[asdasd] or money > kocsikara[asdasd] then playSound(\"sounds/igen.wav\") setPlayerMoney(money-kocsikara[asdasd]) outputChatBox(\"Megvásároltad\") changePanelState() lehivott_kocsi = createVehicle(kocsik[asdasd],536.04828, -1278.91553, 17.24219) changeColor() elseif money < kocsikara[asdasd] then playSound(\"sounds/nem.mp3\") outputChatBox(\"Nincs elég pénzed\") end elseif dobozbaVan(screenW * 0.7562, screenH * 0.4519, 51, 43,absX, absY) then --Fehér color = \"white\" setVehicleColor(theVehicle,255,255,255) elseif dobozbaVan(screenW * 0.7880, screenH * 0.4519, 51, 43,absX, absY) then --Fekete color = \"black\" setVehicleColor(theVehicle,0,0,0) elseif dobozbaVan(screenW * 0.8198, screenH * 0.4519, 51, 43,absX, absY) then --Zöld color = \"green\" setVehicleColor(theVehicle,26,255,0) elseif dobozbaVan(screenW * 0.8516, screenH * 0.4519, 51, 43,absX, absY) then --Világos Kék color = \"blue0\" setVehicleColor(theVehicle,0,255,247) elseif dobozbaVan(screenW * 0.8833, screenH * 0.4519, 51, 43,absX, absY) then --Sötét Kék color = \"blue1\" setVehicleColor(theVehicle,0,34,255) elseif dobozbaVan(screenW * 0.9151, screenH * 0.4519, 51, 43,absX, absY) then --Piros color = \"red\" setVehicleColor(theVehicle,255,0,0) elseif dobozbaVan(screenW * 0.9469, screenH * 0.4519, 51, 43,absX, absY) then --Narancs color = \"orange\" setVehicleColor(theVehicle,255,205,0) elseif dobozbaVan(screenW * 0.7562, screenH * 0.5009, 51, 43,absX, absY) then --Citrom color = \"yellow\" setVehicleColor(theVehicle,247,255,0) elseif dobozbaVan(screenW * 0.7880, screenH * 0.5009, 51, 43,absX, absY) then --Rózsaszín color = \"pink\" setVehicleColor(theVehicle,255,0,239) elseif dobozbaVan(screenW * 0.8198, screenH * 0.5009, 51, 43,absX, absY) then --Lila color = \"purple\" setVehicleColor(theVehicle,145,0,255) elseif dobozbaVan(screenW * 0.8516, screenH * 0.5009, 51, 43,absX, absY) then --Barna color = \"brown\" setVehicleColor(theVehicle,125,83,0) elseif dobozbaVan(screenW * 0.8833, screenH * 0.5009, 51, 43,absX, absY) then --Szürke color = \"grey\" setVehicleColor(theVehicle,95,93,89) end end end end addEventHandler(\"onClientClick\", getRootElement(), elore) function createVehicle01 () if asd == true then destroyElement(theVehicle) theVehicle = createVehicle(kocsik[asdasd],542.45947, -1296.78247, 32.54056) elseif asd == false then theVehicle = createVehicle(kocsik[asdasd],542.45947, -1296.78247, 32.54056) asd = true end end function bindTheKeys () bindKey (\"backspace\", \"down\", changePanelState) end addEventHandler(\"onClientResourceStart\", getRootElement(),bindTheKeys)
41
« Dátum: 2016. November 06. - 17:15:34 »
Valaki nem tud valami DayZ modot ami magyar? Megköszönném.
42
« Dátum: 2016. November 05. - 13:37:59 »
Sziasztok, akarnék egy loginpanelt írni ami MySQL-re épül, de nem nagyon tudom melyikhez kell plugin, és nem nagyon találom a WHERE, SEARCH stb... szó értelmét sem, meg az adatbázis szerkezetében se vagyok biztos. Szerkezet: A képet a Képfeltöltés.hu tárolja. http://www.kepfeltoltes.huCsatlakozás: (Ha pluginos , valaki elküldhetné a \"plugintalan\" csatlakozást) handler = mysql_connect(\"localhost\", \"root\", \"\", \"topmtasql\") Köszönök szépen minden választ!
43
« Dátum: 2016. November 04. - 14:11:53 »
Lehetséges? E: TXD-be biztos vagyok, de a DFF-et is gondolom.
44
« Dátum: 2016. November 03. - 15:04:57 »
Sziasztok! Valamiért nem müködik a kódom, de a debug, nem ír már semmit, de ha belemegyek a markerbe akkor már nem történik semmi. Mi lehet a probléma? local panelState = false local markerPosition = 543.06183, -1292.82703, 17.24219 local asd = 0 --local kocsivegseb = getElementData(theVehicle,\"vegseb\") local marker = createMarker(543.06183, -1292.82703, 17.24219, \"cylinder\",1.5, 255, 255, 255, 255) kocsik = {} kocsikara = {} kocsik[1] = 602 kocsik[2] = 477 kocsikara[1] = 100000 kocsikara[2] = 100000 addEventHandler(\"onClientRender\", root, function() local aholtart = 1 if panelState == true then dxDrawRectangle(1442, 323, 441, 571, tocolor(0, 0, 0, 200), false) dxDrawRectangle(1513, 830, 300, 54, tocolor(0, 0, 0, 230), false) dxDrawText(\"Vásárlás\", 1511, 829, 1813, 884, tocolor(255, 255, 255, 255), 2.00, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"Kocsi fajtája\", 1489, 329, 1845, 360, tocolor(255, 255, 255, 255), 2.00, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawRectangle(1454, 378, 282, 40, tocolor(0, 0, 0, 230), false) dxDrawText(\"Ára :\", 1454, 377, 1532, 418, tocolor(255, 255, 255, 255), 2.00, \"default-bold\", \"left\", \"center\", false, false, false, false, false) dxDrawText(kocsikara[aholtart]..\" C$\", 1532, 378, 1736, 418, tocolor(255, 255, 255, 255), 2.00, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawRectangle(1454, 428, 282, 39, tocolor(0, 0, 0, 230), false) dxDrawText(\"Végsebesség : Hamarosan\", 1454, 426, 1532, 467, tocolor(255, 255, 255, 255), 1.00, \"default-bold\", \"left\", \"center\", false, false, false, false, false) --dxDrawText(\"101023 MP/H\", 1532, 426, 1736, 466, tocolor(255, 255, 255, 255), 2.00, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawRectangle(1452, 488, 51, 43, tocolor(255, 255, 255, 255), false) dxDrawRectangle(1513, 488, 51, 43, tocolor(0, 0, 0, 255), false) dxDrawRectangle(1574, 488, 51, 43, tocolor(28, 204, 61, 255), false) dxDrawRectangle(1635, 488, 51, 43, tocolor(28, 204, 61, 255), false) dxDrawRectangle(1635, 488, 51, 43, tocolor(42, 163, 189, 255), false) dxDrawRectangle(1696, 488, 51, 43, tocolor(21, 20, 97, 255), false) dxDrawRectangle(1757, 488, 51, 43, tocolor(116, 0, 0, 255), false) dxDrawRectangle(1818, 488, 51, 43, tocolor(211, 117, 25, 255), false) dxDrawRectangle(1452, 541, 51, 43, tocolor(233, 219, 2, 255), false) dxDrawRectangle(1513, 541, 51, 43, tocolor(202, 25, 209, 255), false) dxDrawRectangle(1574, 541, 51, 43, tocolor(98, 12, 153, 255), false) dxDrawRectangle(1635, 541, 51, 43, tocolor(77, 40, 20, 255), false) dxDrawRectangle(1696, 541, 51, 43, tocolor(49, 48, 47, 255), false) dxDrawText(\"Előre\", 1718, 784, 1883, 823, tocolor(255, 255, 255, 255), 2.00, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"Hátra\", 1443, 784, 1608, 823, tocolor(255, 255, 255, 255), 2.00, \"default-bold\", \"center\", \"center\", false, false, false, false, false) --[[dxDrawText(\"Fehér\", 1450, 487, 1503, 531, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false) dxDrawText(\"Fekete\", 1513, 487, 1566, 531, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false) dxDrawText(\"Züld\", 1572, 488, 1625, 532, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false) dxDrawText(\"Világos Kík\", 1633, 487, 1686, 531, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false) dxDrawText(\"Sötét Kík\", 1694, 488, 1747, 532, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false) dxDrawText(\"Piros\", 1755, 487, 1808, 531, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false) dxDrawText(\"Narancssárga\", 1816, 487, 1869, 531, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false) dxDrawText(\"Citromsárga\", 1450, 540, 1503, 584, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false) dxDrawText(\"Rózsaszín\", 1513, 540, 1566, 584, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false) dxDrawText(\"Lila\", 1574, 540, 1627, 584, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false) dxDrawText(\"Barna\", 1635, 540, 1688, 584, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false) dxDrawText(\"Szürke\", 1696, 540, 1749, 584, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false)]] end end ) function changePanelState () if panelState == false and getElementPosition(localPlayer) == markerPosition then showCursor(true) createVehicle01() panelState = true setCameraMatrix(536.54602, -1298.54370, 32.54056,542.45947, -1296.78247, 32.54056) elseif panelState == true then showCursor(false) destroyElement(theVehicle) panelState = false setCameraTarget(localPlayer) end end addEventHandler(\"onClientMarkerHit\",marker,changePanelState) function dobozbaVan(dX, dY, dSZ, dM, eX, eY) if(eX >= dX and eX <= dX+dSZ and eY >= dY and eY <= dY+dM) then return true else return false end end function elore (gomb, statusz, absX, absY) if statusz == \"down\" and gomb == \"left\" then if dobozbaVan(1718,784,1883,823, absX, absY) then if aholtart == 2 then aholtart = 1 elseif aholtart == 1 then aholtart = 2 end end end end addEventHandler(\"onClientClick\", getRootElement(), elore) function createVehicle01 () if asd == true then destroyElement(theVehicle) theVehicle = createVehicle(kocsik[aholtart],542.45947, -1296.78247, 32.54056) elseif asd == false then theVehicle = createVehicle(kocsik[aholtart],542.45947, -1296.78247, 32.54056) end end function bindTheKeys () bindKey (\"backspace\", \"down\", changePanelState) end addEventHandler(\"onClientResourceStart\", getRootElement(),bindTheKeys)
45
« Dátum: 2016. November 03. - 11:59:50 »
Sziasztok!
A script KLIENS odali, a debugscript: ... :7: unexpected symbol near \'[\' A script: local panelState = false local marker = createmarker(543.06183, -1292.82703, 17.24219, \"cylinder\",1.5, 255, 255, 255, 255) kocsik = {} kocsikara = {} local kocsik[1] = 602 local kocsik[2] = 477 local kocsikara[1] = 100000 local kocsikara[2] = 100000 addEventHandler(\"onClientRender\", root, function() local aholtart = 1 local theVehicle = createVehicle(kocsik[aholtart],542.45947, -1296.78247, 32.54056) if panelState == true then dxDrawRectangle(1442, 323, 441, 571, tocolor(0, 0, 0, 200), false) dxDrawRectangle(1513, 830, 300, 54, tocolor(0, 0, 0, 230), false) dxDrawText(\"Vásárlás\", 1511, 829, 1813, 884, tocolor(255, 255, 255, 255), 2.00, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"Kocsi fajtája\", 1489, 329, 1845, 360, tocolor(255, 255, 255, 255), 2.00, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawRectangle(1454, 378, 282, 40, tocolor(0, 0, 0, 230), false) dxDrawText(\"Ára :\", 1454, 377, 1532, 418, tocolor(255, 255, 255, 255), 2.00, \"default-bold\", \"left\", \"center\", false, false, false, false, false) dxDrawText(kocsikara[aholtart]..\" C$\", 1532, 378, 1736, 418, tocolor(255, 255, 255, 255), 2.00, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawRectangle(1454, 428, 282, 39, tocolor(0, 0, 0, 230), false) dxDrawText(\"Végsebesség : Hamarosan\", 1454, 426, 1532, 467, tocolor(255, 255, 255, 255), 1.00, \"default-bold\", \"left\", \"center\", false, false, false, false, false) --dxDrawText(\"101023 MP/H\", 1532, 426, 1736, 466, tocolor(255, 255, 255, 255), 2.00, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawRectangle(1452, 488, 51, 43, tocolor(255, 255, 255, 255), false) dxDrawRectangle(1513, 488, 51, 43, tocolor(0, 0, 0, 255), false) dxDrawRectangle(1574, 488, 51, 43, tocolor(28, 204, 61, 255), false) dxDrawRectangle(1635, 488, 51, 43, tocolor(28, 204, 61, 255), false) dxDrawRectangle(1635, 488, 51, 43, tocolor(42, 163, 189, 255), false) dxDrawRectangle(1696, 488, 51, 43, tocolor(21, 20, 97, 255), false) dxDrawRectangle(1757, 488, 51, 43, tocolor(116, 0, 0, 255), false) dxDrawRectangle(1818, 488, 51, 43, tocolor(211, 117, 25, 255), false) dxDrawRectangle(1452, 541, 51, 43, tocolor(233, 219, 2, 255), false) dxDrawRectangle(1513, 541, 51, 43, tocolor(202, 25, 209, 255), false) dxDrawRectangle(1574, 541, 51, 43, tocolor(98, 12, 153, 255), false) dxDrawRectangle(1635, 541, 51, 43, tocolor(77, 40, 20, 255), false) dxDrawRectangle(1696, 541, 51, 43, tocolor(49, 48, 47, 255), false) dxDrawText(\"Előre\", 1718, 784, 1883, 823, tocolor(255, 255, 255, 255), 2.00, \"default-bold\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"Hátra\", 1443, 784, 1608, 823, tocolor(255, 255, 255, 255), 2.00, \"default-bold\", \"center\", \"center\", false, false, false, false, false) --[[dxDrawText(\"Fehér\", 1450, 487, 1503, 531, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false) dxDrawText(\"Fekete\", 1513, 487, 1566, 531, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false) dxDrawText(\"Züld\", 1572, 488, 1625, 532, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false) dxDrawText(\"Világos Kík\", 1633, 487, 1686, 531, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false) dxDrawText(\"Sötét Kík\", 1694, 488, 1747, 532, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false) dxDrawText(\"Piros\", 1755, 487, 1808, 531, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false) dxDrawText(\"Narancssárga\", 1816, 487, 1869, 531, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false) dxDrawText(\"Citromsárga\", 1450, 540, 1503, 584, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false) dxDrawText(\"Rózsaszín\", 1513, 540, 1566, 584, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false) dxDrawText(\"Lila\", 1574, 540, 1627, 584, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false) dxDrawText(\"Barna\", 1635, 540, 1688, 584, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false) dxDrawText(\"Szürke\", 1696, 540, 1749, 584, tocolor(255, 255, 255, 255), 1.00, \"default\", \"left\", \"top\", false, false, false, false, false)]] end end ) function changePanelState () if panelState == false then panelState = true elseif panelState == true then panelState = false end end addEventHandler(\"onClientMarkerHit\",marker,changePanelState) function dobozbaVan(dX, dY, dSZ, dM, eX, eY) if(eX >= dX and eX <= dX+dSZ and eY >= dY and eY <= dY+dM) then return true else return false end end addEventHandler(\"onClientClick\", getRootElement(), function(gomb, statusz, absX, absY) if statusz == \"down\" and gomb == \"left\" then if dobozbaVan(1718,784,1883,823, absX, absY) then outputChatBox(\"Elöre\") if aholtart == 2 then aholtart = 1 elseif aholtart == 1 then aholtart = 2 end end end end --Itt lesz majd a hátra gomb is
Gondolom a tömbbel van baja, de nem vagyok benne biztos (vagy valamilyen szimbólumot nem ismer fel).
Oldalak: 1 2 [3] 4 5 ... 7
|