Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: stopsound
1. stopSound
siema witam panowie czesc ponownie. Ugu?em to robie se panel logowania, no i ugu?em to da?em se playSound no i super gra muzyka, jednak po zalogowaniu gracza chce, aby sie ona stopniowo wyciszala i wylaczyla, ale kurka wodna jak to zrobic, skoro onplayerlogin dziala tylko po stronie serwera a stopSound po stronie klienta? Niech Pan Bog wam wynagrodzi za odpowiedz dobra.
2. stopSound login
Jak zatrzyma? muzk? po zalogowaniu gdy w??czam m?j login muzka si? w??cza ale jest z problem nie wiem gdzie doda? opcje stopsound daj ca?y KOD
ZA pomoc stawiam piwko
[lua]
sW, sH = guiGetScreenSize()
x = 1360
y = 768

local sm = {}
sm.moov = 0
sm.object1, sm.object2 = nil, nil


local function camRender ()
local x1, y1, z1 = getElementPosition ( sm.object1 )
local x2, y2, z2 = getElementPosition ( sm.object2 )
setCameraMatrix ( x1, y1, z1, x2, y2, z2 )
end

local function removeCamHandler ()
if(sm.moov == 1) then
sm.moov = 0
removeEventHandler ( "onClientPreRender", getRootElement(), camRender )
end
end

function smoothMoveCameraa ( x1, y1, z1, x1t, y1t, z1t, x2, y2, z2, x2t, y2t, z2t, time )
if(sm.moov == 1) then return false end
sm.object1 = createObject ( 1337, x1, y1, z1 )
sm.object2 = createObject ( 1337, x1t, y1t, z1t )
setElementAlpha ( sm.object1, 0 )
setElementAlpha ( sm.object2, 0 )
setObjectScale(sm.object1, 0.01)
setObjectScale(sm.object2, 0.01)
moveObject ( sm.object1, time, x2, y2, z2, 0, 0, 0, "InOutQuad" )
moveObject ( sm.object2, time, x2t, y2t, z2t, 0, 0, 0, "InOutQuad" )

addEventHandler ( "onClientPreRender", getRootElement(), camRender )
sm.moov = 1
setTimer ( removeCamHandler, time, 1 )
setTimer ( destroyElement, time, 1, sm.object1 )
setTimer ( destroyElement, time, 1, sm.object2 )
return true
end

function startMySound()
sound = playSoun...