Jump to content

lucascba

Members
  • Posts

    121
  • Joined

  • Last visited

Everything posted by lucascba

  1. hello I would like to know how to make this system work turf: Script Turf: https://community.multitheftauto.com/index.php?p= ... ls&id=6772 with this system groups: https://community.multitheftauto.com/ind ... ls&id=8036 It is possible? I would greatly appreciate your help sorry for my bad English
  2. Hola Comuidad, me gustaria saber como hao para posicionar mi dxDrawText en todas las resoluciones, porque solo yo lo veo bien los otros players lo ven en otro lugar de la pantalla, como soluciono eso? Aca esta el dxDrawText: function DxHandlerFunction( ) dxDrawText("Area Protegida,No Campear", 1100, 729, 1347, 752, tocolor(0, 0, 0, 255), 0.54, "bankgothic", "left", "top", false, false, true, false, false) dxDrawText("Area Protegida,No Campear", 1100, 727, 1347, 750, tocolor(0, 0, 0, 255), 0.54, "bankgothic", "left", "top", false, false, true, false, false) dxDrawText("Area Protegida,No Campear", 1098, 729, 1345, 752, tocolor(0, 0, 0, 255), 0.54, "bankgothic", "left", "top", false, false, true, false, false) dxDrawText("Area Protegida,No Campear", 1098, 728, 1345, 751, tocolor(0, 0, 0, 255), 0.54, "bankgothic", "left", "top", false, false, true, false, false) dxDrawText("Area Protegida,No Campear", 1101, 728, 1348, 751, tocolor(0, 255, 0, 255), 0.54, "bankgothic", "left", "top", false, false, true, false, false) end Gracias
  3. Hello I would like to know how to do to put the current team a player in my GUI, Here I give you an example of what I want to do: this is my code: VentanaT = guiCreateWindow(462, 218, 522, 295, "CL Trabajos", false) guiWindowSetSizable(VentanaT, false) guiSetVisible(VentanaT, false) RenunciarB = guiCreateButton(10, 77, 114, 37, "Renunciar", false, VentanaT) guiSetProperty(RenunciarB, "NormalTextColour", "FFAAAAAA") DescansarB = guiCreateButton(10, 30, 114, 37, "Descansar", false, VentanaT) guiSetProperty(DescansarB, "NormalTextColour", "FFAAAAAA") OcupacionT = guiCreateLabel(142, 53, 63, 14, "Team:", false, VentanaT) CuentaT = guiCreateLabel(140, 33, 100, 15, "Nombre: ", false, VentanaT) Imagen = guiCreateStaticImage(336, 33, 176, 152, ":login_panel/logo.png", false, VentanaT) CerrarB = guiCreateButton(336, 244, 177, 41, "Cerrar Ventana", false, VentanaT) guiSetProperty(CerrarB, "NormalTextColour", "FFAAAAAA") Info = guiCreateLabel(10, 136, 157, 98, "Sistema de trabajos de CL\nAca Podras Renunciar\nA Tu Trabajo,\nO Descansar De Tu Trabajo", false, VentanaT) Cuenta = guiCreateLabel(187, 33, 200, 150, "" ..getPlayerName(localPlayer).. "", false, VentanaT) Ocupacion = guiCreateLabel(205, 53, 91, 15, "n/n", false, VentanaT) VentanaE = guiCreateWindow(519, 285, 224, 157, "CL Trabajos", false) guiWindowSetSizable(VentanaE, false) guiSetVisible(VentanaE, false) BotonSi = guiCreateButton(16, 102, 74, 45, "Si", false, VentanaE) guiSetProperty(BotonSi, "NormalTextColour", "FFAAAAAA") BotonNo = guiCreateButton(124, 102, 74, 45, "No", false, VentanaE) guiSetProperty(BotonNo, "NormalTextColour", "FFAAAAAA") Label = guiCreateLabel(26, 33, 163, 50, "Estas Seguro De Renunciar?", false, VentanaE) function openT() if (guiGetVisible (VentanaT) == false) then guiSetVisible(VentanaT, true) showCursor(true) elseif (guiGetVisible (VentanaT) == true) then guiSetVisible(VentanaT, false) showCursor(false) end end bindKey ("F4", "down", openT) function cerrarventanaT() guiSetVisible(VentanaT, false) showCursor(false) end addEventHandler("onClientGUIClick", CerrarB , cerrarventanaT, false) function AbrirE() guiSetVisible(VentanaT, false) guiSetVisible(VentanaE, true) showCursor(true) end addEventHandler("onClientGUIClick", RenunciarB , AbrirE, false) function BotonNo1() guiSetVisible(VentanaT, true) guiSetVisible(VentanaE, false) showCursor(true) end addEventHandler("onClientGUIClick", BotonNo , BotonNo1, false) function BotonSi1() guiSetVisible(VentanaT, false) guiSetVisible(VentanaE, false) triggerServerEvent("Sacarteam1", localPlayer) showCursor(false) end addEventHandler("onClientGUIClick", BotonSi , BotonSi1, false) thanks, hope you can help me. sorry for my bad English
  4. local markerP = createPickup( 2869.7590332031, 1103.896484375, 20.045986175537,0,3,1318) ventana = guiCreateWindow(514, 323, 291, 167, "CL vida", false) guiWindowSetSizable(ventana, false) texto = guiCreateLabel(21, 26, 242, 60, "Para rellenar la vida cuesta $1000", false, ventana) BontonC = guiCreateButton(155, 101, 108, 46, "Cerrar", false, ventana) botonB = guiCreateButton(21, 101, 108, 46, "$1000", false, ventana) guiSetProperty(botonB, "NormalTextColour", "FF00CB2B") function VidaCQC(hitElement) if getElementType(hitElement) == "player" and (hitElement == localPlayer) then if not guiGetVisible(ventana) then guiSetVisible(ventana, true) showCursor(true) end end end addEventHandler("onClientMarkerHit", markerV, VidaCQC) function VidaCQCL(leaveElement) if getElementType(leaveElement) == "player" and (leaveElement == localPlayer) then if guiGetVisible(ventana) then guiSetVisible(ventana, false) showCursor(false) end end end addEventHandler("onClientMarkerLeave", markerV, VidaCQCL) function cerrarventana() guiSetVisible(ventana, false) showCursor(false) end addEventHandler("onClientGUIClick", BontonC , cerrarventana, false) function darvida () guiSetVisible(ventana,false) showCursor(false) triggerServerEvent("Darvida1", localPlayer) setElementHealth ( localPlayer, 200 ) end addEventHandler("onClientGUIClick", botonB , darvida, false)
  5. Hola tengo un problema con un gui que cree, el problema es que cuando entro al server la gui aprece o cuando reinicio el resource, como puedo hacer que eso no pase? gracias
  6. Make no sense. So when you want to change the wanted level you use setPlayerWantedLevel but before you use it make sure that the player aren't inside the col isElementWithinColShape or the player inside the col but his wanted level not 0 getPlayerWantedLevel. What a waste of time. because you say that?
  7. mmm I do not understand com to cancel the event of wanted levels? local LV = createColRectangle(866, 656, 2100, 2300) function nowantedlevel ( ) cancelEvent () end addEventHandler("onColShapeHit", LV ) how can I do?
  8. Hello I would like to know how to do that when a player enters a certain area (onColShapeHit) can not get wanted levels, but if you already have not wanted levels vallan is that possible? PS: sorry for my bad English
  9. Hello, I would like to know how to do that when a player enters Las Venturas you leave a message? Sorry for my bad English
  10. Hello I would like to know how to do to disable grenades in interior. sorry for my bad English
  11. Hola me gustaria saber como hacer un auto semi-Blindado que las balas le no le hagan tanto daño. Gracias
  12. Te lo paso todo local marker = createMarker( -218.6640625, 1402.982421875, 27.7734375, "Cylinder", 1.8, 0, 69,139,0) setElementInterior ( marker, 18 ) GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} function guiMyCwindow(w,h,t) local x,y = guiGetScreenSize() return guiCreateWindow((x-w)/2,(y-h)/2,w,h,t,false) end windowjob = guiMyCwindow(301,170,"Militar Team ") guiSetVisible(windowjob, false) GUIEditor_Button[1] = guiCreateButton(22,80,108,35,"Tomar Job",false,windowjob) GUIEditor_Button[3] = guiCreateButton(22,120,108,35,"Sacar Job",false,windowjob) GUIEditor_Button[2] = guiCreateButton(179,120,110,36,"Cancelar",false,windowjob) GUIEditor_Label[1] = guiCreateLabel(19,33,273,20,"Precione Tomar job para ser militar.",false,windowjob) function SWATjob(hitElement) if getElementType(hitElement) == "player" and (hitElement == localPlayer) then if not guiGetVisible(windowjob) then guiSetVisible(windowjob, true) showCursor(true) end end end addEventHandler("onClientMarkerHit", marker, SWATjob) function SWATjobleave(leaveElement) if getElementType(leaveElement) == "player" and (leaveElement == localPlayer) then if guiGetVisible(windowjob) then guiSetVisible(windowjob, false) showCursor(false) end end end addEventHandler("onClientMarkerLeave", marker, SWATjobleave) function joinTeam() triggerServerEvent("setArmedForces",localPlayer) guiSetVisible(windowjob, false) showCursor(false) end addEventHandler("onClientGUIClick", GUIEditor_Button[1] , joinTeam, false) function removeTeam() triggerServerEvent("removeArmedForces",localPlayer) guiSetVisible(windowjob, false) showCursor(false) end addEventHandler("onClientGUIClick", GUIEditor_Button[3] , removeTeam, false) function removeSWATWindow() guiSetVisible(windowjob, false) showCursor(false) end addEventHandler("onClientGUIClick", GUIEditor_Button[2] , removeSWATWindow, false)
  13. no entiendo, como hago que este marker no le pase eso? local marker = createMarker( -218.6640625, 1402.982421875, 27.7734375, "Cylinder", 1.8, 0, 69,139,0)
  14. Hola, tengo un marker de autos y cuando pasas por el aire(encima del marker) puedes agarrar los autos tambien, como soluciono eso?
  15. Hello, I would like to know how to make this resource: https://community.multitheftauto.com/in ... ls&id=9394 (arrestsystem)do not put search levels to players who kill in lv. sorry for my bad English
  16. Hola me gustaria saber como desactivo la camara que cuando un aunto va a la maxima velocidad o pones nitro, se distorciona la pantalla, hay forma de sacarla?
  17. as created a dxDrawText when the player is you add or remove money as they took him out or how much was added?
  18. lo que trato de hacer es que cuando un jugador mata a 2 players seguidos le salga en el kill mensage (x2) se puede hacer eso?
  19. and how I can add these lines to my resource? objeto = createObject (980 , 135.5255859375, 1940.83203125, 20.809717178345, 0, 0, 179.75 ) x,y,z = getElementPosition (objeto) Zona = createColCircle ( x,y, 5, 5 ) function Funcion (source) playerTeam = getPlayerTeam ( source ) Clann = getTeamFromName ( "ArmedForces" ) if ( playerTeam ) == Clann then moveObject ( objeto, 300, 135.7255859375, 1940.83203125, 15.309717178345, 0, 0, 0 ) outputChatBox ( "", source, 0, 255, 0, true ) else outputChatBox ( "Tu no eres Un Militar!", source, 255, 0, 0, true ) end end addEventHandler ( "onColShapeHit", Zona, Funcion ) function Funcion2 () moveObject ( objeto, 300, 135.7255859375, 1940.83203125, 21.309717178345, 0, 0, 0 ) outputChatBox ( "Adios Soldado", source, 0, 255, 0, true ) end addEventHandler ( "onColShapeLeave", Zona, Funcion2 ) PD: this resource is Azno10
×
×
  • Create New...