Wysłany: 2017-01-14, 19:25
Vintage
Wiek: 23 Na forum: 3554 dni Posty: 64
Piwa : 1
Witam chcia?bym napisa? skrypt na muzyke z pony skrypt ma by? na komend? i ma si? otwiera? z ty?u drzwi oraz pokazywa? si? marker cylinder , i pokazywa? gui wiecie o co chodzi z Pylife , mo?e mi kto? poda? KOMENDY FUNKCJE ITP
Wysłany: 2017-01-14, 19:30
_Haze
Peace Yo!
Wiek: 24 Na forum: 4184 dni Posty: 1648
Nick w MP: Haze
Piwa : 2628
Nie rozumiem zbytnio o co ci chodzi ale wiem ?e ma muzyk? odtwarza?. No to.
GUI
Muzyka
Więcej informacji znajdziesz w Wikipedii MTA: playSound
Więcej informacji znajdziesz w Wikipedii MTA: playSound3D
Marker
Aby muzyka gra?a dla 1osoby musisz da? triger po stronie serwera na odtwarzanie muzyki ze strony clienta dla gracza kt?ry wywo?a? triger
Wysłany: 2017-01-14, 19:31
Vintage
Wiek: 23 Na forum: 3554 dni Posty: 64
Piwa : 1
Hazmudex , a marker przy veh ?
Wysłany: 2017-01-14, 19:35
_Haze
Peace Yo!
Wiek: 24 Na forum: 4184 dni Posty: 1648
Nick w MP: Haze
Piwa : 2628
HerbatnikTv ,
to usefal function musisz wklei? j? do kodu i u?y? jak jest podane na wiki
Wysłany: 2017-01-14, 19:44
Vintage
Wiek: 23 Na forum: 3554 dni Posty: 64
Piwa : 1
Hazmudex ,
function createMarkerAttachedTo ( element , mType , size , r , g , b , a , visibleTo , xOffset , yOffset , zOffset )
to ?
Wysłany: 2017-01-14, 19:49
_Haze
Peace Yo!
Wiek: 24 Na forum: 4184 dni Posty: 1648
Nick w MP: Haze
Piwa : 2628
HerbatnikTv , to wklejasz do kodu
function createMarkerAttachedTo ( element , mType , size , r , g , b , a , visibleTo , xOffset , yOffset , zOffset )
mType , size , r , g , b , a , visibleTo , xOffset , yOffset , zOffset = mType or "checkpoint" , size or 4 , r or 0 , g or 0 , b or 255 , a or 255 , visibleTo or getRootElement (), xOffset or 0 , yOffset or 0 , zOffset or 0
assert ( isElement ( element ), "Bad argument @ 'createMarkerAttachedTo' [Expected element at argument 1, got " .. type ( element ) .. "]" ) assert ( type ( mType ) == "string" , "Bad argument @ 'createMarkerAttachedTo' [Expected string at argument 2, got " .. type ( mType ) .. "]" ) assert ( type ( size ) == "number" , "Bad argument @ 'createMarkerAttachedTo' [Expected number at argument 3, got " .. type ( size ) .. "]" ) assert ( type ( r ) == "number" , "Bad argument @ 'createMarkerAttachedTo' [Expected number at argument 4, got " .. type ( r ) .. "]" ) assert ( type ( g ) == "number" , "Bad argument @ 'createMarkerAttachedTo' [Expected number at argument 5, got " .. type ( g ) .. "]" ) assert ( type ( b ) == "number" , "Bad argument @ 'createMarkerAttachedTo' [Expected number at argument 6, got " .. type ( b ) .. "]" ) assert ( type ( a ) == "number" , "Bad argument @ 'createMarkerAttachedTo' [Expected number at argument 7, got " .. type ( a ) .. "]" ) assert ( isElement ( visibleTo ), "Bad argument @ 'createMarkerAttachedTo' [Expected element at argument 8, got " .. type ( visibleTo ) .. "]" ) assert ( type ( xOffset ) == "number" , "Bad argument @ 'createMarkerAttachedTo' [Expected number at argument 9, got " .. type ( xOffset ) .. "]" ) assert ( type ( yOffset ) == "number" , "Bad argument @ 'createMarkerAttachedTo' [Expected number at argument 10, got " .. type ( yOffset ) .. "]" ) assert ( type ( zOffset ) == "number" , "Bad argument @ 'createMarkerAttachedTo' [Expected number at argument 11, got " .. type ( zOffset ) .. "]" )
local m = createMarker ( 0 , 0 , 0 , mType , size , r , g , b , a , visibleTo )
if m then if attachElements ( m , element ) then return m end end return false
end
np.
createMarkerAttachedTo(element,"checkpoint", 2)
Tagi: pony :: interfejs :: audio
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: