DecoJota Posted January 28, 2019 Share Posted January 28, 2019 alguem sabe como consigo colocar o nome de armas novas nos huds de armas , pq tipo oque tenho ele pega pelas armas padrao , alguem sabe como fas? Link to comment
DNL291 Posted January 28, 2019 Share Posted January 28, 2019 Mostre como está o seu HUD e o sistema de armas novas. Link to comment
DecoJota Posted January 28, 2019 Author Share Posted January 28, 2019 ok , vc acha melhor se continuo aki ou crio outro topico? Link to comment
DNL291 Posted January 28, 2019 Share Posted January 28, 2019 Mostre aqui mesmo por favor. Evite criar vários tópicos. Link to comment
DecoJota Posted January 29, 2019 Author Share Posted January 29, 2019 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
Other Languages Moderators Lord Henry Posted January 29, 2019 Other Languages Moderators Share Posted January 29, 2019 Use isso pra postar código. Link to comment
DecoJota Posted January 29, 2019 Author Share Posted January 29, 2019 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
DNL291 Posted January 29, 2019 Share Posted January 29, 2019 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. 1 Link to comment
Recommended Posts