Mam problem z buttonem do has?a gdy? te has?o si? tzw. Nie gwiazdkuje i jest odkryte. I nie wiem jak zakry? to bo mam poprostu zrobione to w metodzie ni?ej i has?o jest niestety odkryte. Kto? co???
Witam tworz? skrypt, lecz gdy chc? doda? do niego "button" i wjad? w marker wszystkim si? on pokazuje. Kod jest po stronie clienta. Prosi? bym o pomoc ?eby tylko wy?wietla? si? osobie kt?ra wjecha?a w marker.
addEvent("guiwyswieetla", true) addEventHandler("guiwyswieetla", getRootElement(), function() guiCreateButton(0.55,0.5,0.15,0.2,"k**** TO NIE CHCE DZIA?A?!",true) end)
Witam, mam pomys? na ?adny login panel, I zrobi?em w gimpie przycisk. Potem w gui editorze zrobi?em ca?y login panel. I teraz oto taki mam problem:
Jak zrobi? gdy si? najedzie na to zdj?cie to zmieni si? kolor a potem gdy si? kursorem "wyjedzie" z tego zdj?cia to przywr?ci poprzedni kolor. Oraz gdy si? kliknie w przycisk to si? te? zmieni kolor oraz wywo?a si? jaka? funkcja. Oczywi?cie rep i zimne piwko. Mo?ecie te? poda? funkcje na mta sa to sobie sam zrobi? ify.
function podmien17()
if source ~= G3A3 then return end if isElementWithinMarker(localPlayer, marker) then
triggerServerEvent ("neu" , localPlayer) outputChatBox("Statystyki Broni :#ffcc33Szybko-Porusznie +1 ",255,255,250,true) dff = engineLoadDFF ( "G3A3.dff", 355 ) engineReplaceModel ( dff, 355 ) txd = engineLoadTXD ( "G3A3.txd" ) engineImportTXD ( txd, 355 ) local team = getPlayerTeam(localPlayer) local teamName = getTeamName(team)
if teamName=="hakis team" then
if guiGetVisible(punkt3) == true then
guiSetVisible(punkt3, false) showCursor(false) end
end
end
end
addEventHandler("onClientGUIClick", root,podmien17)
a oto db3
guiWindowSetSizable [Expected gui-window at argument 1, got gui-tabpanel]
jak wiadomo klikam i nie znika mi gui , wczesniej dzia?a?o .
function clientClicking ( btn, state, x, y )
if ( btn == 'left' and not guiGetVisible ( window ) and state == 'down' and isOpen ) then if ( y >= pY+370 and y <= pY+370 ) then
local user, pass = guiGetText ( username ), guiGetText ( password )
-- Login Button --
if ( x >= pX+25 and x <= pX+440) then if ( string.gsub ( user, ' ', '' ) ~= '' and string.gsub ( pass, ' ', '' ) ~= '' ) then if ( string.find ( user, '%s' ) ) then return sendError ( "Spaces (' ') are not allowednin the username." ) end if ( string.find ( pass, '%s' ) ) then return sendError ( "Spaces (' ') are not allowednin the password." ) end
triggerServerEvent ( "Login:onClientAttemptLogin", localPlayer, user, pass )
else sendError ( "A username and password arenrequired to access the server." ) end
Aby dzia?a?o tankowanie, kt?re jest zawarte w tej funkcji. Po prostu tej funkcji chce si? pozby?, a chc?, ?eby tankowanie by?o poprzez przycisk.
function setTimerRefillGas(enabled)
if(isPedInVehicle(getLocalPlayer())) then
local player = getLocalPlayer() local vehicle = getPedOccupiedVehicle(player) local fuel = getElementData(vehicle,"fuel")
if(tonumber(fuel) < 100) then
setElementData(vehicle,"fuel",getElementData(vehicle, "fuel") +10) distanceOld = distance
end
end
end
addEventHandler("onGasRefill",getRootElement(),setTimerRefillGas)
Witam. Mam do was ma?e pytanko. A wi?c chcia? bym zrobi? panel do logowania frakcji. Ca?y panel ju? zrobi?em ale chcia? bym ?eby np button "Policja" wykonywa? komend? /loginpoli. Wiec jak to zrobic ? Mozecie podac jakis przyklad.
Za pomoc beda piwka
Witam, mam okienko GUI w kt?rym jest w?asne t?o (ca?e okno jest niebieskie) i ustawi?em przyciski(buttony) na tym obrazku (tle) i w nie da si? klikn??. Czy to normalne? Czy co? ?le zrobi?em?