Jump to content

_SAXI_

Members
  • Posts

    80
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by _SAXI_

  1. Hola, bueno quisiera saber si es posible hacer que 2 jugadores con el mismo elementdata se les bloqueara el daño entre ellos; asi como el setTeamFriendlyFire. Solo que yo tengo equipos por data. setElementData(getLocalPlayer(),"Equipo","Rojo") or setElementData(getLocalPlayer(),"Equipo","Azul") La idea es que aquellos que tengan por equipo "Rojo" no puedan dañarse entre ellos, pero si dañar a los que tienen equipo "Azul". Ayuda pls, gracias de ante mano
  2. Gracias, si me resultó, y gracias por las aclaraciones
  3. Hola Bueno estaba trabajando en un script super facil, pero al parecer no es tan facil para mi . Bueno, les explico. al mandar el comando "gmsg" se nos abre una gui donde podemos escribir lo que queramos al hacer click en el boton "Enviar" se nos aparecerá un dxText. Mi problema es que al mandar el mensaje me arroja lo siguiente: Aca el codigo btn = {}Lbl = {} mgv = guiCreateWindow(262, 241, 291, 129, "Mensaje global", false) guiWindowSetSizable(mgv, false) guiSetVisible(mgv,false) btn[1] = guiCreateButton(200, 61, 82, 26, "Enviar", false, mgv) btn[2] = guiCreateButton(9, 94, 82, 26, "Cancelar", false, mgv) mge = guiCreateEdit(9, 64, 189, 20, "", false, mgv) Lbl[1] = guiCreateLabel(17, 33, 253, 15, "INTRODUCE EL MENSAJE", false, mgv) guiSetFont(Lbl[1], "default-bold-small") guiLabelSetHorizontalAlign(Lbl[1], "center", false) guiLabelSetVerticalAlign(Lbl[1], "center") Lbl[2] = guiCreateLabel(102, 107, 183, 15, "Attack of the Terrorist!", false, mgv) guiSetFont(Lbl[2], "default-bold-small") guiLabelSetColor(Lbl[2], 30, 30, 30) guiLabelSetHorizontalAlign(Lbl[2], "center", false) guiLabelSetVerticalAlign(Lbl[2], "center") addCommandHandler("gmsg",function()guiSetVisible(mgv,true)showCursor(true)end) msj = guiGetText(mge) addEventHandler("onClientGUIClick",root,function(msj) if btn[1] == source and msj ~= "" then addEventHandler("onClientRender",root,envio) setTimer(function()removeEventHandler("onClientRender",root,envio)end,2000,1) elseif source == btn[2] then guiSetVisible(mgv,false)showCursor(false) end end) function envio(msj) dxDrawText(tostring(mge), 0, -2, 799, 598, tocolor(200, 0, 0, 255), 2.00, "pricedown", "center", "center", false, false, false, false, false) end Bueno, eso sería gracias de ante mano
×
×
  • Create New...