[YARDIM] Radarda Kendi Teamını Görme

Ky · 1 · 1058

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı Ky

  • Uzman Üye
  • *
    • İleti: 614
: 09 Ocak 2019, 18:42:50
Arkadaşlar Sol Alttaki Radarda Sadece Kendi Teamımı Görmek istiyorum Başka Kişileri Görmiyecek Sadece Kendi Teamımı Görecek Örneğin Ben A Takımındayım Sol Alt Radarda A Takımının Oyuncularını göstericek blipsleri yani kendim denedim yapamadım Yardımcı Olucak Arkadaşlar Varsa Şimdiden Teşekkür Edioyurm.
Kod
function onPlayerSpawn ( spawnpoint ) --creates blip for player on team join 
    local team = getPlayerTeam (source)
    if (team == teamMexicans) then
        createBlipAttachedTo ( source, 0)
    end
end
 
function onPlayerSpawn ( spawnpoint ) --creates blip for player on team join
    local team = getPlayerTeam (source)
    if (team == teamBorderControl) then
        createBlipAttachedTo ( source, 0)
    end
end

blips = getElementsByType ( "blip" ) --sets blip colour
for blipKey, blipValue in ipairs(blips) do
    red, green, blue, alpha = getBlipColor (  blipValue )
    local team = getPlayerTeam (source)
    if (team == teamMexicans) then
        setBlipColor ( blipValue, 255, 0, 0, 255 )
    end
end
 
function onPlayerQuit ()
    destroyBlipsAttachedTo ( source )
end
 
function onPlayerWasted ( totalammo, killer, killerweapon )
    destroyBlipsAttachedTo ( source )
end
 
addCommandHandler ( "setblipscolor", setBlipsColor )
addCommandHandler ( "setblipcolor", setBlipColor )
addEventHandler ( "onResourceStart", resourceRoot, onResourceStart )
addEventHandler ( "onPlayerSpawn", root, onPlayerSpawn )
addEventHandler ( "onPlayerQuit", root, onPlayerQuit )
addEventHandler ( "onPlayerWasted", root, onPlayerWasted )
 
function destroyBlipsAttachedTo(player)
    local attached = getAttachedElements ( player )
    if ( attached ) then
        for k,element in ipairs(attached) do
            if getElementType ( element ) == "blip" then
                destroyElement ( element )
            end
        end
    end
end
 


MTASATURK

[YARDIM] Radarda Kendi Teamını Görme
« : 09 Ocak 2019, 18:42:50 »