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

Wysłany: 2023-01-02, 23:44


Fl!k







Wiek: 26
Na forum: 3592 dni
Posty: 162

Piwa: 18

Respekt: 50

Witam , potrzebuje pomocy! Chcia?bym zrobi? syrene gdy otworzy sie jedna ze skrzy? :/ znalaz?em podobny skrypt pr?buje cos zrobic ale niezbyt wychodzi ;d
ZA POMOC DAJE PIWKO :piwo:

ZNALEZIONE SERVER:
    triggerClientEvent("serenaON"rootboxCol[i])
    setTimer(updateBox25200001) -- 45 минут

CLIENT:
addEvent("serenaON"true)
addEventHandler("serenaON"root, function(obj)
    if obj then
        local x,y,getElementPositionobj )
        sirena playSound3D("sirena.mp3"xyztrue)
        setSoundMaxDistance(sirena10000)
        attachElements(sirenaobj)
        setTimer(stopSoundSirena300001sirena)
    end
end)

function stopSoundSirena (sirena)
    if isElementsirena then
        destroyElement(sirena)
    end
end


KOD DO KT?REGO CHCE WKLEI?:
local ZoneBoxesSitess = {
    {292.811814.711.01-0.6},
};

function createZoneBoxesSite()
    local plr getElementsByType('player')
    if isElement(cargoCollthen
        destroyElement(getElementData(cargoColl,"parent"));
        destroyElement(cargoColl);
    end
    local nr math.random(16);
    local x,y,ZoneBoxesSitess[nr][1], ZoneBoxesSitess[nr][2], ZoneBoxesSitess[nr][3];
    for _,v in ipairs(getElementsByType("player")) do
        if (getElementData(v'pcz:language') == 'PL'then
            outputChatBox(" ",v,255,255,255,true)
            outputChatBox ("tu cos bedzie",v,255,255,255,true)
            outputChatBox ("tu cos bedzie",v,255,255,255,true)
            outputChatBox(" ",v,255,255,255,true)
        end
    end

    cargobobb2 createObject(1854xyz)
    setElementFrozen(cargobobb2true);
    end

        cargoColl createColSphere(xyz+0.21.3);
        setElementData(cargoColl"parent"cargobobb2);
        setElementData(cargoColl"helicrash"true);
        setElementData(cargoColl"MAX_Slots"0);

        setElementData(cargoColl"zapalniczka"math.random(03) + math.random(13))

end
end

function create()
    local plr getElementsByType('player')
    if #plr >= playersNeed then
        createZoneBoxesSite()
    end
end

createZoneBoxesSite()
setTimer(createmath.random(24000003600000), 0)


Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
borsuk
Wysłany: 2023-01-05, 12:16


Norbert1234

Nie umiem w LUA






Wiek: 22
Na forum: 3987 dni
Posty: 319
Nick w MP: Gusterowskyy

Piwa: 242

Respekt: 60

nie lepiej
playSound


Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
borsuk
Tagi: paczki
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Odpowiedz do tematu

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