Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: postawieniu
1. Dźwięk po postawieniu motopompy
Witam potrzebuj? pomocy. Ot?? chc? by po postawieniu motopompy uruchamia? si? d?wi?k (Za podes?anie skryptu R* i :piwo: ). Jakich funkcji potrzebuje ?


local torby 
= {}

function 
postaw(player)
local x, y, z = getElementPosition(player)
local obiekt = createObject(2548, x, y, z - 0.6)
setElementData(obiekt, "postawiono", true)
table.insert(torby, obiekt)

setElementData(obiekt, "postawil:gracz",getPlayerName(player))
end
addCommandHandler
("moto", postaw)

function 
podnies(player)
      for 
i,v in pairs(torby) do
if 
not getElementData(v, "postawiono") then return end
if getElementData(v, "postawil:gracz")==getPlayerName(player) then
            
if isElement(v) then
            destroyElement
(v)
        
end
            end
      end
torby 
= {}
end
addCommandHandler
("umoto", podnies)