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

Wysłany: 2017-01-26, 18:05


OskarYT

Mapper MTA






Wiek: 26
Na forum: 4245 dni
Posty: 267
Nick w MP: Kaczorek2306

Piwa: 1230

Respekt: 85,3

Dopisa?em aby po usuni?ciu helicrasha usuwaly si? blipy ale one zostaj? i nak?adaja sie na siebie ka?y wie jak dzialaja helicrashe na serwerach DayZ, prosz? o pomoc bo nie mam poj?cia dlaczego te blipy sie nie usuwaj?

function createHeliCrashSite()
    if cargoCol then
        destroyElement(getElementData(cargoCol,"blip"))
        destroyElement(getElementData(cargoCol,"parent"))
        destroyElement(cargoCol)
    end
    local item_id math.random(table.size(heliCrashSites))
    local x,y,heliCrashSites[item_id][1],heliCrashSites[item_id][2],heliCrashSites[item_id][3]
    cargobob createVehicle(548,x,y,z,nil,nil,nil)
    cargobob1 createBlip(x,y,z,5) 
    setElementData(cargoCol,"blip",cargobob1)
    blowVehicle(cargobob)
    setElementFrozen(cargobob,true)
    setVehicleLocked(cargobob,true)
    cargoCol createColSphere(x,y,z,3)
    setElementData(cargoCol,"parent",cargobob)
    setElementData(cargoCol,"helicrash",true)
    setElementData(cargoCol,"MAX_Slots",0)
    setElementData(cargoCol"M4"13)
    setElementData(cargoCol"Coyote Backpack"5)
    setElementData(cargoCol"M4 Mag"25)
    setElementData(cargoCol"MP5A5"13)
    setElementData(cargoCol"MP5A5 Mag"25)
    setElementData(cargoCol"Ghillie Suit"7)
    setElementData(cargoCol"GPS"15)
    setElementData(cargoCol"Map"15)
    setElementData(cargoCol"CZ 550"8)
    setElementData(cargoCol"CZ 550 Mag"16)
    setElementData(cargoCol"AK-47"13)
    setElementData(cargoCol"AK Mag"25)
    outputChatBox "[Vulgar-DayZ]Helicrash he crashed on the map, in a helicopter is a lot of weapons."getRootElement(), 25500true )
    setTimer(createHeliCrashSite,360000,1)
end
createHeliCrashSite()


Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-01-26, 18:13


_Haze

Peace Yo!






Wiek: 24
Na forum: 4184 dni
Posty: 1648
Nick w MP: Haze

Piwa: 2628

Respekt: 1020
Respekt: 1020

OskarYT,
 if cargobob1 then destroyElement(cargobob1end


Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-01-26, 18:23


OskarYT

Mapper MTA






Wiek: 26
Na forum: 4245 dni
Posty: 267
Nick w MP: Kaczorek2306

Piwa: 1230

Respekt: 85,3

Tak ma to wygl?da? ??


function createHeliCrashSite()
    if cargoCol then
    if cargobob1 then destroyElement(cargobob1end
        destroyElement(getElementData(cargoCol,"blip"))
        destroyElement(getElementData(cargoCol,"parent"))
        destroyElement(cargoCol)
    end
    local item_id math.random(table.size(heliCrashSites))
    local x,y,heliCrashSites[item_id][1],heliCrashSites[item_id][2],heliCrashSites[item_id][3]
    cargobob createVehicle(548,x,y,z,nil,nil,nil)
    cargobob1 createBlip(x,y,z,5) 
    setElementData(cargoCol,"blip",cargobob1)
    blowVehicle(cargobob)
    setElementFrozen(cargobob,true)
    setVehicleLocked(cargobob,true)
    cargoCol createColSphere(x,y,z,3)
    setElementData(cargoCol,"parent",cargobob)
    setElementData(cargoCol,"helicrash",true)
    setElementData(cargoCol,"MAX_Slots",0)
    setElementData(cargoCol"M4"13)
    setElementData(cargoCol"Coyote Backpack"5)
    setElementData(cargoCol"M4 Mag"25)
    setElementData(cargoCol"MP5A5"13)
    setElementData(cargoCol"MP5A5 Mag"25)
    setElementData(cargoCol"Ghillie Suit"7)
    setElementData(cargoCol"GPS"15)
    setElementData(cargoCol"Map"15)
    setElementData(cargoCol"CZ 550"8)
    setElementData(cargoCol"CZ 550 Mag"16)
    setElementData(cargoCol"AK-47"13)
    setElementData(cargoCol"AK Mag"25)
    outputChatBox "[Vulgar-DayZ]Helicrash he crashed on the map, in a helicopter is a lot of weapons."getRootElement(), 25500true )
    setTimer(createHeliCrashSite,360000,1)
end
createHeliCrashSite()


Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-01-26, 18:25


_Haze

Peace Yo!






Wiek: 24
Na forum: 4184 dni
Posty: 1648
Nick w MP: Haze

Piwa: 2628

Respekt: 1020
Respekt: 1020

OskarYT, tak ale mo?esz to te? da? od razu po funkcji

Postaw piwo autorowi tego posta
 

 
Tagi: helicrash :: blip
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » helicrash blip 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