Jump to content

[L]ost

Members
  • Posts

    16
  • Joined

  • Last visited

Details

  • Gang
    C.R.L
  • Location
    Brazil
  • Occupation
    Dono do Server: Crazy Real Life

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

[L]ost's Achievements

Square

Square (6/54)

0

Reputation

  1. Obrigado mano, @Shinigami me ajudou muito me dando uma forcinha e me deu algumas dicas que me levaram a entender um pouco de script e oque ele ta dizend. o sistema ficou perfeito
  2. dei start, stop, reiniciei o resource, entrei e sai do carro e não apareceu nenhum erro relacionado ao resource taxi
  3. realizei o comando conforme citado apareceu alguns erros porem nada relacionado a esse mod, e sim a outros dois que tenho (gasolina e hud) mais em realaçao ao mod do taxi nadinha, quer dizer que esta tudo certo ?
  4. perdoa a minha leiguice no assunto mais o debugscript é no painel do console ne ? se for la eu nao consegui realizar esse comando. caso for no console que vejo isso nenhum erro apareceu não, carregou normalmente
  5. -- 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)) setPlayerTeam(source, nil) 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 setPlayerTeam(source, getTeamFromName("Taxistas")) if (getPlayerTeam(source) == getTeamFromName("Taxistas")) then if (assento == 0) then setElementData(source,"Taxista",true) setElementData(source,"TaxistaStat",vazio) outputChatBox("[Taxi]: Vocꡡgora 页m taxista, fique atento para n䯠perder cliente",source) end end end addEventHandler ("onPlayerVehicleEnter",getRootElement(),TaxistaSer) eu tentei desse jeito, mais não funcionou nem colocou e nem me tirou da team ( coloquei meu player la manualmente e ao entrar no taxi nao aparece mais a menssagem que aparecia antes: voce agora é um taxista) oque eu fiz de errado? Imagem do Jogo
  6. @DNL291 pelo que eu vi na linha 55 lá é a função "sair" do cliente, quando ele sai do carro é descontado automaticamente um valor entendeu ? essa não é a função do motorista não. Meu progresso - Consegui criar a Marker para teleportar pra dentro do taxi - ao sair do carro ele some e fala que abandonei o trabalho Oque Preciso - Ao entrar no taxi (ou na marker) ele ser movido pra team "Taxistas" (que ja esta criada, pois o trabalho sóo funciona se voce tiver nessa team) - Ao sair do taxi ele ser removido da team "Taxistas"
  7. function unassignTeam ( source, commandName ) local theTeam = getPlayerTeam ( source ) -- Check if the player is on a team if theTeam then -- this player is on a team, so we can remove them from it setPlayerTeam ( source, nil ) -- remove the player from the current team end end encontrei essa função no wiki, porem lá ele é feito por um comando, posso incluir essa função aqui no meu script ? porem ao inves do comando, ao sair do carro ele saia do grupo tambem Opa meu amigo @Shinigami o script já cria automaticamente a team quando ele é carregado no servidor, oque preciso agora é só saber como por o jogador nessa team automaticamente quando ele entrar na markerhit (que ja teleporta ele pro veiculo) e ao sair do veiculo ele saisse da team
  8. ATUALIZANDO Com a minha curiosidade eu fui mechendo e consegui fazer o mesmo esquema do trabalho "entregador de rosquinha" agora só vou ver como faço pra quando o player entrar no veiculo ele ficar na "team" taxista, quando sair ele perde
  9. Estou precisando de alguem que tenha a bondade de me ensinar um pouco sobre uma função que quero realizar, tenho um script aqui no qual ele cria uma tag chamada TAXISTAS e quando o player é adicionado nesse grupo, ao entrar no taxi ele vira taxista, onde o player que precisar do serviço vai digitar /taxi pra pedir um. porem o script ta muito manual, eu queria APRENDER a como fazer um sistema parecido com um que tenho rodando no meu servidor ( entregador de rosquinha ) nesse trabalho de entregador o palyer ao entrar no circulo vermlhho é teleportado pra dentro de um caminhao pra fazer a entrega em determinado ponto, caso o player saia do caminhão, o veiculo some automaticamente e ele perde o trabalho tendo que voltar la novamente. Resumindo: Oque eu queria era aprender como faz esse teleporte pra dentro de um veiculo (no caso o taxi) e ao teleportar ele já entrar automaticamente na "TEAM" Taxista na qual o script gera. e ao sair do taxi o veiculo some e caso queria trabalhar de taxista tera que voltar la no local pra pegar um novo taxi -- by manawydan taxi_system lado = server local PrecoTaxi = "1000" 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) esse codigo aqui é o do entregador dee rosquinha que ja tenho no servidor rodando 100% Minicio4 = createMarker (1038.02332, -1337.93970, 13.72656 -1, "cylinder", 2, 255 ,0 ,0, 255) blip1 = createBlip(1032.4301757813,-1337.6319580078,13.7265625,42,4,0,0,0,0,0,200) Mfim4 = createMarker ( 2818.73046875, -1088.7072753906, 30.735580444336 -1, "cylinder", 2, 0 ,255 ,0, 255) Bfim4 = createBlipAttachedTo ( Mfim4, 19 ) setElementVisibleTo ( Bfim4, root, false ) veh = {} function incio4 (source) if isElementWithinMarker(source, Minicio4) then if veh[source] and isElement( veh[source] ) then destroyElement ( veh[source] ) veh[source] = nil end x,y,z = getElementPosition(source) Trabalho = true veh[source] = createVehicle(498,1009.50598, -1355.16431, 13.34428) setElementVisibleTo ( Bfim4, source, true ) warpPedIntoVehicle ( source, veh[source] ) outputChatBox ("#D3D3D3[Trabalho] #00FF7FVocê agora é um entregador de rosquinhas",source,0,0,0,true ) outputChatBox ("#D3D3D3[Trabalho] #00FF7FLeve o carregamento de rosquinhas até a bandeira vermelha no mapa",source,0,0,0,true ) outputChatBox ("#D3D3D3[Trabalho] #00FF7FVa até la com o veiculo caso saia dele perdera o trabalho",source,0,0,0,true ) end end addEventHandler( "onMarkerHit", Minicio4, incio4 ) function fim4 (source) if veh[source] and isElement(veh[source]) then destroyElement (veh[source]) givePlayerMoney(source,10000) -------------- Caso queira mudar o dinheiro que o player vai ganhar ao finalizar o trabalho setElementVisibleTo ( Bfim4, source, false ) outputChatBox("#D3D3D3[Trabalho] #00BFFFBom trabalho você entregou as rosquinhas e ganhou: #00FF0010000 $$",source,0,0,0,true) outputChatBox("#D3D3D3Trabalho de entregador By : #F0FFFF[L]ost",source,0,0,0,true) else end end addEventHandler("onMarkerHit",Mfim4 ,fim4) function sair4 (source) if (veh[source]) and isElement(veh[source]) then setElementVisibleTo ( Bfim4, source, false ) destroyElement (veh[source]) outputChatBox("#FF4040[Desistiu] Você saiu do veiculo e perdeu o trabalho ", source ,0,0,0,true) else end end addEventHandler ( "onVehicleExit", getRootElement(), sair4 )
  10. estou com alguns erros no meu servidor,, após upar meu server pro host apareceu alguns erros como o de converter pra UTF-8 ( que a proposito ja sei converter ) e apareceu um erro pedindo pra re-compilar alguns mods, me ajudem por favor pois não conseguir realizar isso LOG DO SERVIDOR
  11. desculpe ter criado diversos posts, a respeito desse script eu não consegui, porem procurando pela internet eu achei aqui no fórum um bem legal e que já vai me ajudar bastante, é o system business, já traduzi ele 100% e quando o player comprar a vip eu libero um spawn onde a cada 3 horas ele vai receber uma quantia determinada.
  12. pronto pessoal, consegui retirar e ta rodando tranquilo, o mais chato era aquele menu do f1, pode fechar o topico
  13. Ola, estou criando um servidor RPG, porem eu queria desabilitar pra sempre aquela função do f1 que consegue pegar as coisas
  14. A muito tempo atras joguei um servidor SAMP onde ao comprar vip, o player tinha diversas vantagens e uma delas era um salario. o Jogador ganhava 3k a cada 1 hora online. existe um script parecido pro mta ?
×
×
  • Create New...