Jump to content

PhantomDamn

Members
  • Posts

    381
  • Joined

  • Last visited

Everything posted by PhantomDamn

  1. Hola todos.. podrian decirme las funciones escenciales para crear un gang system? alguna ayuda.
  2. no veo nada malo -------------- puedes publicar la meta que le estas agregando?
  3. vuelve a descargar la ultima version de Mta y listo.. tambn queria lo mismo y reinstale el Mta y listo.
  4. revisa bien los datos que te fueron enviados por mail y asegurate de que esten bien en el mtaserver.config... por ultimo puedes hacer un soporte y pedir ayuda directamente.
  5. Lo de las armas en el suelo solo activa el recurso "Deathpickup" y puedes cuadrar el radio a 3 metros ( creo ) desde el panel admin.
  6. puedes jugar con los hud, hay muchos e igual que skins de zombies, climas .. hay mod de armas, skins y autos.. seria bueno unas shader como lava espero te sirvan las ideas
  7. see it https://community.multitheftauto.com/index.php?p=resources&s=details&id=8530
  8. osea que esto lo agrego al spawn y no al login?
  9. podrias decirme algunos posibles? ----- el login tiene una imagen estatica de fondo que tapa toda la pantalla y es negra pero el spawn usa una camara matrix que no deja mostrar la imagen.
  10. Hola amigos, tengo un problema y es que quiero activar un login panel y el spawn que uso actualmente.. pero el spawn queda montado sobre el login y la idea es que el login aparesca solo cuando un player entra este es el client side del login : function createLoginWindow() GUIEditor_Button = {} GUIEditor_Image = {} window = guiCreateWindow(254,137,303,307,"~CG~ Login Panel",false) guiSetAlpha(window,0.60000002384186) guiWindowSetMovable(window,false) guiWindowSetSizable(window,false) logo = guiCreateStaticImage(62,23,187,38,"images/logo.png",false,window) guiSetAlpha(logo,1) username_l = guiCreateLabel(7,75,289,24," Username:",false,window) guiSetAlpha(username_l,1) guiLabelSetColor(username_l,20, 100, 100) guiLabelSetVerticalAlign(username_l,"top") guiLabelSetHorizontalAlign(username_l,"left",false) guiSetFont(username_l,"clear-normal") username = guiCreateEdit(9,100,285,25,"",false,window) guiSetAlpha(username,1) password_l = guiCreateLabel(7,140,289,24," Password:",false,window) guiSetAlpha(password_l,1) guiLabelSetColor(password_l,20,100,100) guiLabelSetVerticalAlign(password_l,"top") guiLabelSetHorizontalAlign(password_l,"left",false) guiSetFont(password_l,"clear-normal") password = guiCreateEdit(9,168,285,25,"",false,window) guiSetAlpha(password,1) GUIEditor_Button[1] = guiCreateButton(9,245,143,53,"Login",false,window) guiSetAlpha(GUIEditor_Button[1],1) GUIEditor_Button[2] = guiCreateButton(153,245,135,53,"Register",false,window) guiSetAlpha(GUIEditor_Button[2],1) errorl = guiCreateLabel(7,212,288,24,"",false,window) guiSetAlpha(errorl,1) guiLabelSetColor(errorl,20, 100, 100) guiLabelSetVerticalAlign(errorl,"top") guiLabelSetHorizontalAlign(errorl,"left",false) GUIEditor_Button[4] = guiCreateButton(0.8931,0.0644,0.0692,0.0706,"X",true,window) guiSetAlpha(GUIEditor_Button[4],1) addEventHandler("onClientGUIClick", GUIEditor_Button[1], clientSubmitLogin, false) addEventHandler("onClientGUIClick", GUIEditor_Button[2], clientSubmitRegister, false) addEventHandler("onClientGUIClick", GUIEditor_Button[4], onClickGuest) end -- Boutons -- GUIEditor_Button[1] = guiCreateButton(0.0298,0.7843,0.3212,0.1863,"HEHO",true,GUIEditor_Window[1]) -- GUIEditor_Button[2] = guiCreateButton(0.3709,0.7843,0.2781,0.1863,"HEHO",true,GUIEditor_Window[1]) -- GUIEditor_Button[3] = guiCreateButton(0.6722,0.7843,0.298,0.1863,"HEHO",true,GUIEditor_Window[1]) -- -- Guest mode function onClickGuest(button,state) if(button == "left" and state == "up") then if (source == GUIEditor_Button[4]) then guiSetVisible(window, false) guiSetInputEnabled(false) showCursor(false) if blackLoginScreen == true then fadeCamera(true,removeBlackScreenTime) end end end end function resourceStart() createLoginWindow() if (window ~= nil) then guiSetVisible(window, true) else outputChatBox("An error has occurred.") end showCursor(true) guiSetInputEnabled(true) end -- ADDED function imageFunc() image = guiCreateStaticImage(0,0,798,599,"images/backgroundlogin.png",false) guiSetProperty(image,"Disabled","true") -- setTimer ( imageOff, 10000, 1 ) end addEventHandler( "onClientResourceStart", getResourceRootElement(getThisResource()), imageFunc) -- function imageOff () -- guiSetVisible ( image, false ) -- end -- function changePw() createPasswordWindow() guiSetVisible(windowpw, true) showCursor(true) guiSetInputEnabled(true) end function clientSubmitLogin(button, state) if button == "left" and state == "up" then local username = guiGetText(username) local password = guiGetText(password) if username and password then triggerServerEvent("submitLogin", getRootElement(), localPlayer, username, password) else guiSetText(labelInfo, "Enter username and password.") end end end function clientSubmitRegister(button, state) if button == "left" and state == "up" then local username = guiGetText(username) local password = guiGetText(password) if username and password then triggerServerEvent("submitRegister", getRootElement(), localPlayer, username, password) else guiSetText(labelInfo, "Enter username and password.") end end end function clientSubmitChangepw(button, state) if button == "left" and state == "up" then local oldpassword = guiGetText(usernamepw) local newpassword = guiGetText(passwordpw) if oldpassword and newpassword then triggerServerEvent("submitChangepw", getRootElement(), localPlayer, oldpassword, newpassword) else outputChatBox("Enter old and new password.") end end end function hideLoginWindow() guiSetInputEnabled(false) guiSetVisible(window, false) showCursor(false) guiSetVisible ( image, false ) end function hidePasswordWindow() guiSetInputEnabled(false) guiSetVisible(windowpw, false) showCursor(false) end function unknownError() guiSetText(labelInfo, "Error 1: Please use /report") end function loginWrong() guiSetText(labelInfo, "Error 2: Bad password") end function registerTaken() guiSetText(labelInfo, "Error 3: This username already exist") end addEvent("hidePasswordWindow", true) addEvent("hideLoginWindow", true) addEvent("unknownError", true) addEvent("loginWrong", true) addEvent("registerTaken", true) addEventHandler("hidePasswordWindow", getRootElement(), hidePasswordWindow) addEventHandler("hideLoginWindow", getRootElement(), hideLoginWindow) addEventHandler("unknownError", getRootElement(), unknownError) addEventHandler("loginWrong", getRootElement(), loginWrong) addEventHandler("registerTaken", getRootElement(), registerTaken) addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), resourceStart) addCommandHandler("changepw", changePw)
  11. Hi, i have it script.. but i want to add Fuction outputchatbox and setTimer.. help function onLogout () kickPlayer ( source, "Prohibido dar logout!" ) end setTimer ( onLogout, 8000 ) ---i thinnk!--- addEventHandler ("onPlayerLogout", getRootElement(), onLogout)
  12. lol eso ya lo se.. pero si se pone para Everyone si serviria?
  13. ya habia solucionado eso pero de todas maneras gracias examine mejor el archivo y encontre que no era solamente eso
  14. aparte del spawn, save_s y level que otra cosa tienes?
  15. Hola.. me pueden ayudar en esto: es que quiero que a esta ventana le salga una imagen estatica pero esta no se elimina luego de dar spawn spawnGUI [ "spawn_window" ] = guiCreateWindow(0.62, 0.10, 0.38, 0.70, "SPAWN", true) esta es la funcion que le estoy agregando al spawn function showClientImage() guiCreateStaticImage( 0.62, 0.10, 0.38, 0.70, "images/fondo.png", true ) end addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource() ), showClientImage ) Gracias de antemano
  16. setPedStat me funciono de maravilla, ahora como hago para que cuando uno muera no toque seleccionar Municipal-Policia-Member; osea seleccionar classes por classes... quiero que quede guardado el team antes seleccionado y no tener que seleccionar todo de nuevo.
  17. Es cierto, todos quieres repetir lo que otro ya ha hecho... me sorprende ver siempre replys en este tema de servidores Dayz y Zombie diciendo que es lo mejor! que tienen algo nuevo! ; me gustaria ver que se hagan un auto-reto y hagan algo diferente! Ejemplo los servidores Dayz siempre usan el mismo gamemode.. esperemos en un futuro nadie diga que ha creado un servidor default ( perdon por hablar algo distinto a lo que la seccion refiere )
  18. Hola... una ayuda para saber como le agrego doble COLT a los skin desde el spawn... hace rato vi un spawn hecho por castillo que manejaba doble UZI y doble TEC al nacer ... Gracias.
  19. PREGUNTA: escuche rumores que no estaban vendiendo; ahora no entiendo para que me afirman por inbox en facebook que puedo enviar... hace 48 horas hice un pago y no tengo respuesta de nungun tipo.
×
×
  • Create New...