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: motopompy
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 xygetElementPosition(player)
local obiekt createObject(2548xy0.6)
setElementData(obiekt"postawiono"true)
table.insert(torbyobiekt)

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(playerthen
            
if isElement(vthen
            destroyElement
(v)
        
end
            end
      end
torby 
= {}
end
addCommandHandler
("umoto"podnies)