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: publicznych
1. Radio w miejsach publicznych
Witam. Mam problem z kodem, a dok?adniej z zmian? g?o?no?ci, tutaj kod odpowiedzialny za granie. Wszystko jest w jednym pliku client
local link"http://217.74.72.11:8000/rmf_maxxx"
local radio=playSound3D(link, -2649.29126, -5.4565930.64063)
setSoundMaxDistance(radio120)
setElementDimension(radio0)
setElementInterior(radio0)


A tu z zmian? g?osno?ci.

function volume0()
setSoundVolume(radio0)
end
addCommandHandler
("glosnosc0"volume0)

function 
volume25()
setSoundVolume(radio25)
end
addCommandHandler
("glosnosc25"volume25)

itd..
Pr?bowa?em te? z argumentami, ale jak wpisze np. 25 to uznaje to za brak argumentu

function volume0(plr,cmd,arg)
arg tonumber(arg)
if 
not arg then return end
if arg == "0" then
setSoundVolume
(radio0)
elseif 
arg == "25" then
setSoundVolume
(radio0.25)
end
end
addCommandHandler
("glosnosc"volume0)
2. Prawo jazdy do publicznych skuterów
Witam mam problem poniewa? je?eli chce sie wsiasc do skutera publicznego to pisze ze nie ma sie prawa jazdy kategorii A

[code]local bikesPoints={
{462, -2697.83, -2.27, 3.93, 359.5, 360.0, 181.0},
{462, -2697.88, 0.08, 3.93, 359.5, 360.0, 181.0},
{462, -2697.89, 2.83, 3.93, 359.5, 0.0, 178.7},
{462, -2697.84, 5.15, 3.93, 359.5, 360.0, 178.7},
{462, -2697.72, -7.85, 3.93, 359.5, 0.0, 1.5},
{462, -2697.73, -10.30, 3.93, 359.5, 360.0, 358.8},
{462, -2697.79, -12.89, 3.93, 359.5, 0.0, 358.8},
{462, -2697.68, -15.47, 3.93, 359.5, 360.0, 1.4},
{462, -2016.98, 451.58, 34.77, 359.5, 0.0, 359.7},
{462, -2016.99, 449.15, 34.77, 359.5, 360.0, 359.7},
{462, -2017.00, 446.80, 34.77, 359.5, 0.0, 359.7},
{462, -2017.01, 444.31, 34.77, 359.5, 360.0, 359.7},
{462, -2017.02, 441.89, 34.77, 359.5, 360.0, 359.7},
{462, -2017.04, 439.38, 34.77, 359.5, 360.0, 359.7},
{462, -1522.09, 494.62, 6.77, 359.4, 0.0, 88.4},
{462, -1522.36, 496.23, 6.77, 359.4, 0.0, 88.4},
{462, -1522.69, 499.76, 6.79, 359.5, 360.0, 88.4},
{462, -1522.34, 498.18, 6.78, 359.5, 0.0, 95.0},
{462, -1785.04, 946.91, 24.49, 359.5, 0.0, 90.6},
{462, -1785.46, 949.25, 24.49, 359.5, 360.0, 90.6},
{462, -1785.48, 951.14, 24.49, 359.5, 360.0, 90.6},
{462, -1708.45, 33.73, 3.15, 359.2, 0.0, 317.7},
{462, -1712.04, 29.79, 3.15, 359.5, 0.0, 317.7},
{462, -1716.68, 24.69, 3.15, 359.5, 0.0, 317.7},
{462, 2101.08, 2223.17, 10.42, 359.47, 0.00, 92.35},
{462, 2097.03, 2223.00, 10....