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: nametagi
1. [SKRYPT] Nametagi z avatarmi
Siemka wrzucam wam nametagi z avatarmi, by?y ju? raz na forum lecz zosta?y usuni?te

Autor: chyba borsuk, tak pisa?o w usuni?tym temacie




Ukryta wiadomość / Hidden message(aby ją zobaczyć musisz postawić użytkownikowi)
Wiadomość została ukryta, aby ją przeczytać należy się zalogować.
SS
2. nametagi avatar
del
3. Nametagi kolorowe
Witam posiadam skrypt na nametagi lecz jak chce da? vopis i daje przykladowo #FFFF00siema to to siema sie nie koloruje
[lua]
local sw,sh=guiGetScreenSize()
local timer = false

--local nametagFont = "default"
local nametagFont = dxCreateFont( "f/droid-sans.ttf", 11)
local auta = dxCreateFont( "f/droid-sans.ttf", 10)
if not nametagFont then nametagFont = "default-bold" end
local fontHeight=dxGetFontHeight(1, nametagFont)
local nametagScale = 1
local nametagAlpha = 255
local nametagColor =
{
r = 255,
g = 255,
b = 255
}

local hp_width=math.floor(sw/20)
if hp_width<50 then hp_width=50 end
local hp_height=math.floor(hp_width/10)

local gsize=sw>800 and 32 or 16


local ourlevel=0
local ourfid=""



setTimer(function()
ourlevel=getElementData(localPlayer, "level") or 0
ourfid=getElementData(localPlayer, "player:faction") or ""
end, 15000, 0)

function korona()
local rootx, rooty, rootz = getCameraMatrix()
for i, player in ipairs(getElementsByType("player",root,true)) do
if getElementDimension(localPlayer)==getElementDimension(player) and getElementInterior(localPlayer)==getElementInterior(player) then
if getElementAlpha(player) < 1 then
if not getElementData(localPlayer,"player:admin") == true then return end
end
local x,y,z = getPedBonePosition(player,6)
if x and y and z then
local distanc...
4. Nametagi
Witam, mam problem poniewa? gdy posiadam Premium i Premium+ to nametagi s? na sobie a jak jeden podnios? to wtedy z frakcj? to ?le wygl?da wi?c mam pytanie jak zrobi? tutaj warunek gdy mamy premium+ i premium to ?eby pokazywa?o tylko nametaga premium+

Urywek kodu:

                      dxDrawText ((getPlayerName(player).." [#b8b8b8"..getElementData(player,"id").."#ffffff]"):gsub("#%x%x%x%x%x%x",""),sxsysxsy,tocolor(255255255,255),1.0,"default-bold","center","center",false,false,true,true,true)
                    if 
getElementData(player,"player:premium"then
                    dxDrawText 
("[PREMIUM]",sxc1syc2sxc1syc2tocolor(2551910255),1.02,"default","center","center")
                    
end
                    
if getElementData(player,"player:premiumplus"then
                    dxDrawText 
("[PREMIUM+]",sxc1syc2sxc1syc2tocolor(2552150255),1.02,"default","center","center")
                    
end
                    
if getElementData(player"player:mute"then 
                    dxDrawText 
("[Zmutowany]",sxc5syc5sxc5syc5,tocolor(25500255),1.02,"default","center","center")
                    
end
5. /inv nametagi
witam jak usunac nametagi na /inv
[lua]
--local nametagFont = "default"
local nametagFont = dxCreateFont( "czcionka.ttf", 20 )
if not nametagFont then nametagFont = "default-bold" end
local vopisFont = dxCreateFont( "czcionka.ttf", 20 )
if not vopisFont then vopisFont = "default-bold" end

local screenSize = Vector2(guiGetScreenSize())
local timer = false
local nametagAlpha = 175
local nametagColor =
{
r = 255,
g = 255,
b = 255
}

-- Funkcja nametag?w graczy i pojazd?w
-- zazwyczaj s? dla u?atwienia wygl?du.
addEventHandler("onClientRender", root, function()
local rootx, rooty, rootz = getCameraMatrix()
for i,player in ipairs(getElementsByType("player")) do
if getElementDimension(localPlayer) == getElementDimension(player) and getElementInterior(localPlayer) == getElementInterior(player) then
local x,y,z = getPedBonePosition(player,7)
local sx, sy = getScreenFromWorldPosition(x, y, z+0.50)
local sxc,syc =getScreenFromWorldPosition(x, y, z+0.69)
local sxc1,syc2 =getScreenFromWorldPosition(x, y, z+0.57)
local sxc2,syc3 =getScreenFromWorldPosition(x, y, z+0.63)
local sxc5,syc5 =getScreenFromWorldPosition(x, y, z+0.42)
if sx and sy and sxc and syc and sxc1 and syc2 then
local distance = getDistanceBetweenPoints3D(rootx, rooty, rootz, x, y, z)
if getElementAlpha(player) < 2 and not getElementData(localPlayer,"player:admin"...
6. Nametagi
Edytowa?em komende /admins i po chwili patrzcie co sie sta?o z nametagami..:
Paczka Eclipse


https://imgur.com/a/QERHomn
Tutaj kod odpowiadajcy za to:

elseif level == 4 then
                                dxDrawText
("#FFFFFF[#540e0e"..getElementData(player"id").."#FFFFFF] #FFFFFF"..getPlayerName(player):gsub("#%x%x%x%x%x%x","")..""fXfYfXfYtocolor(255255255255), nametagScalenametagFont"center""center",false,false,false,true,true)
                                
dxDrawText("#FFFFFF[#540e0eCEO#FFFFFF]"fXfY-16fXfY-16tocolor(255255255255), nametagScalenametagFont"center""center",false,false,false,true,true)


Wie kto? OCB?
7. Nametagi
Cze??, mam pytanie jakie funkcje s? potrzebne do stworzenia nametag?w?
8. Nametagi
Siemka, gdzie w tym skrypcie jest pokazywanie nametaga gracza? Chc? zrobi? ?eby pokazywa? si? r?wnie? m?j nametag a nie tylko innych graczy. Za pomoc daj? :piwo: i R*
Kod: https://pastebin.com/tRc17z2c
9. Nametagi
Witaj [you]. Mam proste pytanie. Co zrobi? z tym kodem aby nametagi by?y te? widzialne dla nas samych?
Oto kod:
[lua]
local sw,sh=guiGetScreenSize()
local timer = false

--local nametagFont = "default"
local nametagFont = dxCreateFont( "f/droid-sans.ttf", 11)
local auta = dxCreateFont( "f/droid-sans.ttf", 10)
if not nametagFont then nametagFont = "default-bold" end
local fontHeight=dxGetFontHeight(1, nametagFont)
local nametagScale = 1
local nametagAlpha = 255
local nametagColor =
{
r = 255,
g = 255,
b = 255
}

local hp_width=math.floor(sw/20)
if hp_width<50 then hp_width=50 end
local hp_height=math.floor(hp_width/10)

local gsize=sw>800 and 32 or 16


local ourlevel=0
local ourfid=""



setTimer(function()
ourlevel=getElementData(localPlayer, "level") or 0
ourfid=getElementData(localPlayer, "player:faction") or ""
end, 15000, 0)

function korona()
local rootx, rooty, rootz = getCameraMatrix()
for i, player in ipairs(getElementsByType("player",root,true)) do
if getElementDimension(localPlayer)==getElementDimension(player) and getElementInterior(localPlayer)==getElementInterior(player) then
if getElementAlpha(player) < 1 then
if not getElementData(localPlayer,"player:admin") == true then return end
end
local x,y,z = getPedBonePosition(player,6)
if x and y and z then
local distance = ge...
10. Nametagi
https://imgur.com/a/YZ4w4UN

z jakiego serwera te nametagi ?
11. Nametagi nie działają PYS 3.0, Problem ze zmienną
Siemka, robie serwerek na podstawie pysa (3.0) I wyst?puje taki error:

ERROR: pystories_nametagsnametags_c:lua:91:attempt to concatenate a boolean value [DUP x339]

A tak wygl?da kod:

 local name "["..getElementData(player"id").."] "..getPlayerName(player).."" 

Wie kto? o co chodzi?
12. Który skrypt odpowiada za nametagi admina?
Cze??, kt?ry folder/skrypt odpowiada za wy?wietlanie nametag?w nad g?ow? administratora? Chodzi mi o napis "Your Adventure Administrator"
Paczka to your adventure.
13. nametagi
Witam bawi? si? w przerabianie nametag?w i mam pewien problem chc? zast?pi? dxDrawText na dxDrawImage lecz wielko?? tego obrazka jest o wiele za du?a i takie pytanie jak zmniejszy? obrazek


local rootx
rootyrootz getCameraMatrix()
        for 
i,player in ipairs(getElementsByType("player")) do
            if 
getElementDimension(localPlayer) == getElementDimension(player) and getElementInterior(localPlayer) == getElementInterior(playerthen
local x
,y,getPedBonePosition(player,8)
local sxc1,syc2 =getScreenFromWorldPosition(xyz+0.57)
local sxc2,syc3 =getScreenFromWorldPosition(xyz+0.63)
dxDrawImage(sxc1syc2sxc1syc2":marinarpg-nametags/i/premium.png"000tocolor(255255255255), true)


wygl?da to obecnie tak
https://imgur.com/a/Gh0EnS1
14. Swoje nametagi
Witam. Jak zrobi? by nie widzie? swojego nametaga nad g?ow?. Za pomoc :piwo: i R*
[lua]
--[[
# Resource Name
Basic HUD
# Author
Rage
# Date created
12.04.2014
# Copyright (c)
If you edit it, then please respect me and keep
the credits.
--]]

--# Fix on all resolutions
local screenW,screenH = guiGetScreenSize()
local resW,resH = 1280,720
local sW,sH = (screenW/resW), (screenH/resH)

local validWeaponSlots =
{
[ 2 ] = true,
[ 3 ] = true,
[ 4 ] = true,
[ 5 ] = true,
[ 6 ] = true,
[ 7 ] = true,
[ 8 ] = true,
}

addEventHandler("onClientRender", root,
function()
--# Player
local hour, mins = getTime ()
local time = hour .. ":" .. (((mins < 10) and "0"..mins) or mins)
local zone = getZoneName (getElementPosition(getLocalPlayer()))
local money = convertNumber(getPlayerMoney(localPlayer))
local health = math.floor (getElementHealth ( getLocalPlayer() ))
local armor = math.floor(getPedArmor ( getLocalPlayer() ))
dxDrawText(tostring (time), 1150*sW, 17*sH, 1270*sW, 38*sH, tocolor(255, 255, 255, 255), 1.25, "default-bold", "center", "center", false, false, false, false, false)
dxDrawText(zone, 1150*sW, 45*sH, 1270*sW, 45*sH, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center&q...
15. Nametagi
Witam, nie dzia?aj? mi nametagi, w og?le na g?rze nie ma nick?w
LINK: http://www103.zippyshare.com/v/VICFyid9/file.html

PS: Mam dodatkowy Problem z Scoreboardem po wpisaniu /duty znika mi nick zamiast si? zabarwi? na czerwono.
16. NameTagi rang nad skinami!
witam, otoz pobralem z pewnej strony skrypt na nametag z rangami, czyli ze nad moja glowa pisze "Admin" "Moderator" Itp.
Doda?em w acl te nametag i user.login lecz gdy chce wejsc na duty pisze ze nie mam uprawnien
pobiera?em to:
http://gtao.pl/%3Cfont-co...ag-vt105824.htm

prosze o pomoc
17. Nametagi optymalizacja
Chcia?em si? zapyta? czy s? jakie? specjalne funkcje do optymalizowania nametag?w tak ?eby mniej lagowa?y. Bo jak zobaczy?em swoje ile przekraczaj? to a? za g?ow? si? z?apa?em. Chcia?bym jakie? konkrety doprowadzenia malutki przyk?ad.
18. Nametagi
Witam serdecznie,
Gdy w??czam skrypt ( iyw_gui ) wyskakuje mi b??d w DB3 :
[code]iyw_guimain_c.lua:56: attempt to perform arithmetic on field '?' (a nil value ) [/code]

Teraz ca?a zawarto?? main_c.lua :
[code]

local screenSize = Vector2(guiGetScreenSize())
local timer = false

addEventHandler("onClientMinimize", root, function()
localPlayer:setData("player:minimalized", getTickCount())
localPlayer:setData("player:tick", getTickCount())
timer = Timer(function() localPlayer:setData("player:tick", getTickCount()) end, 1000, 0)
end)

addEventHandler("onClientRestore", root, function()
localPlayer:setData("player:minimalized", false)
if timer and timer.valid then timer:destroy() end
end)

addEventHandler("onClientRender", root, function()
if not isPlayerMapVisible() and not localPlayer:getData("player:hud_visible") then
local position = {getElementPosition(localPlayer)}
local city = getZoneName(position[1], position[2], position[3], true)
local street = getZoneName(position[1], position[2], position[3], false)
if dxSetAspectRatioAdjustmentEnabled then dxSetAspectRatioAdjustmentEnabled(true) end

if city == "Unknown" then street = "" end
if city ~= street then street = " "..street.."n"..city else street = " "..street end
if isPlayerHudComponentVisible("radar") and localPlayer.inte...
19. Nametagi
Witam,posiadam skrypt na nami tagi z pystories i chcia?bym doda? nametag dla nowej rangi ale niewiem czemu mi nie dzia?a
KOD
[lua]local sw,sh=guiGetScreenSize()


--local nametagFont = "default"
local nametagFont = dxCreateFont( "f/droid-sans.ttf", 10)
if not nametagFont then nametagFont = "default-bold" end
local fontHeight=dxGetFontHeight(1, nametagFont)
local nametagScale = 1.10
local nametagAlpha = 180
local nametagColor =
{
r = 255,
g = 255,
b = 255
}

local hp_width=math.floor(sw/20)
if hp_width<50 then hp_width=50 end
local hp_height=math.floor(hp_width/10)

local gsize=sw>800 and 32 or 16


local ourlevel=0
local ourfid=""



setTimer(function()
ourlevel=getElementData(localPlayer, "level") or 0
ourfid=getElementData(localPlayer, "player:faction") or ""
end, 15000, 0)

function korona()
local rootx, rooty, rootz = getCameraMatrix()
for i, player in ipairs(getElementsByType("player",root,true)) do
if getElementDimension(localPlayer)==getElementDimension(player) and getElementInterior(localPlayer)==getElementInterior(player) then
if getElementAlpha(player) < 1 then
if not getElementData(localPlayer,"player:admin") == true then return end
end
local x,y,z = getPedBonePosition(player,6)
if x and y and z then
local distance = getDistanceBetweenPoints3D(rootx, rooty, rootz, x, y, z)
if(dist...
20. Nametagi + 3D
Witam, chcia?bym zrobi? sw?j nametag, i mam taki problem ?e jak to zrobi? wymy?li?em co? takiego: robie dxDrawa, i b?dzie on mia? x,y,z+10. No ale chyba tak nie mo?na. Oraz chcia?bym zrobi? takiego markera w 3D: https://imgur.com/6s8KMhH