Jump to content

[Ajuda] Colocar Imagem para Aparecer quando quase sem ammo


Recommended Posts

Posted

Olá

Todos, Eu queria uma Ajuda para Fazer um System que aparecer uma imgem:

quando tiver quase acabando a bala no pente

Exemplo: to com 5/100 Ammo ai para aparece essa imagem:

roll.png?1424817100

ou essa:

items.png?1424817166

e Quando Aperta R a Imagem Some !

Será q tem como fazer isso ??

PorFavor me Ajudem :'( !

Muito Obrigado !

Obrigado a todos que me ajudam Aqui, No Fórum.

ekzQJez.png

Help My Clicked in Photo /\

- Minere Bitcoin's, para comprar jogos em sites de bitcoins.

Posted
local weaponsEnabled = {[30] = true, [31] = true} 
  
function draw() 
    if weaponsEnabled[getPedWeapon(localPlayer)] and getPedAmmoInClip(localPlayer) =< 10 then 
    --dxDrawImage() 
    end 
end 
addEventHandler("onClientRender", root, draw) 

jIcd9sc.png

Not worry about the future. Very soon it will come.

Posted
local weaponsEnabled = {[30] = true, [31] = true} 
  
function draw() 
    if weaponsEnabled[getPedWeapon(localPlayer)] and getPedAmmoInClip(localPlayer) =< 10 then 
    --dxDrawImage() 
    end 
end 
addEventHandler("onClientRender", root, draw) 

ainda nao funcionou ! :/

mais nao vou desisitir !

local weaponsEnabled = {[30] = true, [31] = true, [28] = true, [29] = true, [32] = true, [22] = true, [23] = true, [24] = true} 
  
function draw() 
    if weaponsEnabled[getPedWeapon(localPlayer)] and getPedAmmoInClip(localPlayer) =< 10 then 
    --dxDrawImage() 
    dxDrawImage(623, 244, 128, 80, "items.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
    end 
end 
addEventHandler("onClientRender", root, draw) 

Obrigado a todos que me ajudam Aqui, No Fórum.

ekzQJez.png

Help My Clicked in Photo /\

- Minere Bitcoin's, para comprar jogos em sites de bitcoins.

Posted
addEventHandler --> "onClientRender" 
getPedWeapon 
getPedTotalAmmo 
getPedAmmoInClip 
dxDrawImage 

Sobre o recarregamento da arma, acho melhor modificar o recurso reload e chamar um evento personalizado quando recarregar a arma. Então, use tal evento nesse script para definir uma variável para ser usada num if statement em que será mostrada a imagem de acordo com essa condição.

Please do not PM me with scripting related question nor support, use the forums instead.

Posted

[lua=meta.xml]

   

   

   

       

   

   

     

[/lua]

To Editanto com Reload junto ja !

vou dar uma pausa nesse script e vou continuar, a terminar umas coisa q ta fazendo antres decomeça com esse scripts !

Obrigado a todos que me ajudam Aqui, No Fórum.

ekzQJez.png

Help My Clicked in Photo /\

- Minere Bitcoin's, para comprar jogos em sites de bitcoins.

Posted

Ok. Mostre o código que você está tentando, assim que puder.

Please do not PM me with scripting related question nor support, use the forums instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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