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: tuningowane
1. Skrypt na tuningowane światła
po wpisaniu komendy np /swiatla 190 189 127 wyskakuje Nie uda?o si? zmieni? koloru ?wiate?. Nie wiem jak to naprawi?.

PS. obojetni? gdzie wpisze to wyskakuje a chcia?bym aby ?wiat?a mo?na by?o zmienia? tylko w markerze i ?eby zabiera?o kase :)


Kod:

Marker = createMarker( -1998.81176, 175.89739, 26.50, 'cylinder', 2.0, 255, 0, 0, 150 )-- marker
function changeCarLightsColor ( thePlayer, hitPlayer, command, red, green, blue )
local theVehicle = getPedOccupiedVehicle ( thePlayer )
if ( not theVehicle ) then
return outputChatBox ( "Nie jeste? w poje?dzie!" )
end
red = tonumber ( red )
green = tonumber ( green )
blue = tonumber ( blue )

if red and green and blue then
local color = setVehicleHeadLightColor ( theVehicle, red, green, blue )
if(not color) then
outpotChatBox ( "Nie uda?o si? zmieni? koloru ?wiate?" )
else
outputChatBox ( "?wiat?a samochodowe zosta?e zmienione pomy?lnie" )
end
else
outputChatBox ( "Nie uda?o si? zmieni? koloru ?wiate?" )
end
end
addCommandHandler ("swiatla", changeCarLightsColor )