Jump to content

luiz filipe

Members
  • Posts

    7
  • Joined

  • Last visited

Recent Profile Visitors

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

luiz filipe's Achievements

Newbie

Newbie (4/54)

1

Reputation

  1. So guys blz? so i wanted to know how do i put the status of my server and the players q are online on my website you could help me, i have no idea how i can do this
  2. eai galera to fazendo um trabalho de caminhoneiro aqui mais quando chega no final o ultimo marker n quer funcionar alguem me ajuda!! trabalhar = createMarker ( 2119.4497070313,-2508.9829101563,12.546875 , "cylinder", 3, 255,0,0, 255) pos = { {2078.6047363281,-2493.1494140625,12.546875}, {2076.603515625,-2486.392578125,12.546875}, {2072.7844238281,-2504.3322753906,12.546875} } final1 = { {2120.7470703125,-2498.548828125,12.546875} } veh = {} function pegartrabalho (source) if isElementWithinMarker (source, trabalhar ) then if veh[source] and isElement( veh[source] ) then destroyElement(veh[source] ) veh[source] = nil end local x,y,z = getElementPosition(source) veh[source] = createVehicle(456 ,2111.2795410156,-2499.3354492188,13.546875 + 2) warpPedIntoVehicle (source,veh[source]) outputChatBox ('#000000[#FF3030Trabalho #000000]#FF0000Vá até a bandeira para carregar seu caminhão',source,255,255,255,true) local v = pos[math.random(1,#pos)] marker = createMarker(v[1],v[2],v[3],"cylinder",3,28,133,236,200,source) addEventHandler( "onMarkerHit", marker ,levar ) addEventHandler( "onMarkerHit", marker ,destruirElement ) end end addEventHandler( "onMarkerHit", trabalhar ,pegartrabalho ) function destruirElement(source) if isElementWithinMarker (source, marker ) then setElementFrozen(source,true) setTimer(function() setElementFrozen(source,false) destroyElement(marker) end,5000,1) end end function levar (source) if isElementWithinMarker (source, marker ) then local v = final1[math.random(1,#final1)] final = createMarker(v[1],v[2],v[3],"cylinder",3,28,133,236,200,source) addEventHandler( "onMarkerHit", final ,final2 ) end end function final2 (source) if isElementWithinMarker (source, final ) then setElementFrozen(source,true) setTimer(function() destroyElement(final) setElementFrozen(source,false) destroyElement(veh[source]) end,5000,1) end end o marker final não quer sumir nao sei oque eu faço
  3. Eai galera eu estou editando um script de trabalho q achei na net ate agora tava tudo de boa,mais agora quero q o carro suma quando o player sai dele depois de um tempo e se entrar novamente cancele a funçâo trabalhar = createMarker ( 2771.0739746094,-2407.8974609375,12.627556800842 , "cylinder", 3, 255,0,0, 255) trabalho2 = createBlipAttachedTo(trabalhar, 51, 3, 255, 0, 0, 255, 0, 65535) pegarcarga = createMarker(2741.2861328125,-2422.1064453125,12.650645256042 , "cylinder", 3, 255,140,0, 255) pegarcargablip = createBlipAttachedTo(pegarcarga, 53, 3, 255, 0, 0, 255, 0, 65535) setElementVisibleTo ( pegarcargablip, root, false ) setElementVisibleTo ( pegarcarga, root, false ) levarcarga = createMarker(2804.0649414063,969.056640625,9.75 , "cylinder", 3, 255,140,0, 255) levarcargablip = createBlipAttachedTo(levarcarga, 53, 3, 255, 0, 0, 255, 0, 65535) setElementVisibleTo ( levarcargablip, root, false ) setElementVisibleTo ( levarcarga, root, false ) veh = {} function pegartrabalho (source) if isElementWithinMarker (source, trabalhar ) then if veh[source] and isElement( veh[source] ) then destroyElement(veh[source] ) veh[source] = nil end local x,y,z = getElementPosition(source) veh[source] = createVehicle(456 ,2765.3432617188,-2401.1748046875,13.6328125 + 2) ------ Id e local onde o veiculo que você usa pro trabalho cai 431 o id o resto é o local warpPedIntoVehicle (source,veh[source]) setElementVisibleTo ( pegarcarga, source, true ) setElementVisibleTo ( pegarcargablip, source, true ) outputChatBox ('#000000[#FF3030Trabalho #000000]#FF0000Vá até a bandeira para carregar seu caminhão',source,255,255,255,true) end end addEventHandler( "onMarkerHit", trabalhar ,pegartrabalho ) function pegarcargam (source) if veh[source] and isElement(veh[source]) then outputChatBox ('#000000[#FF3030Trabalho #000000]#FF0000Espere até que o caminhão esteja carregado',source,255,255,255,true) setElementFrozen( veh[source], true ) setTimer(function() setElementFrozen( veh[source], false ) outputChatBox ('#000000[#FF3030Trabalho #000000]#FF0000Vá até a bandeira para descarregar seu caminhão',source,255,255,255,true) setElementVisibleTo ( pegarcargablip, source, false ) setElementVisibleTo ( pegarcarga, source, false ) setElementVisibleTo ( levarcargablip, source, true ) setElementVisibleTo ( levarcarga, source, true ) end, 6000, 1) end end addEventHandler( "onMarkerHit", pegarcarga, pegarcargam ) function Entregarcarga (source) if veh[source] and isElement(veh[source]) then outputChatBox ('#000000[#FF3030Trabalho #000000]#FF0000Espere até que o caminhão seja descacarregado',source,255,255,255,true) setElementFrozen( veh[source], true ) setTimer(function() setElementFrozen( veh[source], false ) outputChatBox ('#000000[#FF3030Trabalho #000000]#FF0000Parabéns Vc Concluiu o Trabalho e ganhou #FF00FF5000R$',source,255,255,255,true) setElementVisibleTo ( levarcargablip, source, false ) setElementVisibleTo ( levarcarga, source, false ) givePlayerMoney (source, 6000) destroyElement (veh[source]) end, 6000, 1) end end addEventHandler( "onMarkerHit", levarcarga, Entregarcarga ) function sair (source) if (veh[source]) and isElement(veh[source]) then Trabalho = false outputChatBox ('#000000[#FF3030Trabalho #000000]#FF0000Volte Para O Carro em menos de 10 segundos ou vai perder o emprego',source,255,255,255,true) setTimer(function() setElementVisibleTo ( pegarcargablip, source, false ) setElementVisibleTo ( pegarcarga, source, false ) setElementVisibleTo ( levarcargablip, source, false ) setElementVisibleTo ( levarcarga, source, false ) destroyElement(veh[source] ) end, 10000, 1) end end addEventHandler ("onVehicleExit", root, sair) o meu problema é o carro nao sumir quando o player entrar nele novamente
  4. Eu quero um script que somente quem ta na acl especificada fique imortal
  5. galera ja consegui aqui não precisa mais local chat_range = 100 function isPlayerInRangeOfPoint(player,x,y,z,range) local px,py,pz=getElementPosition(player) return ((x-px)^2+(y-py)^2+(z-pz)^2)^0.5<=range end addEventHandler ("onPlayerChat", root, function (msg, type) if type == 0 then cancelEvent () end end ) local chat_range = 100 function isPlayerInRangeOfPoint(player,x,y,z,range) local px,py,pz=getElementPosition(player) return ((x-px)^2+(y-py)^2+(z-pz)^2)^0.5<=range end addEventHandler ("onPlayerChat", root, function (msg, type) if type == 0 then cancelEvent () end end )
  6. Entao estou usando um chat rp que tem foradorp, anonimo e twitter mais o chat principal do t ainda ta funcionando queria saber como faço para bloquear o chat do t deixar apenas para fazer comando alguem por favor me ajuda ? So I'm using a rp chat that has foradorp, anonymous and twitter plus the main t chat is still working I wanted to know how do I block the chat from leaving t just to do command Someone please help me?
×
×
  • Create New...