Jump to content

+[T]rakin

Members
  • Posts

    137
  • Joined

  • Last visited

Everything posted by +[T]rakin

  1. Da parte de criar o veiculo em cima do caminhao ja freezado createVehicle
  2. Eu tentei, mas não consegui. Esqueci de fala isso
  3. Olá to querendo fazer um trabalho de reboque que eu com meu caminhão tenho que leva o veiculo que vai está em cima dele, mas da parte de criar o veiculo em cima ta complicado. Poderiam me ajuda?.. Print do caminhao: http://prntscr.com/lh5e1d client-side PMarker = createMarker ( 1203.865234375, -1285.80859375, 13.38519859314 -1, "cylinder", 2, 255, 0, 0, 255) ---Vermelho FMarker = createMarker ( 1200.0888671875, -1352.7841796875, 13.402050018311 -1, "cylinder", 2, 0, 255, 0, 255) ---Verde FBlip = createBlip(1203.865234375, -1285.80859375, 13.38519859314,42) ---T setBlipVisibleDistance(FBlip, 200) -- 150 é a distancia perfeita --setElementVisibleTo( FBlip, root, true) --Mostra o blip para apenas o jogador que esta do trabalho veh = {} function inicio (source) --- Função do primeiro marker if isElementWithinMarker(source, PMarker) then local accName = getAccountName (getPlayerAccount(source)) if isObjectInACLGroup ("user."..accName, aclGetGroup ("Moderator")) then if veh[source] and isElement( veh[source] ) then destroyElement ( veh[source] ) veh[source] = nil end x,y,z = getElementPosition(source) Trabalho = true FBlip = createBlipAttachedTo(FMarker,19) ---Bandeira veh[source] = createVehicle(578, 1188.9052734375, -1278.16015625, 13.288257598877, 0, 0, 90.505493164063) setElementVisibleTo( FBlip, source, true) ---Mostrar o blipt quando começa o trabalho warpPedIntoVehicle (source, veh[source]) ---- Transporta o jogador para dentor do carro outputChatBox ("#FFFFFF[Emprego]Bem Vindo ao emprego [Reboque]", source,0,0,0,true) triggerClientEvent ( source, "texto", root) else outputChatBox ("#00ccff[#ff0000AVISO#00ccff]#ff0000Você não pode fazer seus corres aqui!", source,0,0,0,true) end end end addEventHandler( "onMarkerHit", PMarker, inicio)
  4. Esse script de rouba loja eu baixei e eu queria adicionar essa função do blip do jogador
  5. Sim mas não sei se fiz certo Fiz assim da linha 73 do server coloquei assim local blilp = createBlipAttachedTo(source,19), mas agora da parte de fazer sumi o blip eu não qual linha e como fazer.
  6. Sim mas quero que quando o jogador roubar adicionar um blip dele ai eu não consegui fazer isso e vim aqui para alguem pode me ajuda
  7. Tambem acabei me esquecendo disso
  8. Queria adicionar um blip do jogador que roubo a loja mas so quem tiver das acl de corporação ia ver o blip e depois de um tempo o blip ia sumi. Sei que pode se facil isso mas eu tentei a parte de aparece o blip funciono so da hora que para sumi que nao Server-side lojaentrar1 = createMarker(1631.87,-1172.93030,25.08428,"arrow",1.6, 255,140,0, 255,getRootElement()) -- marker entrar blip_loterica = createBlipAttachedTo ( lojaentrar1, 17 ) lojasair1 = createMarker(834.664418,7.3,1005.18701,"arrow",1.6, 255,140,0, 255,getRootElement()) -- marker sair setElementInterior(lojasair1,3) setElementDimension(lojasair1,2) blipalarme = createBlipAttachedTo ( lojaentrar1, 20 ) setElementVisibleTo ( blipalarme, root, false ) corps = { "ROTA","BOPE","BAEP","PMESP","PMERJ","ROCAM"} function entrar1(source) setElementPosition(source,832.664418,7.3,1005.18701) setElementInterior(source,3) setElementDimension(source,2) end addEventHandler("onMarkerHit",lojaentrar1, entrar1) function sair1(source) setElementPosition(source,1631.87244,-1171.66321,24.07813) setElementInterior(source,0) setElementDimension(source,0) end addEventHandler("onMarkerHit",lojasair1,sair1) ----------------------------------------------------------[LOJA 1]---------------------------------------------------------- ped = createPed ( 194, 819.40869, -0.45965, 1004.17969 ) setElementInterior (ped, 3) setElementDimension (ped, 2) setPedRotation (ped, 270) roubarloja = createMarker ( 822.74316, -0.47490, 1003.2 , "cylinder", 1.3, 255,140,0, 255, getRootElement( ) ) setElementInterior ( roubarloja, 3) setElementDimension ( roubarloja, 2) function msgloja1 (source) outputChatBox ('#000000[#0089FF Loja #000000] -#FF8C00 Para Roubar a Loja 1 digite #000000[#FFFFFF /roubar #000000]',source,255,255,255,true) end addEventHandler( "onMarkerHit", roubarloja, msgloja1 ) ---------caixa1 function comandoloja (source) if isElementWithinMarker (source, roubarloja ) then if getElementData(source,"isPolice") then outputChatBox ('#000000[#0089FF Loja #000000] -#FF8C00 Você é da policia e não pode roubar',source,255,255,255,true) return end for _,players in pairs(getElementsByType("player")) do for i, k in pairs(corps) do local ContaACL = getAccountName ( getPlayerAccount ( players ) ) if isObjectInACLGroup ("user."..ContaACL, aclGetGroup (k)) then outputChatBox("#000000[#0089FF Loja #000000] -#FF8C00 Atenção policiais o meliante [#FF0000 " .. getPlayerName(source) .. " #FF8C00]#FF8C00 está roubando a Loja 1",players,255,255,255,true) end end end setElementPosition ( lojasair1, 834.66760, 7.45359, 1010) setElementPosition ( roubarloja, 822.74316, -0.47490, 1010) outputChatBox ('#000000[#0089FF Loja #000000] -#FF8C00 Aguarde Enquanto Voce Pega O Dinheiro',source,255,255,255,true) setPedAnimation(source, "SHOP", "ROB_Loop_Threat", 40000, true, false, false, false) setPedRotation(source,90 ) setPedAnimation( ped, "SHOP", "SHP_Rob_HandsUp") triggerClientEvent ( root, "roubar", root) setElementVisibleTo ( blipalarme, root, true ) setTimer ( function() setElementPosition ( lojasair1, 834.664418,7.3,1005.18701) setElementInterior ( roubarloja, 3) setPedAnimation(ped,false) setElementPosition ( ped, 819.40869, -0.45965, 1004.17969) givePlayerMoney ( source, 500 ) setPlayerWantedLevel ( players, 6 ) outputChatBox ('#000000[#0089FF Loja #000000] -#FF8C00 Voce Roubou a Loja 1 e Pegou #000000[#ffffff R$500,00 #000000]',source,255,255,255,true) end, 40000, 1 ) setTimer ( function() setElementVisibleTo ( blipalarme, root, false ) setElementPosition( roubarloja, 822.74316, -0.47490, 1003.2) outputChatBox("#000000[#0089FF Loja #000000] -#FF8C00 Loja 1 foi recuperada e esta pronta para novos assaltos",root,255,255,255,true) end, 80000, 1 ) end end addCommandHandler ( "roubar", comandoloja ) Client-side addEventHandler("onClientRender", root, function() if (getDistanceBetweenPoints3D(1631.87,-1172.93030,25.08428, getElementPosition(getLocalPlayer()))) < 35 then local coords = {getScreenFromWorldPosition(1631.87,-1172.93030,25.08428)} if coords[1] and coords[2] then dxDrawText("Loja 1", coords[1], coords[2], coords[1], coords[2], tocolor(255, 255, 0, 255), 2.00, "default-bold", "center", "center", false, false, false, false, false) end end end) function alarmetocardentro () alarmedentro1 = playSound3D("alarme.mp3", 827.26056, 3.32271, 1004.17969, true) setSoundVolume(alarmedentro1,1.3) setElementDimension ( alarmedentro1, 2) setSoundMaxDistance(alarmedentro1, 200) setTimer ( function() stopSound (alarmedentro1) end, 70000, 1 ) end addEvent("roubar", true) addEventHandler("roubar", getRootElement(), alarmetocardentro) function alarmetocarfora () alarmefora1 = playSound3D("alarme.mp3", 1631.93286, -1169.41443, 24.07813, true) setSoundVolume(alarmefora1,1.3) setSoundMaxDistance(alarmefora1, 200) setTimer ( function() stopSound (alarmefora1) end, 70000, 1 ) end addEvent("roubar", true) addEventHandler("roubar", getRootElement(), alarmetocarfora) "So uma pergunta pode esta fazendo um topico com dois pedidos de ajuda? O tem que criar outro?"
  9. Sobre a falta das permissoes disso eu ja vi. Vou tenta da mas uma olhada do script direito
  10. A parte q voce passou nao esta exibindo a column dos "Jogadores" Bom então esse erro n tem como resolver? Por causa que o script é dx e gui
  11. ----------Painel de Tags feito by:+Trakin------------- function Tags() dxDrawRectangle(363, 126, 640, 487, tocolor(36, 36, 36, 232), false) ---Painel dxDrawRectangle(363, 100, 640, 26, tocolor(73, 195, 20, 191), false) ---LogoCima dxDrawText("Painel de Tags", 362, 98, 1003, 127, tocolor(0, 0, 0, 255), 1.90, "font/Bebas.otf", "center", "center", false, false, false, false, false) ---LogoCimaTexto dxDrawRectangle(363, 613, 640, 26, tocolor(73, 195, 20, 191), false) ---LogoBaixo dxDrawText("Todos direitos reservados 2018 @Copyrignt - Feito by:+Trakin", 363, 612, 1004, 637, tocolor(0, 0, 0, 255), 1.30, "default", "center", "center", false, false, false, false, false) ---LogoBaixoTexto dxDrawRectangle(767, 126, 26, 487, tocolor(73, 195, 20, 191), false) --FaixaMeio dxDrawRectangle(368, 132, 153, 23, tocolor(73, 195, 20, 191), false) --AddBope1 dxDrawText("BOPE", 366, 132, 521, 155, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(527, 132, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveBope1 dxDrawText("X", 526, 131, 559, 155, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(571, 132, 153, 23, tocolor(73, 195, 20, 191), false) --AddPMESP2 dxDrawText("PMESP", 569, 132, 724, 155, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(728, 132, 32, 23, tocolor(73, 195, 20, 191), false) --RemovePMESP2 dxDrawText("X", 727, 132, 760, 156, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(368, 165, 153, 23, tocolor(73, 195, 20, 191), false) --addEB3 dxDrawText("EB", 366, 165, 521, 188, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(527, 165, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveEB3 dxDrawText("X", 526, 165, 559, 188, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(571, 165, 153, 23, tocolor(73, 195, 20, 191), false) --addPMERJ4 dxDrawText("PMERJ", 569, 165, 724, 188, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(728, 165, 32, 23, tocolor(73, 195, 20, 191), false) --RemovePMERJ4 dxDrawText("X", 727, 165, 760, 188, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(368, 198, 153, 23, tocolor(73, 195, 20, 191), false) --addROCAM5 dxDrawText("ROCAM", 366, 198, 521, 221, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(527, 198, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveROCAM5 dxDrawText("X", 526, 198, 559, 221, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(571, 198, 153, 23, tocolor(73, 195, 20, 191), false) --addFT6 dxDrawText("FT", 569, 198, 724, 221, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(728, 198, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveFT6 dxDrawText("X", 727, 198, 760, 221, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(368, 231, 153, 23, tocolor(73, 195, 20, 191), false) --addCHOQUE7 dxDrawText("CHOQUE", 366, 231, 521, 254, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(527, 231, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveCHOQUE7 dxDrawText("X", 526, 231, 559, 254, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(571, 231, 153, 23, tocolor(73, 195, 20, 191), false) --addPCC8 dxDrawText("PCC", 569, 231, 724, 254, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(728, 231, 32, 23, tocolor(73, 195, 20, 191), false) --RemovePCC8 dxDrawText("X", 727, 231, 760, 254, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(368, 264, 153, 23, tocolor(73, 195, 20, 191), false) --addCV9 dxDrawText("CV", 366, 264, 521, 287, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(527, 264, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveCV9 dxDrawText("X", 526, 264, 559, 287, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(571, 264, 153, 23, tocolor(73, 195, 20, 191), false) --addMTARINDO10 dxDrawText("MATARINDO", 569, 264, 724, 287, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(728, 264, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveMATARINDO10 dxDrawText("X", 727, 264, 760, 287, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(368, 297, 153, 23, tocolor(73, 195, 20, 191), false) --addPF11 dxDrawText("PF", 366, 297, 521, 320, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(527, 297, 32, 23, tocolor(73, 195, 20, 191), false) --RemovePF11 dxDrawText("X", 526, 297, 559, 320, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(571, 297, 153, 23, tocolor(73, 195, 20, 191), false) --addCOE12 dxDrawText("COE", 569, 297, 724, 320, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(728, 297, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveCOE12 dxDrawText("X", 727, 297, 760, 320, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(368, 330, 153, 23, tocolor(73, 195, 20, 191), false) --addADA13 dxDrawText("ADA", 366, 330, 521, 353, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(527, 330, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveADA13 dxDrawText("X", 526, 330, 559, 353, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(571, 330, 153, 23, tocolor(73, 195, 20, 191), false) --addROTA14 dxDrawText("ROTA", 569, 330, 724, 353, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(728, 330, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveROTA14 dxDrawText("X", 727, 330, 760, 353, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(368, 363, 153, 23, tocolor(73, 195, 20, 191), false) --addROTAM15 dxDrawText("ROTAM", 366, 363, 521, 386, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(527, 363, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveROTAM15 dxDrawText("X", 526, 363, 559, 386, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(571, 363, 153, 23, tocolor(73, 195, 20, 191), false) --addCOISAC16 dxDrawText("COISAC", 569, 363, 724, 386, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(728, 363, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveCOISAC16 dxDrawText("X", 727, 363, 760, 386, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(368, 396, 153, 23, tocolor(73, 195, 20, 191), false) --addQR717 dxDrawText("QR7", 366, 396, 521, 419, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(527, 396, 32, 23, tocolor(73, 195, 20, 191), false) --RemoveQR717 dxDrawText("X", 526, 396, 559, 419, tocolor(253, 0, 0, 255), 1.80, "default", "center", "center", false, false, false, false, false) end function abrir (_,state) if painel == false then showCursor(true) addEventHandler("onClientRender", root, Tags) painel = true else showCursor(false) removeEventHandler("onClientRender", root, Tags) painel = false end end addEvent("paineltags", true) addEventHandler("paineltags", root , abrir) ----------------------------------------[Lista de Jogadores]--------------------------------------------- PainelLista = guiCreateWindow(793, 142, 205, 470, "Jogadores online", false) guiWindowSetSizable(PainelLista, false) guiSetVisible(PainelLista, false) Lista = guiCreateGridList(793, 126, 210, 487, false) columm = guiGridListAddColumn(Lista, "Jogadores", 0.9) function guiackapaTG() if ( guiGetVisible (Lista) == true ) then guiSetVisible(Lista, false ) showCursor(false) else guiSetVisible(Lista, true) showCursor(true) ColocarJugadores3 () end end addEvent("paineltags", true) addEventHandler("paineltags", root, guiackapaTG) ------------------------------------------------------------------------ function ColocarJugadores3 () guiGridListClear(Lista)-- Apaga a grid for i, thePlayer in ipairs ( getElementsByType ( "player" ) ) do-- Obtem todos os jogadores local row = guiGridListAddRow( Lista )-- Agregar row guiGridListSetItemText ( Lista, row, 1, getPlayerName( thePlayer ), false, false ) end end --function BuscList() -- guiGridListClear( Lista ) -- local Nommbre = guiGetText( Box ) --for i, thePlayer in ipairs ( getElementsByType ( "player" ) ) do -- if ( thePlayer ~= localPlayer ) then--Para que no se pueda buscar a uno mismo -- if ( string.find( getPlayerName( thePlayer ):lower(), Nommbre:lower() ) ) then--Para buscar el jugador con ese nombre -- local row = guiGridListAddRow ( Lista )--agregar row -- guiGridListSetItemText ( Lista, row, 1, getPlayerName ( thePlayer ), false, false )--agregar un row con ese nombre -- end --end -- end --end --addEventHandler ("onClientGUIClick", Box, BuscList ,false) ---Tags Console function Console (_,state) local jogadorselecionado = guiGridListGetItemText(Lista, guiGridListGetSelectedItem(Lista), 1) if painel == true then if ( state == "down" ) then if ( isCursorOnElement (368, 132, 153, 23) ) then triggerServerEvent ("addtag1", localPlayer, getPlayerFromName(jogadorselecionado)) --AddBOPE elseif ( isCursorOnElement (527, 132, 32, 23) ) then triggerServerEvent ("remvtag1", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveBOPE elseif ( isCursorOnElement (571, 132, 153, 23) ) then triggerServerEvent ("addtag2", localPlayer, getPlayerFromName(jogadorselecionado)) --AddPMESP elseif ( isCursorOnElement (728, 132, 32, 23) ) then triggerServerEvent ("remvtag2", localPlayer, getPlayerFromName(jogadorselecionado)) --RemovePMESP elseif ( isCursorOnElement (368, 165, 153, 23) ) then triggerServerEvent ("addtag3", localPlayer, getPlayerFromName(jogadorselecionado)) --AddEB elseif ( isCursorOnElement (527, 165, 32, 23) ) then triggerServerEvent ("remvtag3", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveEB elseif ( isCursorOnElement (571, 165, 153, 23) ) then triggerServerEvent ("addtag4", localPlayer, getPlayerFromName(jogadorselecionado)) --AddPMERJ elseif ( isCursorOnElement (728, 165, 32, 23) ) then triggerServerEvent ("remvtag4", localPlayer, getPlayerFromName(jogadorselecionado)) --RemovePMERJ elseif ( isCursorOnElement (368, 198, 153, 23) ) then triggerServerEvent ("addtag5", localPlayer, getPlayerFromName(jogadorselecionado)) --AddROCAM elseif ( isCursorOnElement (527, 198, 32, 23) ) then triggerServerEvent ("remvtag5", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveROCAM elseif ( isCursorOnElement (571, 198, 153, 23) ) then triggerServerEvent ("addtag6", localPlayer, getPlayerFromName(jogadorselecionado)) --AddFT elseif ( isCursorOnElement (728, 198, 32, 23) ) then triggerServerEvent ("remvtag6", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveFT elseif ( isCursorOnElement (368, 231, 153, 23) ) then triggerServerEvent ("addtag7", localPlayer, getPlayerFromName(jogadorselecionado)) --AddCHOQUE elseif ( isCursorOnElement (527, 231, 32, 23) ) then triggerServerEvent ("remvtag7", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveCHOQUE elseif ( isCursorOnElement (571, 231, 153, 23) ) then triggerServerEvent ("addtag8", localPlayer, getPlayerFromName(jogadorselecionado)) --AddPCC elseif ( isCursorOnElement (728, 231, 32, 23) ) then triggerServerEvent ("remvtag8", localPlayer, getPlayerFromName(jogadorselecionado)) --RemovePCC elseif ( isCursorOnElement (368, 264, 153, 23) ) then triggerServerEvent ("addtag9", localPlayer, getPlayerFromName(jogadorselecionado)) --AddCV elseif ( isCursorOnElement (527, 264, 32, 23) ) then triggerServerEvent ("remvtag9", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveCV elseif ( isCursorOnElement (571, 264, 153, 23) ) then triggerServerEvent ("addtag10", localPlayer, getPlayerFromName(jogadorselecionado)) --AddMATARINDO elseif ( isCursorOnElement (728, 264, 32, 23) ) then triggerServerEvent ("remvtag10", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveMATARINDO elseif ( isCursorOnElement (368, 297, 153, 23) ) then triggerServerEvent ("addtag11", localPlayer, getPlayerFromName(jogadorselecionado)) --AddPF elseif ( isCursorOnElement (527, 297, 32, 23) ) then triggerServerEvent ("remvtag11", localPlayer, getPlayerFromName(jogadorselecionado)) --RemovePF elseif ( isCursorOnElement (571, 297, 153, 23) ) then triggerServerEvent ("addtag12", localPlayer, getPlayerFromName(jogadorselecionado)) --AddCOE elseif ( isCursorOnElement (728, 297, 32, 23) ) then triggerServerEvent ("remvtag12", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveCOE elseif ( isCursorOnElement (368, 330, 153, 23) ) then triggerServerEvent ("addtag13", localPlayer, getPlayerFromName(jogadorselecionado)) --AddADA elseif ( isCursorOnElement (527, 330, 32, 23) ) then triggerServerEvent ("remvtag13", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveADA elseif ( isCursorOnElement (571, 330, 153, 23) ) then triggerServerEvent ("addtag14", localPlayer, getPlayerFromName(jogadorselecionado)) --AddROTA elseif ( isCursorOnElement (728, 330, 32, 23) ) then triggerServerEvent ("remvtag14", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveROTA elseif ( isCursorOnElement (368, 363, 153, 23) ) then triggerServerEvent ("addtag15", localPlayer, getPlayerFromName(jogadorselecionado)) --AddROTAM elseif ( isCursorOnElement (527, 363, 32, 23) ) then triggerServerEvent ("remvtag15", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveROTAM elseif ( isCursorOnElement (571, 363, 153, 23) ) then triggerServerEvent ("addtag16", localPlayer, getPlayerFromName(jogadorselecionado)) --AddCOISAC elseif ( isCursorOnElement (728, 363, 32, 23 ) ) then triggerServerEvent ("remvtag16", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveCOISAC elseif ( isCursorOnElement (368, 396, 153, 23) ) then triggerServerEvent ("addtag17", localPlayer, getPlayerFromName(jogadorselecionado)) --AddRQR7 elseif ( isCursorOnElement (527, 396, 32, 23) ) then triggerServerEvent ("remvtag17", localPlayer, getPlayerFromName(jogadorselecionado)) --RemoveQR7 end end end end addEventHandler ("onClientClick", root, Console) function isCursorOnElement(x,y,w,h) local mx,my = getCursorPosition () local fullx,fully = guiGetScreenSize() cursorx,cursory = mx*fullx,my*fully if cursorx > x and cursorx < x + w and cursory > y and cursory < y + h then return true else return false end end
  12. Boa noite a todos queria aqui pedir uma grande ajuda de voces, bom eu fiz um painel de Tag DX mas toda vez que inicio o script ou logou do servidor fica aparecendo isso e outra para outros jogadores tambem aparece isso http://prntscr.com/lbzai8 , ja tentei de varias formas corrigi mas nunca consegui aqui esta o codigo . PainelLista = guiCreateWindow(793, 142, 205, 470, "Jogadores online", false) guiWindowSetSizable(PainelLista, false) guiSetVisible(PainelLista, false) Lista = guiCreateGridList(793, 126, 210, 487, false) columm = guiGridListAddColumn(Lista, "Jogadores", 0.9) function guiackapaTG() if ( guiGetVisible (Lista) == true ) then guiSetVisible(Lista, false ) showCursor(false) else guiSetVisible(Lista, true) showCursor(true) ColocarJugadores3 () end end addEvent("paineltags", true) addEventHandler("paineltags", root, guiackapaTG)
×
×
  • Create New...