[YARDIM] Freeroam Paneldeki Map'a Arama Kısmı Oluşturma

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı titrettinbeni

  • Yeni Üye
  • *
    • İleti: 2
Merhaba, Ben Freeroamdaki F1 Panelindeki Harita Bölümüne Oyuncuları Arama Kısmı Oluşturmak İstiyorum Yani Arama Kısmına Yazdığımızda Haritada Sadece o Gözüksün

Aşağıdaki Arama Kısmını
Kod: lua
wndSetPos = {
'wnd',
text = ' Harita Paneli',
width = g_MapSide + 20,
controls = {
{'img', id='map', src='map.png', width=g_MapSide, height=g_MapSide, onclick=fillInPosition, ondoubleclick=setPosClick},
{'txt', id='x', text='', width=60},
{'txt', id='y', text='', width=60},
{'txt', id='z', text='', width=60},

{'btn', id='Kapat', closeswindow=true},
{'txt', id='arama',onclick=yap, text=''},

},
oncreate = setPosInit,
onclose = closePositionWindow
}



Buraya Aktarmak İstiyorum Ama Yapamıyorum Nasıl Yapacağım Konusunda Yardıma İhtiyacım Var
Kod: lua
function updatePlayerBlips()
if not g_PlayerData then
return
end
local wnd = isWindowOpen(wndSpawnMap) and wndSpawnMap or wndSetPos
local mapControl = getControl(wnd, 'map')
for elem,player in pairs(g_PlayerData) do
if not player.gui.mapBlip then
player.gui.mapBlip = guiCreateStaticImage(0, 0, 9, 9, elem == g_Me and 'localplayerblip.png' or 'playerblip.png', false, mapControl)
player.gui.mapLabelShadow = guiCreateLabel(0, 0, 100, 14, player.name, false, mapControl)
local labelWidth = guiLabelGetTextExtent(player.gui.mapLabelShadow)
guiSetSize(player.gui.mapLabelShadow, labelWidth, 14, false)
guiSetFont(player.gui.mapLabelShadow, 'default-bold-small')
guiLabelSetColor(player.gui.mapLabelShadow, 255, 255, 255)
player.gui.mapLabel = guiCreateLabel(0, 0, labelWidth, 14, player.name, false, mapControl)
guiSetFont(player.gui.mapLabel, 'default-bold-small')
guiLabelSetColor(player.gui.mapLabel, 0, 0, 0)
end
local x, y = getElementPosition(elem)
x = math.floor((x + 3000) * g_MapSide / 6000) - 4
y = math.floor((3000 - y) * g_MapSide / 6000) - 4
guiSetPosition(player.gui.mapBlip, x, y, false)
guiSetPosition(player.gui.mapLabelShadow, x + 14, y - 4, false)
guiSetPosition(player.gui.mapLabel, x + 13, y - 5, false)
end
end
« Son Düzenleme: 19 Temmuz 2017, 20:57:49 Gönderen: Narkoz »
 


MTASATURK