Jump to content

KingBC

Members
  • Posts

    23
  • Joined

  • Last visited

About KingBC

  • Birthday 26/07/1994

Details

  • Gang
    The Haters Squad
  • Location
    Rio de Janeiro - Brazil
  • Occupation
    creator of the server Role Play Brasil
  • Interests
    Server, Scripts, Downloads, Help and more

Recent Profile Visitors

789 profile views

KingBC's Achievements

Civilian

Civilian (7/54)

1

Reputation

  1. O que de fato queremos fazer... Então a odeia é, quando a pessoa pedir o mecanico ele vai por um marcador pra localizar o cliente e vai até ele e quando ele solicitar o reparo e a pessoa aceitar o blip some pois ele já concluiu aquele trabalho. É possivel ter um /desmarcar ? Pq desse jeito aí não está funcionando.
  2. estou olhando aqui, vou fazer uns testes, obrigado
  3. ahhh foi mal, estava desativado, esses dias estava mexendo no celular devo ter desativado.
  4. desculpe não entendi da assinatura
  5. Pessoal, me tirem uma dúvida... Tenho um emprego e queria incluir dentro desse emprego uma função... Por exemplo: /marcar PlayerName (e aí essa função colocaria um blip nele no mapa, e /desmarcar PlayerName para remover. Como posso fazer isso?
  6. Opa galera! Blz? Esses dias estava com dúvidas sobre como criar algum script que fosse de taxi/uber para players. Acabou que achei um que era exatamente como eu queria. Mas esse tem algum problema que não consegui encontrar que não permite funcionar. Se alguém puder dar uma força, vai ajudar MUITO! Server.lua -- by manawydan taxi_system lado = server local PrecoTaxi = "50" local BlipsTaxi = {} addEventHandler("onResourceStart",getResourceRootElement(getThisResource()), function() if not TimeTaxi then TimeTaxi = createTeam("Taxistas",20,100,20) end end) function PedirTaxi(thePlayer) if (getElementData(thePlayer,"TaxiClient")) then return end --else if (getPlayerMoney(thePlayer) >= tonumber(PrecoTaxi)) then setElementData(thePlayer,"TaxiClient",true) BlipsTaxi[thePlayer] = createBlipAttachedTo(thePlayer,0,2,0,0,250,210) JogadoresTaxistaTabela(thePlayer) outputChatBox("[Taxi]: Taxi logo chegara, por favor aguarde",thePlayer) end end addCommandHandler("taxi",PedirTaxi) function JogadoresTaxistaTabela(Player) local Jogadores = getElementsByType("player") for _,Jogad in ipairs(Jogadores) do if (getElementData(Jogad,"Taxista")) and (getElementData(Jogad,"TaxistaStat") == vazio) and getPlayerTeam(Jogad) == getTeamFromName("Taxistas") then local NomeTaxiClient = getPlayerName(Player) outputChatBox("Taxi solicitado por: "..NomeTaxiClient,Jogad) end end end function TaxiSystemEntrarNoTaxi(Carro,assento,jacked) if not (getElementModel(Carro) == 420) then return end if not (getElementData(source,"TaxiClient")) then return end if not (assento == 0) then local Taxista = getVehicleController(Carro) if Taxista and getElementData(Taxista,"Taxista") and (getPlayerTeam(Taxista) == getTeamFromName("Taxistas")) then destroyElement(BlipsTaxi[source]) setElementData(Taxista,"TaxistaStat",ocupado) end end end addEventHandler ("onPlayerVehicleEnter",getRootElement(),TaxiSystemEntrarNoTaxi) -- function TaxiSystemSairTaxi(Carro,assento,jacked) if not (getElementModel(Carro) == 420) then return end if not (getElementData(source,"TaxiClient")) then return end if not (assento == 0) then local Taxista = getVehicleController(Carro) if Taxista and getElementData(Taxista,"Taxista") and (getPlayerTeam(Taxista) == getTeamFromName("Taxistas")) then removeElementData(source,"TaxiClient") setElementData(Taxista,"TaxistaStat",vazio) takePlayerMoney(source,tonumber(PrecoTaxi)) givePlayerMoney(Taxista,tonumber(PrecoTaxi)) end end end addEventHandler ("onPlayerVehicleExit",getRootElement(),TaxiSystemSairTaxi) function TaxistaSer(Carro,assento,jacked) if not (getElementModel(Carro) == 420) then return end if (getElementData(source,"Taxista")) then return end --not if (getPlayerTeam(source) == getTeamFromName("Taxistas")) then if (assento == 0) then setElementData(source,"Taxista",true) setElementData(source,"TaxistaStat",vazio) outputChatBox("[Taxi]: Você agora é um taxista, fique atento para não perder cliente",source) end end end addEventHandler ("onPlayerVehicleEnter",getRootElement(),TaxistaSer)
  7. Ahhh cara vlwww, eu logo estranhei, mas nem tentei mudar pra ver se poderia ser kkkk Quase me mordendo e eu não vi. Obrigado!
  8. Pessoal estou com um painel que tem a função destruir. Acontece que quando clico nela, aparece o outputChat dizendo que o veículo foi destruido, mas ele continua lá. Client --- Destruir function destruirCarro (_,state) if painel == true then if ( state == "down" ) then if ( isCursorOnElement(x*357, y*592, x*125, y*57 )) then playSoundFrontEnd(10) triggerServerEvent ("UberDestruir", localPlayer) end end end end addEventHandler ("onClientClick", root, destruirCarro) Server function destruirCarro() destroyElement ( veh[source] ) end addEvent ("UberDestruir", true) addEventHandler ("destruir", getRootElement(), destruirCarro) addEventHandler ("onPlayerLogout", root, destruirCarro) addEventHandler ("onPlayerQuit", root, destruirCarro) addEventHandler ("onPlayerWasted", root, destruirCarro) Alguém sabe o motivo?
  9. CARA MUITO OBRIGADO! Funcionou, vlw demais!!!!
  10. mostrei pra ele hahahaha ele já acertou
  11. Pessoal, seguinte, eu meu amigo @hawkbr estamos tentando criar um sistema de mecânico, mas queríamos automatizar a cobrança do valor enviando uma mensagem para o player e quando ele aceitar por exemplo: /aceitar . O valor cobrado seria debitado do proprietário do veículo. Alguém pode nos ajudar?
  12. Pessoal estou tentando achar algum script de uber/taxi ou implementar algum código que vai funcionar com os players que serão cobrados pela viagem do uber/taxi apenas quando descerem do carro. É possível?
  13. I wanted to create a taxi/uber job that the passenger/player (not NPC) would be charged after getting off the vehicle. How can I do this?
  14. I pasted into client.lua but it did not work, it continues the same thing: /
×
×
  • Create New...