BrasilFavela Posted May 19, 2019 Share Posted May 19, 2019 function Receber_Client_AirNewSCR ( Jogador_Selecionado, Preco, ID_Arma, Balas ) local Jogador_Destinatario = getPlayerFromName ( Jogador_Selecionado ) local Dinheiro = getPlayerMoney ( Jogador_Destinatario ) if tonumber ( Preco ) >= 0 then if tonumber ( Preco ) <= Dinheiro then local Traficante = getElementData ( Jogador_Destinatario, "AirNewSCR_Trafico_Enviado" ) if isElement ( Traficante ) then triggerClientEvent(source, "addNotification", root, "O(A) Jogador(a) "..getPlayerName(cliente).."Já está negociando com outro Traficante!", "info" ) else Nome_Arma = getWeaponNameFromID ( ID_Arma ) setElementData ( Jogador_Destinatario, "AirNewSCR_Trafico_Cliente", "Sim" ) Temporizador [ Jogador_Destinatario ] = setTimer ( Cancelar_Reparo_AirNewSCR, Tempo_para_Cancelar_Solicitacao * 1000,1, Jogador_Destinatario ) setElementData ( Jogador_Destinatario, "AirNewSCR_Trafico_Enviado", source ) setElementData ( Jogador_Destinatario, "AirNewSCR_Trafico_ID_Arma", ID_Arma ) setElementData ( Jogador_Destinatario, "AirNewSCR_Trafico_Preco", Preco ) setElementData ( Jogador_Destinatario, "AirNewSCR_Trafico_Balas", Balas ) setElementData ( source, "AirNewSCR_Negociacao", "Sim" ) triggerClientEvent(source, "addNotification", root, "Você ofereceu ao Jogador "..getPlayerName(Jogador_Destinatario).." uma "..Nome_Arma.." com "..Balas.." Bala(s) por $"..Preco.."", "info" ) playSoundFrontEnd ( Jogador_Destinatario, 43 ) triggerClientEvent(source, "addNotification", root, getPlayerFromName, "O(A) Traficante "..getPlayerName(source).." lhe ofereceu uma "..Nome_Arma.." com "..Balas.." Bala(s) por $"..Preco.." Digite( /Aceitar ) ou ( /Recusar ) para responder a Transação!", Jogador_Destinatario, "info" ) end else triggerClientEvent(source, "addNotification", root, "O(A) Jogador(a) não possui dinheiro suficiente!", "info" ) end end OBS: triggerClientEvent(source, "addNotification", root, getPlayerFromName, "O(A) Traficante "..getPlayerName(source).." lhe ofereceu uma "..Nome_Arma.." com "..Balas.." Bala(s) por $"..Preco.." Digite( /Aceitar ) ou ( /Recusar ) para responder a Transação!", Jogador_Destinatario, "info" ) ( NESTA LINHA QUERIA MUITO MESMO NA HUMILDADE QUE ESSA MENSAGEM APARECESSE PARA O JOGADOR, POIS APARECE PRA MIM E PRO PLAYER NÃO ) Link to comment
Eficiencia Posted May 19, 2019 Share Posted May 19, 2019 Pfv amigo coloque o script de forma correta clicando em <> Bom mas prosseguindo, vc deve baixar o mod que responde a addNotification 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