| Tematy otagowane jako: ogranicznik |
| 1. Ogranicznik w lawecie |
Siemanko !
Mam paczk? pysa i chcia?em trch pozmieniac prace zamiast tej lawety dwupi?trowej da? zwyk?? zmieni?a si? ale tak jak by w niej by? ogranicznik w??czony i po?niej wzi??em te? id jakiego? tira ?eby spr?owa? i on te? mia? pr?dkosc tylko do 40. Jak to wy??czy? ?
Bazuje na PYSIE
Z g?ry dzi?ki ! |
| 2. Licznik, ogranicznik |
Witam.
Ot?? mam skrypt na ogranicznik lecz gdy wybieram 20km/h to na liczniku jest napisane 30km/h o co chodzi? mo?e kto? pom?c? Stawiam
za pomoc.
Licznik:
[lua]
local screenX, screenY = guiGetScreenSize()
local Czcionka = dxCreateFont ( "Czcionka/czcionka.ttf",20 )
local rotacjaBiegow = 0
stanSwiatel = 0
localPlayer = getLocalPlayer ()
addEventHandler("onClientVehicleEnter", getRootElement(),
function(thePlayer, seat)
if thePlayer == getLocalPlayer() then
if seat == 0 then
bindKey ( "i", "down", interakcjaSwiatel )
stanSwiatel = getVehicleOverrideLights ( source ) or 0
end
end
end
)
addEventHandler("onClientVehicleExit", getRootElement(),
function(thePlayer, seat)
if thePlayer == getLocalPlayer() then
if seat == 0 then
unbindKey ( "i", "down" )
end
end
end
)
function drawNeedle( vehicle, seat)
if not getPedOccupiedVehicle ( localPlayer ) then
unbindKey ( "3", "down" )
stanSwiatel = 0
return true
end
if isPedInVehicle(getLocalPlayer())then
local pojazd = getElementSpeed(getPedOccupiedVehicle(getLocalPlayer()), "kmh")
local stanSilnika = (getPedOccupiedVehicle(getLocalPlayer()))
if not pojazd then return end
local pojazdPredkosc = getVehicleSpeed()
local rotacja = math.floor(((220/12800)* getVehicleRPM(getPedOc... |
|