-
Posts
980 -
Joined
-
Last visited
-
Days Won
1
Everything posted by manawydan
-
hm but wiki: This does not trigger for projectiles based, or melee weapons and had one bug (for npc, no shoot with explosive) i am try make ped (npc, shoot with rocket lancer)
-
is there any way to know when a ped tries to shoot an explosive weapon? like Rocket Launcher? thanks
-
post script
-
gracias! si, poste lo script ou pm
-
4 tienta function onPlayerSpawn ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local playerskin = getAccountData ( playeraccount, "skin" ) if ( playerskin ) then setElementModel ( source, tonumber(playerskin) ) -- si no trabajar tienta timer -- setTimer(setElementModel,500,1,source,playerskin) end end end function onPlayerWasted ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local playerskin = getElementModel ( source ) setAccountData ( playeraccount, "skin", playerskin ) end end addEventHandler ( "onPlayerSpawn", getRootElement ( ), onPlayerSpawn ) addEventHandler ( "onPlayerWasted", getRootElement ( ), onPlayerWasted )
-
mi server No Time server zombie BRasil. [em testes] zombies skin resident evil skin 3 boss 5 mini-missions armas mods veiculos mods zombies sounds Merchant system Resgate ped system 3 bases (una com "raio laser") Sistema de vip y painel
-
3 intenta function boss ( ) Nemesis = exports [ "slothBot" ]:spawnBot ( -1935.5480957031, 665.44055175781, 47.0, 90, 312, 0, 0, Nemesis, 0,"chasing", true ) exports.extra_health:setElementExtraHealth ( Nemesis, 2500 ) outputChatBox ("NEMESIS A APARECIDO!!", getRootElement(), 255, 0, 0, true ) myBlip = (createBlipAttachedTo ( Nemesis, 23 )) setElementData ( Nemesis, "nemesis", true ) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), boss ) function mon (_,killer ) if killer and getElementType(killer) == 'player' then if getElementData(source,"nemesis") then givePlayerMoney( killer, math.random ( 300000, 500000 )) local nombre = getPlayerName(killer) destroyElement ( myBlip ) outputChatBox ("* "..nombre.." AH MATADO A NEMESIS!!", getRootElement(), 255, 0, 0, true ) -- setTimer(boss,60000,1) -- respawn end end end addEventHandler("onPedWasted",getRootElement(), mon )
-
i think yes, you can use for
-
lo resource https://community.multitheftauto.com/in ... ls&id=4923 poderias ser util
-
ok: Abra o bloco de notas (ou outro editor de texto) copie o código do MaligNos e cole nesse arquivo, depois salve com algum nome e na extensão .lua (ex: script.lua). Depois crie outro arquivos no bloco de notas e cole isso: salve com o nome de meta.xml Agora apenas click em cima dos 2 arquivos (script.lua e meta.xml) e click em "adicionar para o arquivo" (se não tiver o winrar aconselho baixa-lo) coloque um nome para este mod (ex: teleporte) e selecione a opção .zip, então click em ok. Ja era, agora so colocar este arquivo .zip na sua pasta resources do mta e inicia-lo.
-
em um arquivo de texto .lua e com um meta.xml dentro de um arquivo .zip
-
tienta client ------- Objetos -------- createObject ( 1571, 211.8, 1921.8, 18, 0, 0, 0 ) createPed ( 205, 211.8, 1921.2, 17, 180.0 ) ------- Panel De Comidas -------- addEventHandler ( "onClientResourceStart",resourceRoot,function() ventana = guiCreateWindow(103, 138, 602, 388, "Panel De Comidas", false) guiWindowSetSizable(ventana, false) img1 = guiCreateStaticImage(25, 40, 153, 116, "images/c1.png", false, ventana) img2 = guiCreateStaticImage(218, 40, 164, 116, "images/c2.png", false, ventana) img3 = guiCreateStaticImage(419, 40, 156, 116, "images/c3.png", false, ventana) img4 = guiCreateStaticImage(25, 189, 153, 107, "images/c4.png", false, ventana) img5 = guiCreateStaticImage(218, 191, 165, 105, "images/c5.png", false, ventana) img6 = guiCreateStaticImage(422, 189, 153, 107, "images/c6.png", false, ventana) boton1 = guiCreateButton(25, 162, 153, 21, "Ensalda Pequeña $2", false, ventana) boton2 = guiCreateButton(220, 162, 153, 21, "Ensalada Grande $10", false, ventana) boton3 = guiCreateButton(422, 160, 153, 21, "Pizza Personal $20", false, ventana) boton4 = guiCreateButton(25, 306, 153, 21, "Pizza Jumbo $40", false, ventana) boton5 = guiCreateButton(220, 306, 153, 21, "Combo Mediano $70", false, ventana) boton6 = guiCreateButton(422, 306, 153, 21, "Combo Jumbo $100", false, ventana) cerrar = guiCreateButton(220, 343, 153, 35, "Cerrar", false, ventana) addEventHandler ( "onClientGUIClick",guiRoot, comidas) end) function comidas(button,state) if (button == "left") then if(source == boton1) then triggerServerEvent("onClientBuyComida", localPlayer, "Ensalda Pequeña") elseif(source == boton2) then triggerServerEvent("onClientBuyComida", localPlayer, "Ensalada Grande") elseif(source == boton3) then triggerServerEvent("onClientBuyComida", localPlayer, "Pizza Personal") elseif(source == boton4) then triggerServerEvent("onClientBuyComida", localPlayer, "Pizza Jumbo") elseif(source == boton5) then triggerServerEvent("onClientBuyComida", localPlayer, "Combo Mediano") elseif(source == boton6) then triggerServerEvent("onClientBuyComida", localPlayer, "Combo Jumbo") elseif(source == cerrar) then triggerServerEvent("onClientBuyComida", localPlayer, "cerrar") end end end addEvent("GuiCerrarOrno",true) addEventHandler("GuiCerrarOrno",root, function() guiSetVisible(ventana,not guiGetVisible(ventana)) showCursor(not isCursorShowing()) end) Server function comprarServer(Comida) local dinero = getPlayerMoney(source) local Co1= 2 local Co2= 10 local Co3=20 local Co4=40 local Co5=70 local Co6=100 if(Comida == "Ensalda Pequeña") then if(dinero >= Co1)then takePlayerMoney(source,Co1) setElementHealth(source,getElementHealth(source)+5) end elseif(Comida == "Ensalada Grande") then if(dinero >= Co2)then takePlayerMoney(source,Co2) setElementHealth(source,getElementHealth(source)+15) end elseif(Comida == "Pizza Personal") then if(dinero >= Co3)then takePlayerMoney(source,Co3) setElementHealth(source,getElementHealth(source)+30) end elseif(Comida == "Pizza Jumbo") then if(dinero >= Co4)then takePlayerMoney(source,Co4) setElementHealth(source,getElementHealth(source)+50) end elseif(Comida == "Combo Mediano") then if(dinero >= Co5)then takePlayerMoney(source,Co5) setElementHealth(source,getElementHealth(source)+75) end elseif(Comida == "Combo Jumbo") then if(dinero >= Co6)then takePlayerMoney(source,Co6) setElementHealth(source,getElementHealth(source)+90) end elseif(Comida == "cerrar") then triggerClientEvent(source,'GuiCerrarOrno',source) end end addEvent( "onClientBuyComida", true ) addEventHandler( "onClientBuyComida",getRootElement(), comprarServer ) local tienda =createMarker ( 211.8, 1919.7, 16.7, "cylinder", 1.5, 0, 0, 255, 255 ) addEventHandler("onMarkerHit",tienda, function(E) if(E) and getElementType(E) == "player" then triggerClientEvent(E,"GuiCerrarOrno",E) end end)
-
Opa eu queria ajudar na parte dos scripts, porém so muito noob ainda! (sempre fico pedindo ajudo pro dnl291) Boa sorte com o projeto pois é dificil ver brasileiros fazendo projetos dessa forma.
-
sorry
-
i think getElementsByType setElementData getElementData tables an others may be useful.
-
interessante cara.
-
setTimer getRandomPlayer ?
-
Ola, 1- se seu dayz for descompilado apenas altere o arquivo de spawn. 2-sim existem varios tipos de spawn na comunidade. Ex: https://community.multitheftauto.com/in ... ls&id=1152 3-Acredito que dayz use um sistema de combustivel por data. se data dor menor que 1 o carro não anda. Espero ter ajudado um pouco!
-
thank you, the player slides a little, but it works. -- water walk local obj = {} function WaterWalk() if obj[localPlayer] then local x,y,_ = getElementPosition(localPlayer) setElementPosition(obj[localPlayer],x,y,-.5) end end addEventHandler ("onClientRender",root,WaterWalk) function WaterOn() local px,py,_ = getElementPosition(localPlayer) obj[localPlayer] = createObject(1221,px,py,0) setElementAlpha(obj[localPlayer],0) end addCommandHandler("water",WaterOn)
-
o 1° caso voce pode usa funcões admin, e o segundo use addCommandHandler
-
[REL] HeroInventory - Inventory System [Groups + More]
manawydan replied to Malicious Hero.'s topic in Resources
nice job -
Bem vindo, se quiser dar uma olhada no manual lua http://www.lua.org/manual/5.1/pt/manual.html boa sorte!