function showDestination()
for i,v in pairs(unloadingPos) do
count = count+1
Work.objects[count] = createObject(804, v[1],v[2],v[3], 0, 0, 0 )
end
end
na
function showDestination()
for i,v in pairs(unloadingPos) do
count = count+1
obiekt = createObject(804, v[1],v[2],v[3], 0, 0, 0 )
setElementData ( obiekt, "id", tonumber ( count))
end
end
function usunobiekt ( source, cmd, id)
if id then
for k,v in ipairs ( getElementsByType ( "object" ) ) do
if getElementData ( v, "id") then
if getElementData ( v, "id") == id then
destroyElement ( v )
outputChatBox("Obiekt zosta? usuni?ty", source,255,255,255 )
end
end
end
end
end
addCommandHandler("usunobiekt", usunobiekt)
function usunobiekt ( source, cmd, id)
if id then
for k,v in ipairs ( getElementsByType ( "object" ) ) do
if getElementData ( v, "id") then
if getElementData ( v, "id") == id then
destroyElement ( v )
outputChatBox("Obiekt zosta? usuni?ty", source,255,255,255 )
end
end
end
end
end
addCommandHandler("usunobiekt", usunobiekt)
po wisaniu komendy /usunobiekt 1 nic si? nie dzieje a powinno usuwa? obiekt
Podpis
Cokolwiek robicie w swoim życiu, nie będzie to legendarne,
jeżeli wasi przyjaciele nie będą mogli tego zobaczyć.
Work= {}
Work.objects = {}
function showDestination()
for i,v in pairs(unloadingPos) do
Work.objects[i] = createObject(804, v[1],v[2],v[3], 0, 0, 0 )
end
end
[ Dodano: 2015-08-19, 10:28 ]
usu?:
function usunobiekt ( plr, cmd, id)
if id then
if isElement( Work.objects[tonumber(id)]) then
destroyElement ( Work.objects[tonumber(id)] )
outputChatBox("Obiekt zosta? usuni?ty", source,255,255,255 )
end
end
end
addCommandHandler("usunobiekt", usunobiekt)
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