Wysłany: 2016-02-20, 16:55
BlackTen
LUA Dev.
Wiek: 28 Na forum: 4329 dni Posty: 698
Piwa : 2080
Siemka pisz? skrypt na lakiernika no i mam problem gdy wejd? w marker nic si? nie dzieje DB3 czyste
local strefyLakiernicze = {
LakierniaDoherty = {
cuboid = {- 2338.12 ,- 173.06 , 35.32 , 6.25 , 10 , 4 },-- cuboid w ktorym musi znalezc sie pojazd
marker = {- 2337.73 ,- 164.01 , 34.32 }, -- pozycja markera w ktorym gracz bedzie stal aby w ?? czy ? lakierni ?
},
}-
for i , v in pairs ( strefyLakiernicze ) do
l_cuboid = createColCuboid ( unpack ( v . cuboid ))
l_wybor = createMarker ( v . marker [ 1 ], v . marker [ 2 ], v . marker [ 3 ], "cylinder" , 1 , 0 , 0 , 0 , 100 )
end
addEventHandler ( "onMarkerHit" , l_wybor ,
function ( player )
local pojazdy = getElementsWithinColShape ( l_cuboid , "vehicle" )
if pojazdy ~= 1 then
outputChatBox ( "Za du?o lub za ma?o pojazd?w na stanowisku" , player )
else
outputChatBox ( "Wpisz /kolor <r> <g> <b>" , player )
outputChatBox ( "Aby ustawi? kolor pojazdu! Koszt : 1000 EUR" , player )
outputChatBox ( "Liste kolor?w mo?esz sprawdzi? na: https://pl.wikipedia.org/wiki/Lista_kolor%C3%B3w" , player )
end
end
)
addCommandHandler ( "kolor" ,
function ( player , cmd , r , g , b )
local pojazd = getElementsWithinColShape ( l_cuboid , "vehicle" )
if isElementWithinMarker ( player , l_wybor ) then
if pojazd ~= 1 then
outputChatBox ( "Za du?o lub za ma?o pojazd?w!" , player )
end
if r and g and b then
setVehicleColor ( veh [ 1 ], r , g , b )
takePlayerMoney ( player , 1000 )
end
end
end
)
Wysłany: 2016-02-20, 18:20
PingwinekPlus
Uczeń Lua
Wiek: 35 Na forum: 3864 dni Posty: 79
Nick w MP: Offensywny.
Piwa : 396
w mecie po stronie ? client czy serwer ?
-----
i spr?buj tak
local strefyLakiernicze = {
LakierniaDoherty = {
cuboid = {- 2338.12 ,- 173.06 , 35.32 , 6.25 , 10 , 4 },-- cuboid w ktorym musi znalezc sie pojazd
marker = {- 2337.73 ,- 164.01 , 34.32 }, -- pozycja markera w ktorym gracz bedzie stal aby w ?? czy ? lakierni ?
}
}
for i , v in pairs ( strefyLakiernicze ) do
l_cuboid = createColCuboid ( unpack ( v . cuboid ))
l_wybor = createMarker ( v . marker [ 1 ], v . marker [ 2 ], v . marker [ 3 ], "cylinder" , 1 , 0 , 0 , 0 , 100 )
end
addEventHandler ( "onMarkerHit" , l_wybor ,
function ( player )
local pojazdy = getElementsWithinColShape ( l_cuboid , "vehicle" )
if pojazdy ~= 1 then
outputChatBox ( "Za du?o lub za ma?o pojazd?w na stanowisku" , player )
else
outputChatBox ( "Wpisz /kolor <r> <g> <b>" , player )
outputChatBox ( "Aby ustawi? kolor pojazdu! Koszt : 1000 EUR" , player )
outputChatBox ( "Liste kolor?w mo?esz sprawdzi? na: https://pl.wikipedia.org/wiki/Lista_kolor%C3%B3w" , player )
end
end
)
addCommandHandler ( "kolor" ,
function ( player , cmd , r , g , b )
local pojazd = getElementsWithinColShape ( l_cuboid , "vehicle" )
if isElementWithinMarker ( player , l_wybor ) then
if pojazd ~= 1 then
outputChatBox ( "Za du?o lub za ma?o pojazd?w!" , player )
end
if r and g and b then
setVehicleColor ( veh [ 1 ], r , g , b )
takePlayerMoney ( player , 1000 )
end
end
end
)
Podpis
@
[you]
Pomogłem? || Daj >>
Piweczko
i Respekta
Unikatowy serwer: OneLife! Gotowy w: # 62%
Serwer wam oddany! serwer został stworzony od graczy dla gracz
Wysłany: 2016-02-20, 18:23
BlackTen
LUA Dev.
Wiek: 28 Na forum: 4329 dni Posty: 698
Piwa : 2080
Ten sam b??d strona servera
Wysłany: 2016-02-20, 18:31
PingwinekPlus
Uczeń Lua
Wiek: 35 Na forum: 3864 dni Posty: 79
Nick w MP: Offensywny.
Piwa : 396
aa gdzie masz zdefiniowane czy Gracz jest w markerze ?
Podpis
@
[you]
Pomogłem? || Daj >>
Piweczko
i Respekta
Unikatowy serwer: OneLife! Gotowy w: # 62%
Serwer wam oddany! serwer został stworzony od graczy dla gracz
Wysłany: 2016-02-20, 18:32
BlackTen
LUA Dev.
Wiek: 28 Na forum: 4329 dni Posty: 698
Piwa : 2080
addCommandHandler ( "kolor" ,
function ( player , cmd , r , g , b )
local pojazd = getElementsWithinColShape ( l_cuboid , "vehicle" )
if isElementWithinMarker ( player , l_wybor ) then
if pojazd ~= 1 then
outputChatBox ( "Za du?o lub za ma?o pojazd?w!" , player )
end
if r and g and b then
setVehicleColor ( veh [ 1 ], r , g , b )
takePlayerMoney ( player , 1000 )
end
end
end
)
Wysłany: 2016-02-20, 18:33
PingwinekPlus
Uczeń Lua
Wiek: 35 Na forum: 3864 dni Posty: 79
Nick w MP: Offensywny.
Piwa : 396
hymm dziwne na pewno nic a nic w debugscript 3 nie pisze ?
Podpis
@
[you]
Pomogłem? || Daj >>
Piweczko
i Respekta
Unikatowy serwer: OneLife! Gotowy w: # 62%
Serwer wam oddany! serwer został stworzony od graczy dla gracz
Wysłany: 2016-02-20, 18:35
BlackTen
LUA Dev.
Wiek: 28 Na forum: 4329 dni Posty: 698
Piwa : 2080
Niestety nie
[ Dodano : 2016-02-20, 18:41 ]
Ma ktos pomys??
[ Dodano : 2016-02-20, 19:03 ]
CLOSE THE TOPIC
Tagi: lakiernik
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: