Jump to content

Kilfwan

Members
  • Posts

    363
  • Joined

  • Last visited

Everything posted by Kilfwan

  1. Mmm Deberias crear varias imagenes asi como la ruedita que te sale cuando te carga el servidor le pones un setTimer y haces que salga por segundos las imagenes y parece que se rota. -Puede ser una idea.
  2. Puede ser por que tengas dos servers en un vps que no sea de buena calidad ami me pasa lo mismo.
  3. Hola, queria Saber como puedo Quitar lag del servidor o aumentar su Fps ya q el server solo posee 500 de ram. Que pasaria si yo pongo Carros modificados sin comprimir? Pesarian igual o menos? Puse muchos en carpetas sin comprimir, tengo mi servidor modificado delas calles Hasta el cielo con el addon de dayz sky, y el unico problema es que por ratos el fps baja. Si es de algo de modificar en el mtaserver.conf xf me ayudan c:
  4. Yo tengo el recurso, Buscalo en youtube un Usuario Llamado ihoussam Puso ese resource y los del cit.
  5. Hola algo esta mal o que? este es el codigo. Probe el login mediante aplastando f8 y q salga el cursor todo vale pero el cursor no aparece. PD: 20% De mi script es del comunity function loginPanel() if not(isElement(loginGui)) then x,y = guiGetScreenSize() local sWidth,sHeight = guiGetScreenSize() local Width,Height = 372,412 local X = (sWidth/2) - (Width/2) local Y = (sHeight/2) - (Height/2) loginGui = guiCreateWindow(X,Y,Width,Height,"Bienvenido al Servidor.", false) guiWindowSetSizable(loginGui, false) labelss = guiCreateLabel(20, 73, 45, 16, "Usuario:", false, loginGui) guiSetFont(labelss, "default-bold-small") labeee = guiCreateLabel(16, 110, 70, 17, "Contraseña:", false, loginGui) guiSetFont(labeee, "default-bold-small") editusuario = guiCreateEdit(90, 67, 126, 26, "", false, loginGui) editcontra = guiCreateEdit(90, 105, 126, 27, "", false, loginGui) guiEditSetMasked(editcontra, true) labee = guiCreateLabel(16, 148, 70, 17, "Confirmar:", false, loginGui) guiSetFont(labee, "default-bold-small") editcon = guiCreateEdit(90, 142, 126, 27, "", false, loginGui) guiEditSetMasked(editcon, true) imagen = guiCreateStaticImage(252, 60, 110, 109, ":guieditor/images/6.png", false, loginGui) login = guiCreateButton(52, 196, 101, 36, "Logearse", false, loginGui) guiSetFont(login, "default-bold-small") guiSetProperty(login, "NormalTextColour", "FFFFFFFF") label = guiCreateLabel(20, 29, 213, 21, "Por favor Debes Logearte:", false, loginGui) guiSetFont(label, "default-bold-small") guiLabelSetColor(label, 247, 0, 0) regist = guiCreateButton(226, 196, 101, 36, "Registrarse", false, loginGui) guiSetFont(regist, "default-bold-small") guiSetProperty(regist, "NormalTextColour", "FFFFFFFF") edit = guiCreateEdit(11, 243, 351, 159, "Login Panel Actualizado el 11/06/15 by:Adrian.", false, loginGui) guiEditSetReadOnly(edit, true) if GuestEnable == true then else end regist = guiCreateButton(226, 196, 101, 36, "Registrarse", false, loginGui) guiSetFont(regist, "default-bold-small") guiSetProperty(regist, "NormalTextColour", "FFFFFFFF") guiSetVisible(loginGui,true) showCursor(true) local username, password = loadLoginFromXML() if not( username == "" or password == "") then guiSetText ( editusuario, tostring(username)) guiSetText ( editcontra, tostring(password)) else guiSetText ( editusuario, tostring(username)) guiSetText ( editcontra, tostring(password)) end addEventHandler("onClientGUIClick",login,onClickBtninicio) addEventHandler("onClientGUIClick", regist,vergui,false) addEventHandler("onClientGUIClick", regist,verguis, false) end end addEventHandler("onClientResourceStart", resourceRoot, loginPanel)
  6. Pues parece que no la queria en medio queria que se centre automaticamente xk cuando la resolucion se pone en completa el draw se pone en medio .. Por mi no importa no me ayudes PD: Parece que el que no sabe de lo que hablo eres tu
  7. Ahora me van a cojer de novato ._. que tu quieres que te de asta la ultima funcion? el ..hour.. ..minutes es para el tiempo es un draw para mi hud A mi no me vengas a decir que lea wiki si ya la eh leido casi la 1/5 parte Pd: Si me vas a andar diciendo que lea wiki Mejor callate.
  8. En vez de saber mi nivel por que norespondieron lo de centrar el draw text
  9. Y ahora que Andan editando todos los resources de La comunidad? es un script un poco viejo .-.
  10. No me ayuden , Cuando presente mis scripts los cacheteo
  11. A pos me darian un pequeño tuto de como centrarlas ? local screenWidth, screenHeight = guiGetScreenSize() dxDrawText(""..hour..":"..minutes, 626 + 1, 118 + 1, 723 + 1, 145 + 1, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "left", "top", false, true, false, false, false) dxDrawText(""..hour..":"..minutes, 626, 118, 723, 145, tocolor(153, 0, 0, 255), 1.00, "bankgothic", "left", "top", false, true, false, false, false) dxDrawText(""..money, 691 + 1, 252 + 1, 790 + 1, 279 + 1, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText(""..money, 691, 252, 790, 279, tocolor(15, 79, 12, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false)
  12. Solo use el server side aparte de que los outputChatBox los ise yo.. Solo facilite el trabajo de el.
  13. Usa este script mio function registerPlayer(username,password,passwordConfirm) if not (username == "") then if not (password == "") then if not (passwordConfirm == "") then if password == passwordConfirm then local account = getAccount (username,password) if (account == false) then local accountAdded = addAccount(tostring(username),tostring(password)) if (accountAdded) then outputChatBox ("#FF0000* #00FF00Bienvenido al servidor tu nombre de ! [usuario: #FFFFFF" .. username .. " #00FF00| y su Contraseña: #FFFFFF" .. password .. "#00FF00 ]",source,255,255,255,true ) outputChatBox("#FF0000Inicia Sesion Para Continuar!!", source, 255, 0, 0, true) else outputChatBox("#FF0000Tus datos estan Mal!!", source, 255, 0, 0, true) end else outputChatBox("#FF0000La cuenta ya existe Usa Otra!!", source, 255, 0, 0, true) end else outputChatBox("#FF0000Tu Contraseña esta mal!!", source, 255, 0, 0, true) end else outputChatBox("#FF0000Confirma Porfavor!!", source, 255, 0, 0, true) end else outputChatBox("#FF0000Error en La Contraseña!!", source, 255, 0, 0, true) end else outputChatBox("#FF0000Malos Datos Vuelve a Intentar!!", source, 255, 0, 0, true) end end addEvent("onRequestRegister",true) addEventHandler("onRequestRegister",getRootElement(),registerPlayer) Edita los outputChatBox y agregale triggers o Como quieeras
  14. No nesecita posiciones no?
  15. Hola queria saber que funcion es la de que cuando entras al sv te quedas solo viendo el paisaje, quiero aser esto para mi login panel.
  16. Se mas explicativo... por que cuando se hace de dia lapantalla se pone de colores .. solo quiero la noche.
  17. Kilfwan

    [Learnig Lua]

    Que realmente quieres hacer?
  18. No muestra ningun msj en el dx puse una tabla pero nada no funciona, Que esta mal? local mensajes = { {"Para Sacar Carros Gratis Usa F10 y Guardalos Con F2"}, {"Ten cuidado al Salir de la Zona Segura"}, {"Esto es un mensaje"}, } addEventHandler("onClientPreRender", getRootElement(), function() local mensaje = unpack(mensajes[math.random(#mensajes)]) dxDrawLine(203 - 1, 3 - 1, 203 - 1, 79, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(571, 3 - 1, 203 - 1, 3 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(203 - 1, 79, 571, 79, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(571, 79, 571, 3 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(203, 3, 368, 76, tocolor(0, 0, 0, 191), false) dxDrawText("Informacion:", 346, 10, 425, 30, tocolor(255, 255, 255, 255), 1.00, "sans", "left", "top", false, false, false, false, false) dxDrawText(mensaje[mesMio + 1], 207, 40, 571, 60, tocolor(255, 255, 255, 255), 1.00, "sans", "left", "top", false, false, false, false, false) end ) function actualizar() if (mesMio == 5) then mesMio = 0 else mesMio = mesMio + 1 end end setTimer(actualizar, 8000, 0)
  19. Descarge otro killmesage y nada y no pasa nada
  20. Cuando se mata al zombie no se detecta el kill message miren: que esta mal? addEvent("onZombieWasted") addEventHandler( "onZombieWasted", getRootElement(), function (killer) killerName = getPlayerName(killer) weapon = getPedWeapon(killer) wr, wg, wb = getPlayerNametagColor(killer) exports.killmessages:outputMessage ( {killerName,{"padding",width=3},{"icon",id=weapon or 0},{"padding",width=3},{"color",r=162,g=2,b=2},"Zombie"},getRootElement(),wr,wg,wb ) end)
  21. Se muere el y desaparece pero su blip sige hay Este es todo el codigo que uso: local ballas = createTeam ( "Ballas", 198, 0, 255 ) local ase = createTeam ( "Asesinos", 255, 0, 0 ) local ninos = createTeam ( "Ninos Rata", 255, 126, 0 ) local hillRadar = createRadarArea ( 2382.18433, -1648.25464, 150, -150, 198, 0, 255, 175 ) local hillRadar2 = createRadarArea ( 2223.94067, -1887.78479, 150, -150, 198, 0, 255, 175 ) local hillRadar3 = createRadarArea (2231.70142, -1769.14685, 140, -110, 198, 0, 255, 175 ) local hillRadar4 = createRadarArea (2823.50952, -1493.70227, 140, -110, 198, 0, 255, 175 ) local hillRadar5 = createRadarArea (2178.48828, -1636.26770, 130, -120, 198, 0, 255, 175 ) local hillRadar6 = createRadarArea (2173.64746, -1119.93347, 130, -120, 198, 0, 255, 175 ) local hillRadar7 = createRadarArea (2164.70581, -1258.82349, 130, -120, 198, 0, 255, 175 ) posiciones = { {2251.39038, -1916.87305, 13.54688}, {2323.17017, -1943.71057, 13.58594}, {2298.85156, -1811.56531, 13.54688}, {2178.48828, -1636.26770, 20.43101}, {2882.48706, -1531.57092, 11.08802}, {2226.44482, -1169.71008, 25.72656}, {2220.83789, -1178.87000, 29.79709}, {2229.82300, -1169.64258, 25.75455}, {2218.19360, -1299.41711, 23.82031}, {2224.39893, -1357.40991, 23.98745}, {2212.27734, -1705.17261, 13.63867}, {2225.02881, -1683.69617, 14.14757}, } arma = { {30}, {31}, {29}, {27}, } function losBot() local x, y, z = unpack(posiciones[math.random(#posiciones)]) local arma = unpack(arma[math.random(#arma)]) gang = exports [ "slothBot" ]: spawnBot (x, y, z, 0, 102, 0, 0, ballas, arma, "hunting", true ) local sublip = (createBlipAttachedTo ( gang, 0 )) setBotTeam ( gang, ballas ) end addEventHandler("onResourceStart", resourceRoot, losBot) setTimer(losBot, 120000, 0) function money (theKiller) if (source == gang) then givePlayerMoney(theKiller,math.random(5000)) outputChatBox ( getPlayerName ( theKiller ) .. " un Balla a Muerto", thePlayer, 255, 0, 0, true ) setTimer(losBot, 100000, 0) end end addEvent("onBotWasted", true) addEventHandler("onBotWasted", getRootElement(), money) function destroy () if ( not isElement ( gang ) ) then destroyElement(sublip) end end addEvent("onBotWasted", true) addEventHandler("onBotWasted", getRootElement(), destroy) local cool = createColRectangle ( 2382.18433, -1648.25464, 50, 500) function hill_Enter ( thePlayer, matchingDimension ) -- announce to everyone that the player entered the hill if (getElementType(thePlayer) == "player") then outputChatBox( getPlayerName(thePlayer) .. " entered the zone!", getRootElement(), 255, 255, 109 ) setRadarAreaFlashing ( hillRadar, true ) end end addEventHandler ( "onColShapeHit", cool, hill_Enter ) -- add hill_Enter as a handler for when a player leaves the hill area function hill_Exit ( thePlayer, matchingDimension ) -- check if the player is not dead if (getElementType(thePlayer) == "player") then if isPedDead ( thePlayer ) ~= true then -- if he was alive, announce to everyone that the player has left the hill outputChatBox ( getPlayerName(thePlayer) .. " left the zone!", getRootElement(), 255, 255, 109 ) setRadarAreaFlashing ( hillRadar, false ) end end end addEventHandler ( "onColShapeLeave", cool, hill_Exit ) Algo esta mal? Y si pueden ayudarme en alinear el cool rectangle con el radar area??
  22. Hola estoy haciendo mi sistema De Zonas de Guerra: Todo va bien Pero cuando es de matar al bot solo detecta al primero que se spawnio , cuando se spawnea el segundo lo mato y no me da dinero solo al primero que salio este es la parte del error: function money (theKiller) if (source == gang) then givePlayerMoney(theKiller,math.random(50)) outputChatBox ( getPlayerName ( theKiller ) .. " un Balla a Muerto", thePlayer, 255, 0, 0, true ) setTimer(losBot, 50000, 0) end end addEvent("onBotWasted", true) addEventHandler("onBotWasted", getRootElement(), money) function destroy () if ( not isElement ( gang ) ) then destroyElement(sublip) end end addEvent("onBotWasted", true) addEventHandler("onBotWasted", getRootElement(), destroy) A y otra cosa Cuando se muere el bot no se Borra el blip.
×
×
  • Create New...