Wysłany: 2021-08-27, 07:18
daybreakx3
Wiek: 27 Na forum: 2412 dni Posty: 11
Nick w MP: Daybreak
Piwa : 2
Witam mam taki problem ?e jak klikam wymiana i chce wymieni? pkt na premium to mi zabiera 5 ?eton?w i to tak wygl?da jak bym klika? w jeden przycisk 5 razy... pom?g? by kto? to poprawi?? bo walcze z tym juz od 2 dni i nie mog? tego znale??, bardzo bym by? wdzi?czny... pozdrawiam
elseif mysz ( screenW * 0.4008 , screenH * 0.6133 , screenW * 0.0542 , screenH * 0.0352 ) and okno3 == false and okno4 == true then
elseif mysz ( 822 * px , 585 * py , 126 * px , 38 * py ) and gielda == true then
triggerServerEvent ( "wymien:pp" , localPlayer , ile )
if niemozesz == true then return end
local cena = guiGetText ( cenapp )
local ilosc = guiGetText ( liczbapp )
if not tonumber ( ilosc ) then return end
if not tonumber ( cena ) then return end
if cena : len () > 6 then return end
if cena == "Cena" then return end
if ilosc == "Ilosc" then return end
if cena == "" then return end
if ilosc == "" then return end
if tonumber ( cena ) < 1 then return end
if tonumber ( ilosc ) < 1 then return end
if string . find ( cena , 'E' ) then return end
if string . find ( cena , 'e' ) then return end
if string . find ( cena , 'r' ) then return end
if tonumber ( ilosc ) > tonumber ( getElementData ( localPlayer , "pp" )) then exports [ "smta_base_notifications" ]: noti ( "Nie posiadasz wystarczajacej ilosc DP" , "error" ) return end
triggerServerEvent ( "wystaw:pp" , localPlayer , tonumber ( ilosc ), tonumber ( cena ))
triggerServerEvent ( "pokaz:gieldepp" , localPlayer )
niemozesz = true
setTimer (function()
niemozesz = false
end , 500 , 1 )
elseif mysz ( scale_x ( 930 ), scale_y ( 207 ), scale_x ( 16 ), scale_y ( 16 )) and okno3 == false and okno4 == true then
okno3 = true
okno4 = false
elseif mysz ( screenW * 0.3697 , screenH * 0.6862 , screenW * 0.0864 , screenH * 0.0391 ) and gprem == true and okno4 == false and okno2 == false then
kupno = true
gielda = false
wymiana = false
guiSetVisible ( liczbapp , false )
guiSetVisible ( cenapp , false )
elseif mysz ( screenW * 0.4561 , screenH * 0.6862 , screenW * 0.0864 , screenH * 0.0391 ) and gprem == true and okno4 == false and okno2 == false then
kupno = false
gielda = false
wymiana = true
okno3 = true
okno4 = false
guiSetVisible ( liczbapp , false )
guiSetVisible ( cenapp , false )
elseif mysz ( screenW * 0.5425 , screenH * 0.6862 , screenW * 0.0871 , screenH * 0.0391 ) and gprem == true and okno4 == false and okno2 == false then
kupno = false
gielda = true
wymiana = false
triggerServerEvent ( "pokaz:gieldepp" , localPlayer )
guiSetVisible ( liczbapp , true )
guiSetVisible ( cenapp , true )
end
end
end
end )
Wysłany: 2021-08-28, 12:23
MeeShuffle
Programista/Grafik
Wiek: 32 Na forum: 4394 dni Posty: 2758
Nick w MP: Shuffle
Piwa : 8575
Ale nagmatwane, poka? event onClientClick.
Wysłany: 2021-08-28, 13:37
daybreakx3
Wiek: 27 Na forum: 2412 dni Posty: 11
Nick w MP: Daybreak
Piwa : 2
sirphantasm , addEventHandler ( "onClientClick" , getRootElement (), function ( btn , state )
if btn == 'left' and state == 'down' then
for i , v in ipairs ( premki ) do
for i , v in ipairs ( premki ) do
local dodatekY = ( scale_y ( 70 ))*( i - 1 )
if mysz ( screenW * 0.5593 , screenH * 0.3060 + dodatekY , screenW * 0.0542 , screenH * 0.0352 ) and okno1 == true and okno2 == false and kupno == true then
okno1 = false
okno2 = true
guiSetVisible ( edit , true )
if v [ 1 ] == "1 PUNKT DIAMOND" then
ile = 1
tekst = "IloÅ›?‡ PUNKTÓW DIAMOND: #B92B271\n\n#969696TreÅ›?‡ sms: #B92B27MSMS.SMTA\n#969696Numer: #B92B2772480\n#969696Koszt: #B92B272,46 PLN\n\n#969696Poniżej wpisz kod zwrotny"
tekst2 = "IloÅ›?‡ PUNKTÓW DIAMOND: 1\n\nTreÅ›?‡ sms: MSMS.SMTA\nNumer: 72480\nKoszt: 2,46 PLN\n\nPoniżej wpisz kod zwrotny"
elseif v [ 1 ] == "3 PUNKTY DIAMOND" then
ile = 3
tekst = "IloÅ›?‡ PUNKTÓW DIAMOND: #B92B273\n\n#969696TreÅ›?‡ sms: #B92B27MSMS.SMTA\n#969696Numer: #B92B2774480\n#969696Koszt: #B92B274,92 PLN\n\n#969696Poniżej wpisz kod zwrotny"
tekst2 = "IloÅ›?‡ PUNKTÓW DIAMOND: 3\n\nTreÅ›?‡ sms: MSMS.SMTA\nNumer: 74480\nKoszt: 4,92 PLN\n\nPoniżej wpisz kod zwrotny"
elseif v [ 1 ] == "7 PUNKTÓW DIAMOND" then
ile = 7
tekst = "IloÅ›?‡ PUNKTÓW DIAMOND: #B92B277\n\n#969696TreÅ›?‡ sms: #B92B27MSMS.SMTA\n#969696Numer: #B92B2776480\n#969696Koszt: #B92B277.38 PLN\n\n#969696Poniżej wpisz kod zwrotny"
tekst2 = "IloÅ›?‡ PUNKTÓW DIAMOND: 7\n\nTreÅ›?‡ sms: MSMS.SMTA\nNumer: 76480\nKoszt: 7.38 PLN\n\nPoniżej wpisz kod zwrotny"
elseif v [ 1 ] == "14 PUNKTÓW DIAMOND" then
ile = 14
tekst = "IloÅ›?‡ PUNKTÓW DIAMOND: #B92B2714\n\n#969696TreÅ›?‡ sms: #B92B27MSMS.SMTA\n#969696Numer: #B92B2779480\n#969696Koszt: #B92B2711.07 PLN\n\n#969696Poniżej wpisz kod zwrotny"
tekst2 = "IloÅ›?‡ PUNKTÓW DIAMOND: 14\n\nTreÅ›?‡ sms: MSMS.SMTA\nNumer: 79480\nKoszt: 11.07 PLN\n\nPoniżej wpisz kod zwrotny"
elseif v [ 1 ] == "30 PUNKTÓW DIAMOND" then
ile = 30
tekst = "IloÅ›?‡ PUNKTÓW DIAMOND: #B92B2730\n\n#969696TreÅ›?‡ sms: #B92B27MSMS.SMTA\n#969696Numer: #B92B2791400\n#969696Koszt: #B92B2717.22 PLN\n\n#969696Poniżej wpisz kod zwrotny"
tekst2 = "IloÅ›?‡ PUNKTÓW DIAMOND: 30\n\nTreÅ›?‡ sms: MSMS.SMTA\nNumer: 91400\nKoszt: 17.22 PLN\n\nPoniżej wpisz kod zwrotny"
end
end
end
if wymiana == true then
for i , v in ipairs ( premki2 ) do
local dodatekY = ( scale_y ( 70 ))*( i - 1 )
if mysz ( screenW * 0.5593 , screenH * 0.3060 + dodatekY , screenW * 0.0542 , screenH * 0.0352 ) and okno3 == true and okno4 == false and wymiana == true then
okno3 = false
okno4 = true
if v [ 1 ] == "KONTO DIAMOND 1 DZIEŃ" then
ile = 1
tekst = "IloÅ›?‡ dni konta diamond: #B92B271\n\n#969696Koszt: #B92B271 DP"
tekst2 = "IloÅ›?‡ dni konta diamond: 1\n\nKoszt: 1 DP"
elseif v [ 1 ] == "KONTO DIAMOND 3 DNI" then
ile = 3
tekst = "IloÅ›?‡ dni konta diamond: #B92B273\n\n#969696Koszt: #B92B273 DP"
tekst2 = "IloÅ›?‡ dni konta diamond: 3\n\nKoszt: 3 DP"
elseif v [ 1 ] == "KONTO DIAMOND 7 DNI" then
ile = 7
tekst = "IloÅ›?‡ dni konta diamond: #B92B277\n\n#969696Koszt: #B92B277 DP"
tekst2 = "IloÅ›?‡ dni konta diamond: 7\n\nKoszt: 7 DP"
elseif v [ 1 ] == "KONTO DIAMOND 14 DNI" then
ile = 14
tekst = "IloÅ›?‡ dni konta diamond: #B92B2714\n\n#969696Koszt: #B92B2714 DP"
tekst2 = "IloÅ›?‡ dni konta diamond: 14\n\nKoszt: 14 DP"
elseif v [ 1 ] == "KONTO DIAMOND 30 DNI" then
ile = 30
tekst = "IloÅ›?‡ dni konta diamond: #B92B2730\n\n#969696Koszt: #B92B2730 DP"
tekst2 = "IloÅ›?‡ dni konta diamond: 30\n\nKoszt: 30 DP"
end
end
end
end
if gielda == true then
local x = 0
for i , v in ipairs ( tabgielda ) do
if i >= k and i <= n then
x = x + 1
local dodatekY = ( 55 * px )*( x - 1 )
if mysz ( screenW * 0.6362 , screenH * 0.3229 + dodatekY , screenW * 0.0542 , screenH * 0.0352 ) and gielda == true and gprem == true and okno4 == false then
if v [ "nick" ] == getPlayerName ( localPlayer ) then
triggerServerEvent ( "usun:pp" , localPlayer , v [ "id" ])
triggerServerEvent ( "pokaz:gieldepp" , localPlayer )
else
triggerServerEvent ( "kup:pp" , localPlayer , v [ "id" ])
triggerServerEvent ( "pokaz:gieldepp" , localPlayer )
end
end
end
end
end
local dodatekY = ( scale_y ( 70 ))*( i - 1 )
if mysz ( scale_x ( 930 ), scale_y ( 207 ), scale_x ( 16 ), scale_y ( 16 )) and okno1 == false and okno2 == true then
okno1 = true
okno2 = false
guiSetVisible ( edit , false )
elseif mysz ( screenW * 0.5593 , screenH * 0.6133 , screenW * 0.0542 , screenH * 0.0352 ) and okno1 == false and okno2 == true then
if guiGetText ( edit ) == "" or guiGetText ( edit ) == "Kod, kt?²¹?otrzymales w sms'ie" then return end
triggerServerEvent ( "sprawdzPremium" , localPlayer , guiGetText ( edit ), ile )
elseif mysz ( screenW * 0.4008 , screenH * 0.6133 , screenW * 0.0542 , screenH * 0.0352 ) and okno3 == false and okno4 == true then
elseif mysz ( 822 * px , 585 * py , 126 * px , 38 * py ) and gielda == true then
triggerServerEvent ( "wymien:pp" , localPlayer , ile )
if niemozesz == true then return end
local cena = guiGetText ( cenapp )
local ilosc = guiGetText ( liczbapp )
if not tonumber ( ilosc ) then return end
if not tonumber ( cena ) then return end
if cena : len () > 6 then return end
if cena == "Cena" then return end
if ilosc == "Ilosc" then return end
if cena == "" then return end
if ilosc == "" then return end
if tonumber ( cena ) < 1 then return end
if tonumber ( ilosc ) < 1 then return end
if string . find ( cena , 'E' ) then return end
if string . find ( cena , 'e' ) then return end
if string . find ( cena , 'r' ) then return end
if tonumber ( ilosc ) > tonumber ( getElementData ( localPlayer , "pp" )) then exports [ "smta_base_notifications" ]: noti ( "Nie posiadasz wystarczajacej ilosc DP" , "error" ) return end
triggerServerEvent ( "wystaw:pp" , localPlayer , tonumber ( ilosc ), tonumber ( cena ))
triggerServerEvent ( "pokaz:gieldepp" , localPlayer )
niemozesz = true
setTimer (function()
niemozesz = false
end , 500 , 1 )
elseif mysz ( scale_x ( 930 ), scale_y ( 207 ), scale_x ( 16 ), scale_y ( 16 )) and okno3 == false and okno4 == true then
okno3 = true
okno4 = false
elseif mysz ( screenW * 0.3697 , screenH * 0.6862 , screenW * 0.0864 , screenH * 0.0391 ) and gprem == true and okno4 == false and okno2 == false then
kupno = true
gielda = false
wymiana = false
guiSetVisible ( liczbapp , false )
guiSetVisible ( cenapp , false )
elseif mysz ( screenW * 0.4561 , screenH * 0.6862 , screenW * 0.0864 , screenH * 0.0391 ) and gprem == true and okno4 == false and okno2 == false then
kupno = false
gielda = false
wymiana = true
okno3 = true
okno4 = false
guiSetVisible ( liczbapp , false )
guiSetVisible ( cenapp , false )
elseif mysz ( screenW * 0.5425 , screenH * 0.6862 , screenW * 0.0871 , screenH * 0.0391 ) and gprem == true and okno4 == false and okno2 == false then
kupno = false
gielda = true
wymiana = false
triggerServerEvent ( "pokaz:gieldepp" , localPlayer )
guiSetVisible ( liczbapp , true )
guiSetVisible ( cenapp , true )
end
end
end
end )
link do plikow https://megawrzuta.pl/download/2e1f2172d4358ce481f4122125b00cb0.html
Tagi: coś :: nie :: tak :: kodem :: zabiera :: żetonów :: podczas :: wymiany
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: