Jump to content

Dadinho

Members
  • Posts

    8
  • Joined

  • Last visited

Recent Profile Visitors

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

Dadinho's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. fiz um painel de gang mas quando vc desloga e deixa o carro spawnado ele nao some como faço para quando a pessoa deslogar o carro sumir automaticamente? veh = {} function criarxx() if veh[source] and isElement( veh[source] ) then destroyElement( veh[source] ) veh[source] = nil end local x,y,z = getElementPosition(source) veh[source] = createVehicle(467, x,y,z + 2) warpPedIntoVehicle (source,veh[source]) end addEvent("carrop",true) addEventHandler("carrop",root,criarxx) --------------------------------------------------------------------------------------- function criarxx2() if veh[source] and isElement( veh[source] ) then destroyElement( veh[source] ) veh[source] = nil end local x,y,z = getElementPosition(source) veh[source] = createVehicle(502, x,y,z + 2) warpPedIntoVehicle (source,veh[source]) end addEvent("carrop2",true) addEventHandler("carrop2",root,criarxx2) No caso seria esse parte do código do painel
  2. Estou tentando por esse script por acl mas nn consigo! Alguém pra me ajdar? procurei em diversos foruns pegar = createMarker(2747.1008300781, -1461.0627441406, 1.96875, "cylinder", 1.5,255,255,255,50) function pegarFarda(player) if isElementWithinMarker(player, pegar) then if (getPlayerSkin(player) == 14) then outputChatBox("#0077FF[TDJ] #ffffffVocê ja está com a farda.", player, 255,255,255, true) else setPlayerSkin(player,14) outputChatBox("#0077FF[TDJ] #ffffffVocê vestiu a roupa!!.", player, 255,255,255, true) end end end addCommandHandler("skin", pegarFarda) function tirarFarda(player) if isElementWithinMarker(player, pegar) then setPlayerSkin(player,0) outputChatBox("#0077FF[TDJ] #ffffffVocê tirou sua Farda.", player, 255,255,255, true) end end addCommandHandler("tskin", tirarFarda) function pegarArmas(player) if isElementWithinMarker(player, pegar) then giveWeapon ( player, 24, 5000, true ) --Pistola giveWeapon ( player, 30, 5000, true ) --M4 giveWeapon ( player, 25, 5000, true ) --Shotgun giveWeapon ( player, 28, 5000, true ) --MP5 giveWeapon ( player, 1, 5000, true ) --Cacetete outputChatBox("#0077FF[TDJ] #ffffffVocê se equipou com as armas.", player, 255,255,255, true) end end addCommandHandler("armas", pegarArmas) addEventHandler("onMarkerHit", pegar, function(player) if getElementType(player) == "player" then outputChatBox("#0077FF=========================================================", player, 255,255,255, true) outputChatBox("#0077FF[TDJ] #ffffffOlá, seja bem vindo a TDJ, pegue aqui suas armas e roupas.", player, 255,255,255, true) outputChatBox("#0077FF[TDJ] #ffffffFarda: #727272/skin", player, 255,255,255, true) outputChatBox("#0077FF[TDJ] #ffffffTirar roupa: #727272/tskin", player, 255,255,255, true) outputChatBox("#0077FF[TDJ] #ffffffArmas: #727272/armas", player, 255,255,255, true) outputChatBox("#0077FF=========================================================", player, 255,255,255, true) end end)
  3. Olá pessoal ja to a um tempo com esse script mas vim a mecher nele hj e eu queria aumentar o tempo para resetar o banco porém ali na lina setTimer resetbank tem um codigo q eu nn consigo entender sempre vi por milisegundos nunca desse jeito! alguém poderia me dizer como entender o tempo citado ali? setPedAnimation(thePlayer, "bomber", "BOM_Plant_Loop", -1, true, false, false) toggleAllControls(thePlayer, false) setTimer(function() setPedAnimation(thePlayer) local x, y, z = getElementPosition(thePlayer) element["bombe"] = createObject(1252, x, y+0.5, z-0.5) setElementInterior(element["bombe"], 1) setElementDimension(element["bombe"], dim) toggleAllControls(thePlayer, true) setTimer(detonateBomb, 5*60*1000, 1, thePlayer) --[[5*60*1000]] setTimer(resetBank, 90*60*1000, 1) -- 1.5 stunden: 90*60*1000 end, 10000, 1) else outputChatBox("Acada 1/1 hora o Banco estára aberto para novos assaltos", thePlayer, 200, 0, 0) end end)
  4. Olá, gente eu criei um server rp e ele ta indo até bem pra um começo de server mas eu nn to tendo tantas condições de gastar mais com ele (Ja gastei mt) então decidi aprender a criar scripts!! Mas não encontro nenhum tutorial ensinando a criar um script de animação que precisa de um outro player para funcionar e a galera que loga lá no meu server ta pedindo mt um mod de beijo mas eu só consigo fazer o player fazer uma animação e não interagir com outro player seja por id ou por nome parcial será que alguém poderia me dar algumas dicas de como iniciar na area de script ou até mesmo como fazer um mod igual ou parecido com o que eu falei acima?????
  5. Olá eu estou criando um servidor de mta local para depois passar para uma host mas estou tendo um problema Toda vez que inicio meu server eu entro nele e nn aparece a mira e nem o mapa e eu tenho que dar restart no modo play em resources para eles aparecerem porem, quando dou restart no modo play eu perco minhas armas e meu dinheiro todo Como faço para resolver isso?
×
×
  • Create New...