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: koła
1. Promień koła
Cze??, a wi?c tak jak w temacie nie wiem jak obliczy? promie? ko?a z "pikseli".
Chodzi o to ?e mam obrazek 170x170 i chc? sprawdzi? czy kursor gracza jest w kole funkcj? isMouseInCircle, kt?rej 3 argument to jest radius czyli promie?. Jak to wyliczy? ?
2. Usuwanie koła z pojazdu pod komendę (DayZ)
Witam. Mam ten kod i chcia?bym aby by? on pod komend? lecz moje pr?by nie udawa?y si?. Wi?c prosz? pom??cie.


  
if itemName == "removetire" then
                local col 
getElementData(getLocalPlayer(),"currentCol")
                if 
getElementData(col,"tire_inVehicle") >= and getElementData(getLocalPlayer(),"Toolbox") >= 1 then
                    local col 
getElementData(getPlayer(),"currentCol")
                    
setElementData(getLocalPlayer(),"Tire",(getElementData(getLocalPlayer(),"Tire") or 0)+1)
                    
setElementData(col,"Tire_invEhicle",getElementData(col,"Tire_inVehicle")-1)
                    
setPedAnimation(getLocalPlayer(),"BOMBER","BOM_Plant",nil,false,false,nil,false)
                    
triggerEvent("displayClientInfo",getLocalPlayer(),"Vehicle","You removed 1 Tire from vehicle",255,255,255)
                    
disableMenu()
                    return
                
end
            end
3. Podmiana paintjob i koła [Body Parts]
Jak podmieni? paintjob i ko?a [Body Parts] czy co? takiego?
Mam na kompie textury aut np.:
- elegy.dff
- elegy.txd
- elegy1.txd
- elegy2.txd
- elegy3.txd
- exh_a_l.dff i jeszcze ich wiele, wiec pisze tylko jeden


Za pomoc :piwo: