Doongogar Posted December 4, 2021 Share Posted December 4, 2021 olá eu queria saber se tem como eu substituir o nome das armas pra aparecer no chat eu tentei assim mais não funcionou Knife = "Faca" function GivarArma(thePlayer, weapon, ammo) giveWeapon(thePlayer, weapon, ammo) weapName = getWeaponNameFromID(weapon) outputChatBox("Arma: "..weapName.." Setada Com Sucesso", thePlayer, 255, 255, 255, true) a ideia minha e que quando aparecesse a palavra Knife ela fosse substituida por "Faca" Link to comment
Other Languages Moderators Lord Henry Posted December 4, 2021 Other Languages Moderators Share Posted December 4, 2021 Coloque isso antes do outputChatBox: if (weapName == "knife") then weapName = "faca" end Se for fazer com várias armas, implemente uma tabela. E indente seu código. 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now