Jump to content

DeathMta

Members
  • Posts

    96
  • Joined

  • Last visited

Everything posted by DeathMta

  1. buenas quisiera saber que vps me recomiendan ustedes ya que veo algunos y andan caros y pocas caracteristicas.
  2. explicate quieres un panel o que este encima de un player "x"?
  3. 1.no lo creaste 2.cancelarlo con un evento?
  4. bueno quisiera saber como podria instalar mi server de mta a un vps linux. quisiera que me ayuden un poco plz
  5. function createMarwinButton(x, y, widht, height, text, bool, parent, info) button = guiCreateStaticImage(x, y, widht, height, "images/button_standard.png", bool, parent or nil) table.insert(marwinButtons, button) guiBringToFront(button) label = guiCreateLabel(0, 0, 1, 1, text, bool, button) guiBringToFront(label) setElementData(label, "parent", button) setElementData(button, "info", info) guiSetFont(label, font[1]) guiLabelSetColor ( label,21,82,67) guiLabelSetVerticalAlign(label, "center") guiLabelSetHorizontalAlign(label, "center") addEventHandler("onClientMouseEnter", label, markButton, false) addEventHandler("onClientMouseLeave", label, unmarkButton, false) return label end function markButton() parent = getElementData(source, "parent") guiStaticImageLoadImage(parent, "images/button_mouse.png") setElementData(getLocalPlayer(), "clickedButton", parent) playSound("sounds/button.mp3") end function unmarkButton(b, s) parent = getElementData(source, "parent") guiStaticImageLoadImage(parent, "images/button_standard.png") setElementData(getLocalPlayer(), "clickedButton", false) end guiate de eso lo saque de un login
  6. este recurso no es mio , pero editado un poco
  7. Server -Side antispam = false function mensajeglobal ( source, cmd, ... ) if antispam then outputChatBox ( "#FF0000[Global]: #FFFFFFEspera Un Segundo Para Enviar Otro Mensaje.",source, 255,0,0,true) return end antispam = true setTimer(function() antispam = false end, 1000, 1) local msg = table.concat ( {...} , " " ) local msg = string.gsub ( msg, '#%x%x%x%x%x%x', '' ) local nombre = getPlayerName(source) local onlyLettersMsg = string.gsub ( msg , "%A", "" ) if onlyLettersMsg == string.upper ( onlyLettersMsg ) and #onlyLettersMsg > 0 then outputChatBox ( "#FF0000[Global]: #FFFFFFNo Uses Mayúsculas.",source, 255,0,0,true) return end if string.find ( msg, "http://" ) then outputChatBox ( "#FF0000[Global]: #FFFFFFNo Publiques Links.",source, 255,0,0,true) return end if string.find ( msg, "mtasa://" ) then outputChatBox ( "#FF0000[Global]: #FFFFFFNo Publiques Ip's.", source,255,0,0,true) return end if string.find ( msg, "mierda" ) or string.find ( msg,"shit") or string.find ( msg,"noob") then outputChatBox ( "#FF0000[Global]: #FFFFFFNo Insultos.",source,255,0,0,true) return end if isPlayerMuted ( source ) then outputChatBox ( "#FF0000[Global]: #FFFFFFEstas Muteado.",source,255,0,0,true) return end local var, spacesCount = string.gsub( msg, " ", "") if ( #msg / spacesCount ) > 20 and #msg > 20 then outputChatBox ( "#FF0000[Global]: #FFFFFFNo Uses Palabras Grandes.",source,255,0,0,true) return end local mensaje = table.concat ( { ... }, " " ) local nivel = getElementData (source,"level") local clan = getElementData(source, "gang" ) local vida = getElementData(source, "blood") local nombre = getPlayerName(source) local registro = getPlayerAccount( source ) local cuenta = getAccountName(registro) if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "Admin" ) ) then outputChatBox("#5EAADE["..clan.."] #FF0000[Administrador] #FDFDFD"..nombre..": #FDFDFD"..mensaje, getRootElement(), 255, 255, 255, true) return end if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "SuperModerator" ) ) then outputChatBox("#5EAADE["..clan.."] #91DF2D[superMod] "..nombre..": #FDFDFD"..mensaje, getRootElement(), 255, 255, 255, true) return end if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "Moderator" ) ) then outputChatBox("#5EAADE["..clan.."] #0E7C3E[Moderador 1] "..nombre..": #FDFDFD"..mensaje, getRootElement(), 255, 255, 255, true) return end if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "Everyone" ) ) then outputChatBox("#FF0000[Global]"..nombre..": #FDFDFD"..mensaje, getRootElement(), 255, 255, 255, true) return end end addCommandHandler("Global", mensajeglobal) function ChatInicio() outputChatBox("Presiona [X] para usar el Chat Global", source, 255, 0, 0) end addEventHandler("onPlayerLogin", root, ChatInicio) Client-Side bindKey("x", "down", "chatbox", "Global")
  8. explicate lo deseas para un panel?
  9. mas facil : primero saca el modelo y la id : https://wiki.multitheftauto.com/wiki/Cl ... ponent_IDs https://wiki.multitheftauto.com/wiki/CJ_Clothes luego de eso edita este script : textures = { ["capgangback"] = 30274, ["tuxedo"] = 30518, ["captruck"] = 30293, ["suit1trblk2"] = 30466, ["bandblack"] = 30217, ["bandred"] = 30228, ["capredback"] = 30289, ["sportjack"] = 30458, ["capredside"] = 30291, ["capredup"] = 30292, } function replaceClothes() for cloth, id in pairs(textures) do local txd = engineLoadTXD (cloth..".txd") engineImportTXD(txd, id) end end addEventHandler ("onClientResourceStart", resourceRoot, replaceClothes)
  10. lo que puedes hacer es descargar el texture names: https://wiki.multitheftauto.com/wiki/Shader_examples y reemplazar por la textura del cj ya que la textura si la sabes
  11. 30521 esa id es de un traje de cj , fijate por ese numero
  12. yo que sepa esos son models para vestir al cj nada mas
  13. https://wiki.multitheftauto.com/wiki/CJ_Clothes hay esta
  14. if getElementData(getLocalPlayer( ), "currentweapon_1") == weapon or getElementData(getLocalPlayer( ), "currentweapon_2") == weapon or getElementData(getLocalPlayer( ), "currentweapon_3") == weapon then asi no seria?
  15. yo que sepa ese script tuyo es para armas primarias , no para secundarias ya que el currentweapon varia
  16. intenta con esto: exports ["extra_health"]:getElementExtraHealth ( v )
  17. osea esa funcion a mi boton le pongo asi?: function FuncionOtros () guiFade() showCursor (true) playSound("sonidos/sonidobronce.wav") triggerServerEvent ( "CuandoCliqueaOtros", getLocalPlayer()) end
  18. function guiFade( gui, state ) if state == "in" then -- This state will fade IN the GUI fadeIn = setTimer(guiFade, 50, 1, gui, state) -- We loop the function to make it lower the alpha each 50 ms alpha = guiGetAlpha(gui) -- We get the GUI's actual alpha after each loop guiSetAlpha(gui, alpha - 0.1) -- We set the GUI's actual alpha after each loop if alpha == 0 then -- If the loop reached "0"... guiSetVisible(gui, false) -- We set the GUI visibility to 0 so it won't be clickable or editable killTimer(fadeIn) -- ... We kill the timer fadeIn = nil -- And to make sure it doesn't exist anymore, we set it to nil end elseif state == "out" then -- This state will fade OUT the GUI guiSetVisible(gui, true) -- Since the GUI will still be click-able, we'll set it's visibility to "false" fadeOut = setTimer(guiFade, 50, 1, gui, state) -- We loop the function to make it higher the alpha each 50 ms alpha = guiGetAlpha(gui) -- We get the GUI's actual alpha after each loop guiSetAlpha(gui, alpha + 0.1) -- We set the GUI's actual alpha after each loop if alpha == 1 then -- If the loop reached "1"... killTimer(fadeOut) -- ... We kill the timer fadeOut = nil -- And to make sure it doesn't exist anymore, we set it to nil end end end trato de integrar esa funcion a mi boton ya que en la wiki mta https://wiki.multitheftauto.com/wiki/GuiGetAlpha ese es el link esa funcion dice que a un boton "x" lo destruye por un determinado tiempo
×
×
  • Create New...