Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2017-01-14, 19:25


Vintage







Wiek: 24
Na forum: 3696 dni
Posty: 64

Piwa: 1

Respekt: 45,8

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 :D , mo?e mi kto? poda? KOMENDY FUNKCJE ITP

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-01-14, 19:30


_Haze

Peace Yo!






Wiek: 25
Na forum: 4325 dni
Posty: 1648
Nick w MP: Haze

Piwa: 2628

Respekt: 1020
Respekt: 1020

Nie rozumiem zbytnio o co ci chodzi ale wiem ?e ma muzyk? odtwarza?. No to.
GUI

Więcej informacji znajdziesz w Wikipedii MTA:

guiCreateWindow


Więcej informacji znajdziesz w Wikipedii MTA:

guiCreateButton


Więcej informacji znajdziesz w Wikipedii MTA:

onClientGUIClick

Muzyka

Więcej informacji znajdziesz w Wikipedii MTA:

playSound


Więcej informacji znajdziesz w Wikipedii MTA:

playSound3D

Marker

Więcej informacji znajdziesz w Wikipedii MTA:

createMarker


Więcej informacji znajdziesz w Wikipedii MTA:

onClientMarkerHit

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

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-01-14, 19:31


Vintage







Wiek: 24
Na forum: 3696 dni
Posty: 64

Piwa: 1

Respekt: 45,8

Hazmudex, a marker przy veh ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-01-14, 19:35


_Haze

Peace Yo!






Wiek: 25
Na forum: 4325 dni
Posty: 1648
Nick w MP: Haze

Piwa: 2628

Respekt: 1020
Respekt: 1020

HerbatnikTv,
Więcej informacji znajdziesz w Wikipedii MTA:

createMarkerAttachedTo

to usefal function musisz wklei? j? do kodu i u?y? jak jest podane na wiki

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-01-14, 19:44


Vintage







Wiek: 24
Na forum: 3696 dni
Posty: 64

Piwa: 1

Respekt: 45,8

Hazmudex,

function createMarkerAttachedTo(element, mType, size, r, g, b, a, visibleTo, xOffset, yOffset, zOffset)

to ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-01-14, 19:49


_Haze

Peace Yo!






Wiek: 25
Na forum: 4325 dni
Posty: 1648
Nick w MP: Haze

Piwa: 2628

Respekt: 1020
Respekt: 1020

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)

Postaw piwo autorowi tego posta
 

 
Tagi: pony :: interfejs :: audio
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku