Witam to znowu ja tym raczej poszukuje funkcji ?eby na ekranie u wszystkich graczy wy?wietla? si? napis typu: Aby znale?? informacje kliknij F3. Pozdrawiam
marcin778, Okej dzi?ki p??nej ogarn? tw?j kod a na teraz b?dzie to dzia?a??
local screenWidth, screenHeight = guiGetScreenSize ( ) -- Get the screen resolution (width and height)
function createText ( )
local playerX, playerY, playerZ = getElementPosition ( localPlayer ) -- Get our player's coordinates.
local playerZoneName = getZoneName ( playerX, playerY, playerZ ) -- Get name of the zone the player is in.
-- Draw zone name text's shadow.
dxDrawText ( playerZoneName, 44, screenHeight - 41, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 1.02, "Tekst" )
-- Draw zone name text.
dxDrawText ( playerZoneName, 44, screenHeight - 43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "Tekst" )
end
function HandleTheRendering ( )
addEventHandler ( "onClientRender", root, createText )
end
[ Dodano: 2017-03-12, 17:23 ]
I b?dzie to pokazywa? wszystkim gracza?
Ostatnio zmieniony przez luki123luki123 2017-03-12, 20:57, w całości zmieniany 1 raz
local screenWidth, screenHeight = guiGetScreenSize ( ) -- Get the screen resolution (width and height)
function createText ( )
local playerX, playerY, playerZ = getElementPosition ( localPlayer ) -- Get our player's coordinates.
local playerZoneName = getZoneName ( playerX, playerY, playerZ ) -- Get name of the zone the player is in.
-- Draw zone name text's shadow.
dxDrawText ( playerZoneName, 44, screenHeight - 41, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 1.02, "Tekst" )
-- Draw zone name text.
dxDrawText ( playerZoneName, 44, screenHeight - 43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "Tekst" )
end
function HandleTheRendering ( )
addEventHandler ( "onClientRender", root, createText )
end
HandleTheRendering()
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach