Jump to content

Burak5312

Members
  • Posts

    361
  • Joined

  • Last visited

  • Days Won

    21

Community Answers

  1. Burak5312's post in I want blip color and chat color. was marked as the answer   
    merhaba bu şekilde yapabilirsin eğer freeroam scripti gibi scriptler kullanmıyorsanız sorunsuz çalışacaktır.
    local playerBlips = {} function setPlayerColorAndClearNick(player) local clearedNick = string.gsub(getPlayerName(player), "#%x%x%x%x%x%x", "") setPlayerName(player, clearedNick) local randomR = math.random(0, 255) local randomG = math.random(0, 255) local randomB = math.random(0, 255) if(not isElement(playerBlips[player])) then playerBlips[player] = createBlipAttachedTo(player, 0, 2, randomR, randomG, randomB, 255) end setPlayerNametagColor(player, randomR, randomG, randomB) end addEventHandler("onResourceStart", resourceRoot, function() for _,player in ipairs(getElementsByType("player")) do setPlayerColorAndClearNick(player) end end ) addEventHandler("onPlayerJoin", root, function() setPlayerColorAndClearNick(source) end ) addEventHandler("onPlayerQuit", root, function() if(isElement(playerBlips[source])) then destroyElement(playerBlips[source]) playerBlips[source] = nil end end )  
  2. Burak5312's post in MTA Stickerli Araba Sorunu was marked as the answer   
    local tech = dxCreateShader("shader.fx") local elegy = dxCreateTexture( "elegy1.png") function REPLACE_ELEGY() engineApplyShaderToWorldTexture(tech, "elegy1body256") dxSetShaderValue(tech, "gTexture", elegy) end addEventHandler("onClientResourceStart", resourceRoot, REPLACE_ELEGY) shader.fx
    texture gTexture; technique TexReplace { pass P0 { Texture[0] = gTexture; } } bu şekilde yapabilirsin alltaki kodu shader.fx olarak kaydet üstteki kodda elegy1.png adlı dosyayı kendi resmin ile değiştir elegy1body256 yazan yeride değiştireceğin txd dosyasının içindeki resimin ismi ile değiştir çalışacaktır. shader.fx i meta.xml ye eklemeyi unutma
×
×
  • Create New...