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

Wysłany: 2014-06-19, 20:04


darekpo799







Wiek: 40
Na forum: 4383 dni
Posty: 10
Nick w MP: darekpo799



Respekt: 55,3

Witajcie mam problem z respawnem aut ot?z wgl nie wiem jak za to sie zabrac a moze ktos ma juz gotowy skrypt ?? ?

Bardzo potrzebuje tego skryptu

I przepraszam jak bym nie w dobrym miejscu wstawil ten temat poprostu jestem nowy ;)

Za skrypt lub pomoc dam :piwo:

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-19, 20:07


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4394 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

Kod z mojego serwera :

local respawn 30
local r
addCommandHandler("unspawn",function(player)
local accName getAccountName getPlayerAccount player ) )
     if not isObjectInACLGroup ("user."..accNameaclGetGroup "Admin" ) ) then return end
    if isTimer(rthen
        resetTimer(r)
        outputDebugString("Srut")
        return
    end
    outputChatBox"Respawn pojazd?w nast?pi za 30 sekund !",root255255255 )   
        outputDebugString("Srut")
    setTimer(function()
        for _vehicle in ipairs getElementsByType "vehicle" ) ) do 
        if getElementData vehicle"zapisany" then
        if isEmpty vehicle then
        local x getElementData vehicle"x" )
        local y getElementData vehicle"y" )
        local z getElementData vehicle"z" )
        local r1 getElementData vehicle"r1" )
        local r2 getElementData vehicle"r2" )
        local r3 getElementData vehicle"r3" )
        setElementPosition vehicletonumber(x), tonumber(y), tonumber(z) )
        setElementRotation vehicletonumber (r1), tonumber(r2), tonumber(r3) )
        end
            else 
            if isEmptyvehicle then
                destroyElement vehicle )
            end
        end
        end
        --end
        outputDebugString("Jeeeb unspawn")
        outputChatBox("Respawn pojazd?w gotowy"root255255255)
    end,respawn*1000,1)
end)

function isEmptyvehicle )
    local passengers getVehicleMaxPassengersvehicle )
    if typepassengers ) == 'number' then
        for seat 0passengers do
            if getVehicleOccupantvehicleseat then
                return false
            end
        end
    end
    return true
end


Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-20, 07:31


darekpo799







Wiek: 40
Na forum: 4383 dni
Posty: 10
Nick w MP: darekpo799



Respekt: 55,3

aha czyli ze wpisze /unspawn i wszystkie auta znikna tak ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-20, 07:33


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4394 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

darekpo799, wszystkie zniszczone b?d? puste.

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-20, 12:58


Riot

3X






Wiek: 29
Na forum: 5729 dni
Posty: 1123
Nick w MP: Riot/3X

Piwa: 286

Respekt: 123
Respekt: 123

[prze]

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-22, 12:22


Maciąg







Wiek: 26
Na forum: 4376 dni
Posty: 211
Nick w MP: Dawirzo

Piwa: 149

Respekt: 31

Mogliby?cie poda? jak ma wygl?da? meta? Bo zdaje mi si? ?e ?le zrobi?em :) Z g?ry dzi?kuj? ! Daje :piwo:

Podpis
Status prac nad Time to play RPG 25%
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-22, 17:25


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4394 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

<meta>
<script src="nazwa.lua"/>
</meta>

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Tagi: jak :: zrobic :: skrypt :: respawn :: nie :: uzywanych :: aut
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » jak zrobic skrypt respawn nie uzywanych aut 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