Wysłany: 2019-07-18, 17:28
droper24hp
Wiek: 25 Na forum: 3201 dni Posty: 14
Nick w MP: Droper24hp
Kod: local sW, sH = guiGetScreenSize()
local YouTube = guiCreateBrowser( 0.15*sW , 0.1*sH, sW*0.7, sH*0.7, false, true, false)
dxDrawImage( 0.20*sW , 0.6*sH, sW*0.12, sH*0.12, "Iphone1.png" )
guiSetVisible(YouTube,false)
guisetvisible(Iphone1.png,false)
local przelgadarka = guiGetBrowser(YouTube)
addEventHandler("onClientBrowserCreated", przelgadarka,
function()
loadBrowserURL(przelgadarka, "https://www.youtube.com/")
setBrowserVolume(przelgadarka, 0.5)
setBrowserRenderingPaused(przelgadarka, true)
end
)
bool dxDrawImage ( float posX, float posY, float width, float height, mixed image,
[ float rotation = 0, float rotationCenterOffsetX = 0, float rotationCenterOffsetY = 0,
int color = tocolor(255,255,255,255), bool postGUI = false ] )
local screenWidth,screenHeight = guiGetScreenSize() -- Get screen resolution.
function renderDisplay ( )
local seconds = getTickCount() / 1000
local angle = math.sin(seconds) * 80
dxDrawImage ( screenWidth/2 - 50, 0, 100, 240, 'Iphone1.png', angle, 0, -120 )
end
function HandleTheRendering ( )
addEventHandler("onClientRender", root, renderDisplay) -- Keep everything visible with onClientRender.
end
addEventHandler("onClientResourceStart",resourceRoot, HandleTheRendering)
function YT ()
showCursor ( not guiGetVisible(YouTube) )
guiSetVisible( YouTube, not guiGetVisible(YouTube) )
toggleAllControls( not guiGetVisible(YouTube) )
setBrowserRenderingPaused(przelgadarka, not guiGetVisible(YouTube) )
if guiGetVisible(YouTube) then
outputChatBox( "**Otwarto serwerowy Telefon !**" ,255 ,0 ,0 ,true )
outputChatBox( "Mo?esz zmieni? g?o? komend?: /vol.yt 0-100" ,255 ,0 ,0 ,true )
end
end
bindKey ( "F4", "down", YT )
addCommandHandler ("vol.yt",function (command, value)
local value = (value/100)
if tonumber (value) then
setBrowserVolume (przelgadarka, value)
else
outputChatBox ("Stopie? g?o?no?ci powinien by? wprowadzony w liczbach 0-100")
end
end)
kto? pomo?e bo nie dzia?a co? bo pisz? ?e nie wyczytuj? zdjecia Iphone1.png
Wysłany: 2019-07-18, 17:35
Wilq
Wiek: 24 Na forum: 4428 dni Posty: 3410
Piwa : 739
Poka? tre?? b??du. Plik jest dodany w mecie I w odpowiednim folderze?
Wysłany: 2019-07-18, 17:36
droper24hp
Wiek: 25 Na forum: 3201 dni Posty: 14
Nick w MP: Droper24hp
ERROR: Couldn't find file Iphone1.png for resource yt
Loading of resource 'yt' failed
ERROR: Problem with resource: yt; Couldn't find file Iphone1.png for resource yt
[ Dodano : 2019-07-18, 17:37 ]
Kod: <meta>
<script src="c-side.lua" type="client"></script>
<file src="Iphone1.png"/>
</meta>
[ Dodano : 2019-07-18, 17:38 ]
folder o nazwie File
[ Dodano : 2019-07-18, 17:41 ]
Wilq ,
Wysłany: 2019-07-18, 18:35
Gravgor
Wiek: 22 Na forum: 3619 dni Posty: 380
Nick w MP: 1944
Piwa : 702
Je?li jest w folderze file to robisz to tak:
< meta >
< script src = "c-side.lua" type = "client" />
< file src = "file/Iphone1.png" />
</ meta >
local sW , sH = guiGetScreenSize ()
local YouTube = guiCreateBrowser ( 0.15 * sW , 0.1 * sH , sW * 0.7 , sH * 0.7 , false , true , false )
dxDrawImage ( 0.20 * sW , 0.6 * sH , sW * 0.12 , sH * 0.12 , ":file/Iphone1.png" )
guiSetVisible ( YouTube , false )
guisetvisible ( Iphone1 . png , false )
local przelgadarka = guiGetBrowser ( YouTube )
addEventHandler ( "onClientBrowserCreated" , przelgadarka ,
function()
loadBrowserURL ( przelgadarka , "https://www.youtube.com/" )
setBrowserVolume ( przelgadarka , 0.5 )
setBrowserRenderingPaused ( przelgadarka , true )
end
)
bool dxDrawImage ( float posX , float posY , float width , float height , mixed image ,
[ float rotation = 0 , float rotationCenterOffsetX = 0 , float rotationCenterOffsetY = 0 ,
int color = tocolor ( 255 , 255 , 255 , 255 ), bool postGUI = false ] )
local screenWidth , screenHeight = guiGetScreenSize () -- Get screen resolution .
function renderDisplay ( )
local seconds = getTickCount () / 1000
local angle = math . sin ( seconds ) * 80
dxDrawImage ( screenWidth / 2 - 50 , 0 , 100 , 240 , 'Iphone1.png' , angle , 0 , - 120 )
end
function HandleTheRendering ( )
addEventHandler ( "onClientRender" , root , renderDisplay ) -- Keep everything visible with onClientRender .
end
addEventHandler ( "onClientResourceStart" , resourceRoot , HandleTheRendering )
function YT ()
showCursor ( not guiGetVisible ( YouTube ) )
guiSetVisible ( YouTube , not guiGetVisible ( YouTube ) )
toggleAllControls ( not guiGetVisible ( YouTube ) )
setBrowserRenderingPaused ( przelgadarka , not guiGetVisible ( YouTube ) )
if guiGetVisible ( YouTube ) then
outputChatBox ( "**Otwarto serwerowy Telefon !**" , 255 , 0 , 0 , true )
outputChatBox ( "Mo?esz zmieni? g?o? komend?: /vol.yt 0-100" , 255 , 0 , 0 , true )
end
end
bindKey ( "F4" , "down" , YT )
addCommandHandler ( "vol.yt" ,function ( command , value )
local value = ( value / 100 )
if tonumber ( value ) then
setBrowserVolume ( przelgadarka , value )
else
outputChatBox ( "Stopie? g?o?no?ci powinien by? wprowadzony w liczbach 0-100" )
end
end )
Wysłany: 2019-07-18, 19:48
droper24hp
Wiek: 25 Na forum: 3201 dni Posty: 14
Nick w MP: Droper24hp
Resource 'yt' changed, reloading
ERROR: Couldn't find file Iphone1.png for resource yt
Loading of resource 'yt' failed
ERROR: Problem with resource: yt; Couldn't find file Iphone1.png for resource yt
Gravgor ,
[ Dodano : 2019-07-18, 19:48 ]
nadal nie dzia?a
Wysłany: 2019-07-18, 20:43
Ragnarok
Wiek: 24 Na forum: 2732 dni Posty: 20
Piwa : 306
Upewnij si? ?e format pliku to png
Wysłany: 2019-07-18, 22:16
Gravgor
Wiek: 22 Na forum: 3619 dni Posty: 380
Nick w MP: 1944
Piwa : 702
"Ragnarok" napisał/a :Upewnij si? ?e format pliku to png
To te? ale dok?adnie sprawd? nazw? pliku i to gdzie jest wrzucony.
Podpis
Portfolio marceliborowczak.me
Tagi: telefon :: ktoś :: pomożę?
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: