Wysłany: 2016-07-30, 14:15
mixLoLmix2
Programista
Wiek: 35 Na forum: 4113 dni Posty: 454
Nick w MP: TomeQmix
Piwa : 1915
Witam jak zrobic ze jak jestem w LV to na lewo na dole pisze miasto Las Vanturas ale zeby to podmienic pod Warszawe?
ze LV to Warszawa
Wysłany: 2016-07-30, 14:18
luki123luki123
Place Game
Wiek: 28 Na forum: 5275 dni Posty: 1948
Nick w MP: LuKiO
Piwa : 6101
mixLoLmix2 , pobierz nazw? miasta oraz potem warunek zr?b i je?eli jest miasto to Las Ventures to nadaj zmiena np.
[lua] local miasto = "Warszawa"
Wysłany: 2016-07-30, 21:14
mixLoLmix2
Programista
Wiek: 35 Na forum: 4113 dni Posty: 454
Nick w MP: TomeQmix
Piwa : 1915
A jak to by wygl?da?o w Kodzie?
Moze by? potrzebne do tego:
local sw , sh = guiGetScreenSize ()
local font = dxCreateFont ( "epikk.ttf" , 18 )
if not font then dxfont0_tekst = "sans" end
addEventHandler ( "onClientPreRender" , root , function()
local x , y , z = getElementPosition ( localPlayer )
local ulica = getZoneName ( x , y , z , false )
local ulica2 = getZoneName ( x , y , z , true )
if ulica2 ~= ulica then ulica = " " .. ulica .. "\n" .. ulica2 else ulica = " " .. ulica end
if dxSetAspectRatioAdjustmentEnabled then
dxSetAspectRatioAdjustmentEnabled ( true )
end
if isPlayerHudComponentVisible ( "radar" ) and getElementInterior ( localPlayer ) == 0 then
dxDrawText ( ulica , sw * 4.2 / 20 , sh * 18 / 20 , sw * 4 / 20 , sh * 18 / 20 + sh * 1 / 21.9 , tocolor ( 255 , 255 , 255 , 255 ), 0.50 , font , "left" , "center" )
dxDrawRectangle ( sw * 2.5 / 20 , sh * 18 / 20 , sw * 0.7 / 4 , sh * 1 / 21.9 , tocolor ( inDMZone and 100 or 0 , 0 , 0 , 100 ))
end
end )
Podpis
Zajmuję się pisaniem zaawansowanych skryptów lua na zamówienie za bardzo niską cene.
Oraz pomoc przy serwerze mta/forum i tym podobnych.
Discord: TomeQmix#7106
Wysłany: 2016-07-30, 21:55
luki123luki123
Place Game
Wiek: 28 Na forum: 5275 dni Posty: 1948
Nick w MP: LuKiO
Piwa : 6101
mixLoLmix2 , co? takiego:
addEventHandler ( "onClientRender" , getRootElement (),
function ()
local x , y , z = getElementPosition ( getLocalPlayer ())
local miasto = getZoneName ( x , y , z )
local nazwa = ""
if miasto == "Las Venturas" then
nazwa = "Warszawa"
elseif miasto = "Los Santos" then
nazwa = "Bla bla"
end
dxDrawText ( nazwa , 0 , 0 , 100 , 100 , tocolor ( 255 , 255 , 255 , 255 ), 0.50 , font , "left" , "center" )
end
)
Wysłany: 2016-07-30, 22:02
mixLoLmix2
Programista
Wiek: 35 Na forum: 4113 dni Posty: 454
Nick w MP: TomeQmix
Piwa : 1915
Dzieki
Podpis
Zajmuję się pisaniem zaawansowanych skryptów lua na zamówienie za bardzo niską cene.
Oraz pomoc przy serwerze mta/forum i tym podobnych.
Discord: TomeQmix#7106
Tagi: miasta
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: