Jump to content

ajuda aki pf


Recommended Posts

Blz , vou tenta explicar.

eu coloquei armas novas na minha gm de dayz oque eu fis explicando resumidamente foi : eu coloquei armas novas clocando objetos no lugar das armas e fazendo sumir as armas .

dai a hud de armas que tenho nao da para colocar essas armas que coloquei pq ela pega pelo id da arma na mao. 

esse aki e o meu hud de arma:

 

function speed ( )
    addEventHandler ( "onClientRender", root, getspeed )
end
addEventHandler ("onClientVehicleEnter", root, speed)

function wylacz ( )

    removeEventHandler ( "onClientRender", root, getspeed )
end
addEventHandler("onClientVehicleExit", root, wylacz)


    function hud ( )
        ammo = getPedTotalAmmo ( getLocalPlayer() )
        clip = getPedAmmoInClip ( getLocalPlayer() )
        weaponID = getPedWeapon(getLocalPlayer())
        health = getElementHealth (localPlayer)
arma = getPedWeapon( getLocalPlayer() )
clip = getPedAmmoInClip ( getLocalPlayer() )
bala = getPedTotalAmmo ( getLocalPlayer() )
local hour, minutes = getTime()
local x, y = guiGetScreenSize ( ) posx2= x-0 posy2= 0 posx3= x-0 posy3= 0
    dxDrawText("                        "..clip.." | "..bala,posx2-330, posy2+30, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)
    dxDrawText("                        "..hour..":"..minutes,posx2-380, posy2+80, x, y,tocolor(0,139,0),1.0,"bankgothic","left","top",false,false,false)
    --dxDrawText("                "..FPSCalc..":"..FPSMax,posx2-550, posy2+0.1, x, y,tocolor(150,150,0,150),0.7,"bankgothic","left","top",false,false,false)
    if ( arma==31 ) then element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==31 ) then element1 = dxDrawText(" Auto ",posx3-290, posy3+30, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==30 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==30 ) then element1 = dxDrawText(" Auto ",posx3-290, posy3+30, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==27 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==28 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==28 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+30, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==29 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==26 ) then destroyElement(element1)element1 = dxDrawText(" Arma  ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==25 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==24 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==23 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==22 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==8 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==6 ) then destroyElement(element1)element1 = dxDrawText(" Ama ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==4 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==5 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==2 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==33 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==34 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==34 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+30, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==16 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,198,0,255),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==17 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)
end
function quitar ( )
    showPlayerHudComponent (source, "armour", false )
    showPlayerHudComponent (source, "health", false )
    showPlayerHudComponent (source, "money", false )
    showPlayerHudComponent (source, "clock", false )
    showPlayerHudComponent (source, "weapon", false )
    showPlayerHudComponent (source, "ammo", false)
    showPlayerHudComponent (source, "money", false )
    showPlayerHudComponent (source, "wanted", false )
    showPlayerHudComponent (source, "crosshair", true )    
end
addEventHandler ( "onPlayerJoin", getRootElement(), quitar )
addEventHandler ( "onResourceStart", getRootElement(), quitar )
    end
addEventHandler("onClientRender",getRootElement(),hud)
addEventHandler("onClientPlayerSpawn",getRootElement(),hud)


if fileExists("c.lua") == true then
  fileDelete("c.lua")
end
 

 

sera que posso modificar algo dela para colocar minhas armas novas?

ei ja que vc nao gosta que eu fique criando topicos tambem preciso de outra ajuda parecida , tipo essas armas novas preciso que quando o jogador tirar das maos ela vai apara as costas vc sabe como coloco?

Link to comment
    function hud ( )
        ammo = getPedTotalAmmo ( getLocalPlayer() )
        clip = getPedAmmoInClip ( getLocalPlayer() )
        weaponID = getPedWeapon(getLocalPlayer())
        health = getElementHealth (localPlayer)
arma = getPedWeapon( getLocalPlayer() )
clip = getPedAmmoInClip ( getLocalPlayer() )
bala = getPedTotalAmmo ( getLocalPlayer() )
local hour, minutes = getTime()
local x, y = guiGetScreenSize ( ) posx2= x-0 posy2= 0 posx3= x-0 posy3= 0
    dxDrawText("                        "..clip.." | "..bala,posx2-330, posy2+30, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)
    dxDrawText("                        "..hour..":"..minutes,posx2-380, posy2+80, x, y,tocolor(0,139,0),1.0,"bankgothic","left","top",false,false,false)
    --dxDrawText("                "..FPSCalc..":"..FPSMax,posx2-550, posy2+0.1, x, y,tocolor(150,150,0,150),0.7,"bankgothic","left","top",false,false,false)
    if ( arma==31 ) then element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==31 ) then element1 = dxDrawText(" Auto ",posx3-290, posy3+30, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==30 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==30 ) then element1 = dxDrawText(" Auto ",posx3-290, posy3+30, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==27 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==28 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==28 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+30, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==29 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==26 ) then destroyElement(element1)element1 = dxDrawText(" Arma  ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==25 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==24 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==23 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==22 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==8 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==6 ) then destroyElement(element1)element1 = dxDrawText(" Ama ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==4 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==5 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==2 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==33 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==34 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==34 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+30, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==16 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,198,0,255),0.8,"bankgothic","left","top",false,false,false)end
    if ( arma==17 ) then destroyElement(element1)element1 = dxDrawText(" Arma ",posx3-290, posy3+10, x, y,tocolor(0,139,0),0.8,"bankgothic","left","top",false,false,false)
end
function quitar ( )
    showPlayerHudComponent (source, "armour", false )
    showPlayerHudComponent (source, "health", false )
    showPlayerHudComponent (source, "money", false )
    showPlayerHudComponent (source, "clock", false )
    showPlayerHudComponent (source, "weapon", false )
    showPlayerHudComponent (source, "ammo", false)
    showPlayerHudComponent (source, "money", false )
    showPlayerHudComponent (source, "wanted", false )
    showPlayerHudComponent (source, "crosshair", true )    
end
addEventHandler ( "onPlayerJoin", getRootElement(), quitar )
addEventHandler ( "onResourceStart", getRootElement(), quitar )
    end
addEventHandler("onClientRender",getRootElement(),hud)
addEventHandler("onClientPlayerSpawn",getRootElement(),hud)


if fileExists("c.lua") == true then
  fileDelete("c.lua")
end

 

pronto Lord me ajuda pf , de preferencia me ajuda com o script de colocar armas nas costas , esse do hud consegui resolver

Help-me Lord Henry

Link to comment
1 hour ago, DecoJota said:

de preferencia me ajuda com o script de colocar armas nas costas

Já tinha suspeitado, mas agora que já se entregou, vou te dizer  uma coisa: Você que escolhe - se quiser criar outras contas pra fugir da punição na conta original vai ser pior pra você.

Se optar por obedecer as regras, não fazer mais spam no fórum e saber se comportar não vai levar mais punições; e agir corretamente será bom pra você, mas se continuar infringindo as regras será banido do fórum e isso também pode gerar em um ban global. A escolha é sua.

  • Sad 1
Link to comment
  • DNL291 locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...