Jump to content

Rafaelxvv

Members
  • Posts

    12
  • Joined

  • Last visited

Rafaelxvv's Achievements

Square

Square (6/54)

0

Reputation

  1. function buyweaponsadan(plr, wpn) if wpn == "deagle" then if (getPlayerMoney(plr) >= 85000) then takePlayerMoney(plr, 85000) giveWeapon(plr, 24, 600) triggerClientEvent(plr,"ADaddPlayerMSG",plr,"Você comprou uma Desert Eagle / +600 munições!") playSoundFrontEnd(plr,11) else triggerClientEvent(plr,"ADaddPlayerMSG",plr,"Você não tem dinheiro suficiente!") end elseif wpn == "brass" then if (getPlayerMoney(plr) >= 25000) then takePlayerMoney(plr,25000) giveWeapon(plr,1,0) triggerClientEvent(plr,"ADaddPlayerMSG",plr,"Você comprou uma Brassnuckle!") playSoundFrontEnd(plr,11) else triggerClientEvent(plr,"ADaddPlayerMSG",plr,"Você não tem dinheiro suficiente!") end elseif wpn == "faca" then if (getPlayerMoney(plr) >= 10000) then takePlayerMoney(plr,10000) giveWeapon(plr,4,0) triggerClientEvent(plr,"ADaddPlayerMSG",plr,"Você comprou uma Faca!") playSoundFrontEnd(plr,11) else triggerClientEvent(plr,"ADaddPlayerMSG",plr,"Você não tem dinheiro suficiente!") end elseif wpn == "colt" then if (getPlayerMoney(plr) >= 45000) then takePlayerMoney(plr,45000) giveWeapon(plr,22,600) triggerClientEvent(plr,"ADaddPlayerMSG",plr,"Você comprou uma Colt 45 / +600 munições!") playSoundFrontEnd(plr,11) else triggerClientEvent(plr,"ADaddPlayerMSG",plr,"Você não tem dinheiro suficiente!") end elseif wpn == "taco" then if (getPlayerMoney(plr) >= 15000) then takePlayerMoney(plr,15000) giveWeapon(plr,5,0) triggerClientEvent(plr,"ADaddPlayerMSG",plr,"Você comprou um Taco!") playSoundFrontEnd(plr,11) else triggerClientEvent(plr,"ADaddPlayerMSG",plr,"Você não tem dinheiro suficiente!") end end end addEvent("ADANbuyweapon",true) addEventHandler("ADANbuyweapon",resourceRoot,buyweaponsadan) essa é a toda a parte, edita pra quem não tem o porte não conseguir comprar + a mensagem igual as outras
  2. ta funcionando de boa, não tem como comprar a arma sem ter o porte, vlw ... o único problema é que a mensagem da linha 14 não ta aparecendo na tela, já as outras sim "Você não possui porte de arma!"
  3. n ta dando certo function buyweaponsadan(plr,wpn) if wpn == "deagle" then if (getPlayerMoney(plr) >= 85000) then elseif getElementData(playerSource, "TS:PorteDeArmas") == "Sim" then takePlayerMoney(plr,85000) giveWeapon(plr,24,600) triggerClientEvent(plr,"ADaddPlayerMSG",plr,"Você comprou uma Desert Eagle / +600 munições!") playSoundFrontEnd(plr,11) else triggerClientEvent(plr,"ADaddPlayerMSG",plr,"Você não tem dinheiro suficiente!") end o script é assim, iai tem como me ajudar?
  4. nessa parte que você colocou: "Porte" o que eu devo colocar em vez de Porte? isso? > setElementData(localPlayer, "TS:PorteDeArmas", "Sim") ou então isso? > setElementData ( source, "TS:PorteDeArmas", Emprego ) ou isso? > setAccountData ( conta, "TS:PorteDeArmas", Porte )
  5. Estou fazendo um sistema de Porte de Armas + Venda de Armas. E eu quero deixar assim, só quem pode comprar arma é quem tem o porte de armas. Quem não tem, não consegue comprar as armas. Alguém que possa me ajudar?
×
×
  • Create New...