-
Posts
96 -
Joined
-
Last visited
Everything posted by DeathMta
-
si te ofendio disculpa, a lo que me refiero es que ya existen tutoriales en el foro brasilero dayz como insertar ese sistema
-
para que te metes en cosas que no sabes? mejor fijate un tuto del foro brasilero y listo.
-
busca mtaz en google ,ahi te dan tutoriales sobre todo en dayz , que te agarren de lorna y te cobren....
-
<meta> <info author="Fernando." name="Level System" version="2.2.0" type="script" /> <script src="server.luac" type="server" /> <export function="givePlayerExp" type="server" /> <export function="takePlayerExp" type="server" /> <settings> <setting name="*Level_Scoreboard" friendlyname="Level Scoreboard" value="true" examples="true/true" desc="This if want show level player on scoreboard if want put 'true' else 'true'" /> <setting name="*Exp_Scoreboard" friendlyname="Exp Scoreboard" value="true" examples="true/true" desc="This if want show exp player on scoreboard if want put 'true' else 'true'" /> <setting name="*Kill_Zombie_EXP" friendlyname="Kill Zombie EXP" value="true" examples="20/true" desc="This how much earn exp on kill zombie if want don't earn put 'true'" /> <setting name="*Kill_Player_EXP" friendlyname="Kill Player EXP" value="true" examples="20/true" desc="This how much earn exp on kill player if want don't earn put 'true'" /> </settings> </meta> PROCURA PONER " donde dice autor asi no lee tu script
- 1 reply
-
- ayudaa
- sistema de niveles
-
(and 1 more)
Tagged with:
-
eso es lo que basicamente todas las gm "dayz" tienen en comun , se usa para adherir objetos al cuerpo del player , en tal caso se puede poner chalecos ,etc.
-
[AYUDA]Script que ponga un incono sobre el admin
DeathMta replied to DarkTiger's topic in Recursos y aportes
Pues amigo si pides "ayuda" debes poner tu codigo fuente -
[Ayuda]Quien me diria como intalar un server con SLQ Y UCP
DeathMta replied to DarkTiger's topic in Recursos y aportes
la de nerdgaming? o paradise? -
Mmm mascaras , deberias usar el script Bone attachments (bone_attach) que esta en la comunidad
-
NO ME PUEDO CONECTAR A NINGUN SERVIDOR!!
DeathMta replied to FukkaTsu's topic in Ayuda relacionada al cliente/servidor
Disculpa mi entrada pero no deberias permitirlo por el firewall?? -
Mapear con 2 o varios amigos
DeathMta replied to JoseTovar96's topic in Ayuda relacionada al cliente/servidor
Al abrir tu mtaserver.exe , solo en la consola pones: start editor -
Mapear con 2 o varios amigos
DeathMta replied to JoseTovar96's topic in Ayuda relacionada al cliente/servidor
Amigo , puede ser con hamachi y abriendo tus puertos, otro seria comprar un host y mapeas. -
dayz REQUIERO DE VPS PARA ABRIR UN SERVIDOR
DeathMta replied to DeathMta's topic in Ayuda relacionada al cliente/servidor
todo el modo de juego pesa 500 mb -
Requisitos Basicos - Servidor con distribución Linux (Debian y Ubuntu).- Acceso SSH a dicho servidor.- El programa PuTTy, para dicho acceso. Instalacion del Agente (Ubuntu - Debian) Quote: 1. Procederemos a instalar el agente, para esto deberemos descargar algunos paquetes necesarios para correrlo. Ubuntu (Todas las versiones) Code: sudo apt-get install libxml-parser-perl libpath-class-perl perl-modules screen rsync sudo e2fsprogs unzip subversion libarchive-extract-perl pure-ftpd libarchive-zip-perl libc6 libgcc1 git Code: sudo apt-get install libc6-i386 libgcc1:i386 Code: sudo apt-get install lib32gcc1 Code: sudo apt-get install libhttp-daemon-perl Debian (Todas las versiones) Code: sudo apt-get install libxml-parser-perl libpath-class-perl perl-modules screen rsync sudo e2fsprogs unzip subversion libarchive-extract-perl pure-ftpd libarchive-zip-perl libc6 libgcc1 git Code: sudo apt-get install libc6-i386 lib32gcc1 Code: sudo apt-get install libhttp-daemon-perl 2. Siguiendo con la instalacion del Agente, procederemos descargar y descomprimir los archivos base. Ubuntu y Debian (Todas las versiones) Code: wget -N "https://github.com/OpenGamePanel/Easy-Installers/raw/master/Linux/Debian-Ubuntu/ogp-agent-latest.deb" -O "ogp-agent-latest.deb" Code: sudo dpkg -i "ogp-agent-latest.deb" 3. El siguiente y ultimo paso es el obtener el Usuario y Clave para instalar el resto del panel, lo lograremos con el siguiente comando. Ubuntu y Debian (Todas las versiones) Code: sudo cat /root/ogp_user_password Instalacion del Panel (Ubuntu - Debian) Quote: 1. Procederemos a instalar el panel, para esto deberemos descargar algunos paquetes necesarios para correrlo. Ubuntu 14.04 o menores distribuciones Code: sudo apt-get install apache2 curl subversion php5 php5-gd php5-xmlrpc php5-curl php5-mysql php-pear phpmyadmin mysql-server libapache2-mod-php5 g /Ubuntu 16.06 o mayores distribuciones Code: sudo apt-get install apache2 curl subversion php7.0 php7.0-gd php7.0-zip libapache2-mod-php7.0 php7.0-curl php7.0-mysql php7.0-xmlrpc php-pear phpmyadmin mysql-server php7.0-mbstring php-gettext git Debian 8 o menores distribuciones Code: sudo apt-get install apache2 curl subversion php5 php5-gd php5-xmlrpc php5-curl php5-mysql php-pear phpmyadmin mysql-server libapache2-mod-php5 git En caso de presentar problemas al instalar el MySQL en Comandos anteriores, utilizar la siguiente alternativa Code: sudo apt-get install mariadb-server DURANTE LA INSTALACION DEL SQL TE PEDIRA DATOS DE USUARIO, Y CONTRASEÑAS PARA ADMINISTRADOR, GUARDA ESOS DATOS, SE NECESITARAN EN SIGUIENTES PROCESOS 2. Siguiendo con la instalacion del Panel, procederemos descargar y descomprimir los archivos base. Ubuntu y Debian (Todas las versiones) Code: wget -N "https://github.com/OpenGamePanel/Easy-Installers/raw/master/Linux/Debian-Ubuntu/ogp-panel-latest.deb" -O "ogp-panel-latest.deb" Code: sudo dpkg -i "ogp-panel-latest.deb" 3. Procederemos a configurar mediante la Web el panel. http://tudominio.com/index.php o http://tuipdelservidor/index.php Aqui colocaremos los datos recolectados anteriormente en la instalacion del MySQL. Code: MySQL Host = "localhost" MySQL User = "ogpuser" MySQL Database Name = "ogp_panel" 4. Si perdiste/olvidaste los datos del MySQL, podras verlos con el siguiente comando. Code: sudo cat /root/ogp_panel_mysql_info 4. Para poder instalar los GameServers, necesitaran un Key especial, lo podremos obtener en el siguiente archivo. Code: sudo cat /root/ogp_user_password
-
Amigo yo te ayudo solo cobro lo minimo
-
ahora me sale este error: Bad Argument: @"xmlNodeSetValue" [Expected string at argument 2,got nil] xmlNodeSetValue(xmlCreateChild(xmlsave, "id"..itemID), tonumber(quant))
-
como te explico lo que mande ese la funcion de un boton llamado "GUARDA CJ" que guarda los clothes sin otro script, pero me da ese error de xmlNodeSetValue(xmlCreateChild(xmlsave,"Name"), getPlayerName(player))
-
ME SALE ESTO: addEventHandler ( "onClientGUIClick", saveCJ, function() xmlsave = xmlCreateFile("clothes.xml","root") xmlNodeSetValue(xmlCreateChild(xmlsave,"Name"), getPlayerName(player)) for i, all in ipairs(tbl2) do if guiGetText(all[2]) ~= "OFF" then itemID = all[1] quant = guiGetText(all[2]) xmlNodeSetValue(xmlCreateChild(xmlsave, "id"..itemID), tonumber(quant)) end end xmlSaveFile(xmlsave) xmlUnloadFile(xmlsave) end)
-
Gracias lo probare , pero lo que digo es que al editar mi cj solo guarda el collar menos la ropas
-
HOLA amigos quiero que me ayuden con este error , no guarda el traje que eligi al cj SERVER local root = getRootElement() tryToLoginPlayer = function(username, password) local account = getAccount(username, password) if account then local accountName = getAccountName(account) logIn(source, account, password) triggerClientEvent(source, "onPlayerDoneLogin", source, accountName, password) triggerEvent("onPlayerDayZLogin", getRootElement(), username, pass, source) else outputChatBox("[Login]#FF9900 Error en Contraseña o Cuenta", source, 255, 255, 255, true) end end addEvent("onClientSendLoginDataToServer", true) addEventHandler("onClientSendLoginDataToServer", root, tryToLoginPlayer) tryToRegsiterPlayer = function(username, pass) if not getAccount(username) then theAccount = addAccount(username, pass) if theAccount then logIn(source, theAccount, pass) outputChatBox("Usted se registro" .. username .. "' Nombre de Jugador '" .. getPlayerName(source) .. "'#FFFFFF Su Contraseña '" .. pass .. "'!", source, 255, 255, 255, true) triggerClientEvent(source, "onPlayerDoneLogin", source, username, pass) triggerEvent("onPlayerDayZRegister", getRootElement(), username, pass, source) else outputChatBox("[Login]#FF9900 Error Desconocido!", source, 255, 255, 255, true) end else outputChatBox("[Login]#FF9900 Contraseña No Son Iguales!", source, 255, 255, 255, true) end end addEvent("onClientSendRegisterDataToServer", true) addEventHandler("onClientSendRegisterDataToServer", getRootElement(), tryToRegsiterPlayer) function updateSkinn(texture,model,typex,number) if number == 1 then addPedClothes(client,texture,model,typex) elseif number == 0 then removePedClothes(client,texture,model,typex) end end addEvent("updateSkin",true) addEventHandler("updateSkin",getRootElement(),updateSkinn) function LoginJoin() fadeCamera (source,true) setCameraMatrix(source,858.76477050781,-1399.6383056641,16.550140380859) end addEventHandler("onPlayerJoin",getRootElement(),LoginJoin) addEventHandler("onPlayerJoin", getRootElement(), function() local account = getAccount(username, password) if #pl_acc ~= 0 then local cloth0 = getAccountData ( pl_acc[1], "cloth0" ) or 0 local cloth1 = getAccountData ( pl_acc[1], "cloth1" ) or 0 local cloth2 = getAccountData ( pl_acc[1], "cloth2" ) or 0 local cloth3 = getAccountData ( pl_acc[1], "cloth3" ) or 0 local cloth15 = getAccountData ( pl_acc[1], "cloth15" ) or 0 local cloth16 = getAccountData ( pl_acc[1], "cloth16" ) or 0 setElementData ( source, "cloth0", cloth0 ) setElementData ( source, "cloth1", cloth1 ) setElementData ( source, "cloth2", cloth2 ) setElementData ( source, "cloth3", cloth3 ) setElementData ( source, "cloth15", cloth15 ) setElementData ( source, "cloth16", cloth16 ) end -- source:setData ( "LastTime", true ) fadeCamera(source, true) setCameraMatrix(source, 3620.4724121094, -3022.470703125, 33.641231536865, 3708.5283203125, -2975.9663085938, 24.501970291138) end ) CLIENTE resourceRoot = getResourceRootElement(getThisResource()) localPlayer = getLocalPlayer() marwinButtons = {} font = {} font[1] = guiCreateFont( "images/button_standart.png", 12 ) function createMarwinButton(x,y,widht,height,text,bool,parent,info) button = guiCreateStaticImage(x,y,widht,height,"images/button_standart.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]) 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) end function unmarkButton (b,s) parent = getElementData(source,"parent") guiStaticImageLoadImage (parent,"images/button_standart.png") setElementData(getLocalPlayer(),"clickedButton",false) end idb = false function loginPanel() showCursor(true,false) screenw,screenh = guiGetScreenSize() login_window = guiCreateStaticImage(0, 0, screenw, screenh, "", false) ---------------------------------------------------------------------------------- charbutton = guiCreateButton(0.10, 0.45, 0.10, 0.03, "Editar CJ", true,login_window) addEventHandler ( "onClientGUIClick", charbutton, function() guiSetVisible(GUIEditor.window[1],true) end) ---------------------------------------------------------------------------------- login_login = guiCreateButton(0.10, 0.40, 0.10, 0.03,"Ingresar",true,login_window,"login") addEventHandler ( "onClientGUIClick", login_login, function() guiSetVisible(login_window2,false) guiSetVisible(register_window,false) createLogin() end, false ) ---------------------------------------------------------------------------------- ---------------------------------------------------------------------------------- login_register = guiCreateButton(0.10, 0.49, 0.10, 0.03,"Registro",true,login_window,"login") addEventHandler ( "onClientGUIClick", login_register, function() guiSetVisible(register_window,false) guiSetVisible(login_window2,false) createRegistration() end, false ) ---------------------------------------------------------------------------------- login_exit = guiCreateButton(0.10, 0.54, 0.10, 0.03,"Cerrar",true,login_window,"quit") addEventHandler ( "onClientGUIClick", login_exit, function() guiSetVisible(GUIEditor.window[1],false) guiSetVisible(login_window2,false) guiSetVisible(register_window,false) end, false ) end function createRegistration() screenw,screenh = guiGetScreenSize() register_window = guiCreateStaticImage(350, 270, 200, 250, "images/button_standart.png", false) infol1 = guiCreateLabel(0.27, 0.05, 0.80, 0.30,"Registro",true,register_window) guiSetFont(infol1,font[1]) infol4 = guiCreateLabel(0.38, 0.16, 0.80, 0.30,"Usuario",true,register_window) guiSetFont(infol4,font[1]) infol5 = guiCreateLabel(0.36, 0.38, 0.80, 0.30,"Contraseña",true,register_window) guiSetFont(infol5,font[1]) register_username = guiCreateEdit(30, 60, 134, 28, "", false, register_window) guiSetAlpha(register_username, 0.60) register_password = guiCreateEdit(30, 120, 134, 28, "", false, register_window) guiSetAlpha(register_password, 0.60) guiEditSetMasked(register_password, true) regbutt = guiCreateButton(0.14,0.695,0.695,0.110,"Registro",true,register_window,"login") addEventHandler ( "onClientGUIClick", regbutt, function() if idb == true then end username = guiGetText(register_username) pass1 = guiGetText(register_password) if username ~= "" and pass1 ~= "" then triggerServerEvent("onClientSendRegisterDataToServer", getLocalPlayer(), username, pass1) end end, false ) end function createLogin() screenw,screenh = guiGetScreenSize() login_window2 = guiCreateStaticImage(350, 270, 200, 250, "images/menu.png", false) infol = guiCreateLabel(0.27, 0.05, 0.80, 0.30,"Ingresa",true,login_window2) guiSetFont(infol,font[1]) infol2 = guiCreateLabel(0.38, 0.16, 0.80, 0.30,"Usuario",true,login_window2) guiSetFont(infol2,font[1]) infol3 = guiCreateLabel(0.36, 0.38, 0.80, 0.30,"Contraseña",true,login_window2) guiSetFont(infol3,font[1]) login_username = guiCreateEdit(30, 60, 134, 28, "", false, login_window2) guiSetAlpha(login_username, 0.60) login_password = guiCreateEdit(30, 120, 134, 28, "", false, login_window2) guiSetAlpha(login_password, 0.60) guiEditSetMasked(login_password, true) loginbutt = guiCreateButton(0.14,0.695,0.695,0.110,"Login",true,login_window2,"login") addEventHandler ( "onClientGUIClick", loginbutt, function() if idb == true then end username = guiGetText(login_username) password = guiGetText(login_password) if username ~= "" and password ~= "" then triggerServerEvent("onClientSendLoginDataToServer", getLocalPlayer(), username, password) end end, false ) config = xmlLoadFile("fragconf.xml") if config then uname = xmlNodeGetAttribute(config,"username") pass = xmlNodeGetAttribute(config,"pass") guiSetText(login_username,uname) guiSetText(login_password,pass) else config = xmlCreateFile("fragconf.xml","account") xmlNodeSetAttribute(config, "username", "") xmlNodeSetAttribute(config, "pass", "") xmlSaveFile(config) end end addEventHandler("onClientResourceStart", resourceRoot, function () loginPanel() setPlayerHudComponentVisible ("radar", false ) setTimer(function() ped = createPed ( 0,862.5757,-1391.8000488281,13.49999961853 ) setCameraMatrix(864.5232,-1395.6383056641,14.550140380859) end,1000,1) guiSetInputMode("no_binds_when_editing") fadeCamera (true) end) player = getLocalPlayer() local k = 0 function rotatepedd(key,state,arg) if arg == "up" then if k+15 <= 360 then k = k + 15 else k = 0 end local rx,ry,rz = getElementRotation(ped) setElementRotation(ped,rx,ry,k) else if k+15 <= 360 then --setElementVelocity(myPed,1,1,1) k = k - 15 else k = 0 end local rx,ry,rz = getElementRotation(ped) setElementRotation(ped,rx,ry,k) end end bindKey("mouse_wheel_up","down",rotatepedd,"up") bindKey("mouse_wheel_down","down",rotatepedd) bindKey("1","down",rotatepedd,"up") bindKey("2","down",rotatepedd) ---------------------------------------------- ---------------------------------------------------------------------------------- function finishlogin() destroyElement(ped) destroyElement(GUIEditor.window[1]) destroyElement(login_login) destroyElement(charbutton) destroyElement(login_cj) destroyElement(login_exit) destroyElement(login_register) config = xmlLoadFile("fragconf.xml") if config then config = xmlLoadFile("fragconf.xml") xmlNodeSetAttribute(config, "username",guiGetText(login_username)) xmlNodeSetAttribute(config, "pass",guiGetText(login_password)) xmlSaveFile(config) guiSetVisible(login_bg,false) guiSetVisible(login_window,false) showCursor(false) guiSetVisible(register_window,false) guiSetVisible(login_window2,false) unbindKey("mouse_wheel_up","down",rotatepedd,"up") unbindKey("mouse_wheel_down","down",rotatepedd) unbindKey("1","down",rotatepedd,"up") unbindKey("2","down",rotatepedd) end end addEvent("onPlayerDoneLogin", true) addEventHandler("onPlayerDoneLogin", getRootElement(), finishlogin) ---------------------------------------------------------------------------------- function wear(textures, models, i) addPedClothes(ped, textures, models, i) end addEvent("wearit",true) addEventHandler("wearit",getRootElement(),wear) GUIEditor = { button = {}, window = {}, label = {} } GUIEditor.window[1] = guiCreateStaticImage(600, 270, 199, 258, "images/menu.png", false) guiSetVisible(GUIEditor.window[1],false) label11 = guiCreateLabel(0.34, 0.055, 0.80, 0.30,"Personaje",true,GUIEditor.window[1]) guiSetFont(label11,font[1]) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") -- Glasses GUIEditor.label[1] = guiCreateLabel(0, 0, 0, 0, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(0, 0, 0, 0, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(0, 0, 0, 0, "", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[2], "center") GUIEditor.button[2] = guiCreateButton(0, 0, 0, 0, "", false, GUIEditor.window[1]) -- Hats GUIEditor.label[3] = guiCreateLabel(0, 0, 0, 0, "", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(0, 0, 0, 0, "", false, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(0, 0, 0, 0, "", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[4], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[4], "center") GUIEditor.button[4] = guiCreateButton(0, 0, 0, 0, "", false, GUIEditor.window[1]) -- Shirts GUIEditor.label[5] = guiCreateLabel(10, 88, 42, 17, "Poleras:", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(72, 88, 30, 23, "<-", false, GUIEditor.window[1]) GUIEditor.label[8] = guiCreateLabel(112, 88, 36, 23, "OFF", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[8], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[8], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[8], "center") GUIEditor.button[8] = guiCreateButton(156, 88, 30, 23, "->", false, GUIEditor.window[1]) -- Trousers GUIEditor.label[6] = guiCreateLabel(10, 115, 52, 19, "Pantalones:", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(72, 115, 30, 23, "<-", false, GUIEditor.window[1]) GUIEditor.label[9] =
-
Es imposible que ese código se ejecute, algo me dice que es una de tus multicuentas multi cuentas???
-
Ese es el error ayudenme plz function dayZDeathInfo() fadeCamera(false, 1, 0, 0, 0) setTimer(showDayZDeathScreen, 2000, 1) end addEvent("onClientPlayerDeathInfo", true) addEventHandler("onClientPlayerDeathInfo", getRootElement(), dayZDeathInfo) function showDayZDeathScreen() setTimer(fadeCamera, 1000, 1, true, 1.5) deadBackground = guiCreateStaticImage(0, 0, 1, 1, "images/dead12.jpg", true) deathText = guiCreateLabel(0, 0.8, 1, 0.2, [[ You died! You will respawn in 5 seconds.]], true) guiLabelSetHorizontalAlign(deathText, "center") setTimer(guiSetVisible, 5000, 1, false)--- ERROR LINEA 1325 setTimer(guiSetVisible, 5000, 1, false)--- ERROR LINEA 1326 setTimer(destroyElement, 5000, 1, deathText) setTimer(destroyElement, 5000, 1, deadBackground) end
-
[APORTE] Export para iniciar - parar - reiniciar resources
DeathMta replied to Jakepankeke's topic in Recursos y aportes
pero xq el start , stop ,y restart si eso viene incluido en el mta?