Jump to content

elfetoperez

Members
  • Posts

    7
  • Joined

  • Last visited

elfetoperez's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. Help Fix ¡????? Minigunsystem\sv_upgrades.lua:72: Bad argument @ 'getElementData' [Expected element at argument 1, got string 'military'] Minigunsystem\sv_upgrades.lua:72: Bad argument @ 'getElementData' [Expected element at argument 1, got string 'military'] addEvent("sv_destroyWeapon", true) addEventHandler("sv_destroyWeapon", getRootElement(), function(item, loot, player) local veh = getElementData(loot,"parent") if isElement(veh) and not getElementData(veh,"vehicle") then return end if (getElementData(loot, minigun_name)or 0) - 0 then if isElement(getElementData(veh,"vehicle")) then destroyElement(getElementData(veh, "weapon2")) destroyElement(getElementData(veh, "weapon")) setElementData(veh, "weapon", false) setElementData(veh, "weapon2", false) end end end) Thanks Thanks Thanks Thanks
  2. if I stop the resource strip errors group_system\gang_server.lua:5: exports: Call to non-running server resource (scoreboard) [string "?"] is a Servidor DayZ
  3. It does not work still appears
  4. Commands to disable scoreboard ?
  5. Hello you have any idea why it is not destroyed??? | Hola Tienes alguna idea de porque no se destruye?? survivorSystem.lua:1706: Bad argument @ 'getElementPosition' [Expected element at argument 1] survivorSystem.lua:1707: Bad argument @ 'getDistanceBetweenPoints3D' [Expected vector3 at argument 4, got boolean] survivorSystem.lua:1710: Bad argument @ 'destroyElement' [Expected element at argument 1] function boomMine(player) local mine = getElementData(source, "mine") local x,y,z = getElementPosition(source) setTimer(function() local px,py,pz = getElementPosition(player) local mx,my,mz = getElementPosition(mine) if getDistanceBetweenPoints3D(px,py,pz,mx,my,mz)or 0 < 4 then createExplosion(x,y,z,8) destroyElement(player) destroyElement(mine) end end,350,1) end Thanks for helping!!!! | Gracias por ayudarme!!!
  6. Hola tienen alguna idea de este error ? Hey you have some idea of this error? login.lua:292: Bad argument @ 'giveWeapon' [Expected number at argument 3, got boolean] survivorSystem.lua:560: Bad argument @ 'giveWeapon' [Expected number at argument 3, got boolean] -----survivorSystem.lua function rearmPlayerWeapon (weaponName,slot) takeAllWeapons (source) local ammoData,weapID = getWeaponAmmoType (weaponName) if getElementData(source,ammoData) <= 0 then triggerClientEvent (source, "displayClientInfo", source,"Rearm",shownInfos["nomag"],89, 161, 58, 255) return end setElementData(source,"currentweapon_"..slot,weaponName) local weapon = getElementData(source,"currentweapon_1") if weapon then local ammoData,weapID = getWeaponAmmoType (weapon) giveWeapon(source,weapID,getElementData(source,ammoData), false ) end local weapon = getElementData(source,"currentweapon_2") if weapon then local ammoData,weapID = getWeaponAmmoType (weapon) giveWeapon(source,weapID,getElementData(source,ammoData), false ) end local weapon = getElementData(source,"currentweapon_3") if weapon then local ammoData,weapID = getWeaponAmmoType (weapon) giveWeapon(source,weapID,getElementData(source,ammoData), false ) end if elementWeaponBack[source] then detachElementFromBone(elementWeaponBack[source]) destroyElement(elementWeaponBack[source]) elementWeaponBack[source] = false end if elementWeaponBack[source] then detachElementFromBone(elementWeaponBack[source]) destroyElement(elementWeaponBack[source]) elementWeaponBack[source] = false end setElementModel(source, getElementData(source,"skin")) end addEvent("onPlayerRearmWeapon",true) addEventHandler("onPlayerRearmWeapon",getRootElement(),rearmPlayerWeapon) -----login.lua function playerLogin(username, pass, player) local playerID = getAccountData(getPlayerAccount(player),"playerID") account = getPlayerAccount(player) local x,y,z = getAccountData(account,"last_x"),getAccountData(account,"last_y"),getAccountData(account,"last_z") local skin = getAccountData(account,"skin") createZombieTable (player) if getAccountData(account,"isDead") then spawnDayZPlayer(player) return end spawnPlayer (player, x,y,z+0.5, math.random(0,360), skin, 0, 0) setElementFrozen(player, true) fadeCamera (player, true) setCameraTarget (player, player) setTimer( function(player) if isElement(player) then setElementFrozen(player, false) end end,500,1,player) playerCol = createColSphere(x,y,z,1.5) setElementData(player,"playerCol",playerCol) attachElements ( playerCol, player, 0, 0, 0 ) setElementData(playerCol,"parent",player) setElementData(playerCol,"player",true) for i,data in ipairs(playerDataTable) do local elementData = getAccountData(account,data[1]) if not elementData then if data[1] == "brokenbone" or data[1] == "pain" or data[1] == "cold" or data[1] == "infection" or data[1] == "currentweapon_1" or data[1] == "currentweapon_2" or data[1] == "currentweapon_3" or data[1] == "bandit" then elementData = elementData else elementData = 0 end end setElementData(player,data[1],elementData) end setElementData(player,"logedin",true) --Weapons --Old Weapons local weapon = getElementData(player,"currentweapon_1") if weapon then local ammoData,weapID = getWeaponAmmoType (weapon) giveWeapon(player,weapID,getElementData(player,ammoData), true ) end local weapon = getElementData(player,"currentweapon_2") if weapon then local ammoData,weapID = getWeaponAmmoType (weapon) giveWeapon(player,weapID,getElementData(player,ammoData), false ) end local weapon = getElementData(player,"currentweapon_3") if weapon then local ammoData,weapID = getWeaponAmmoType (weapon) giveWeapon(player,weapID,getElementData(player,ammoData), false ) end setElementModel(player, getElementData(player,"skin")) setElementData(player,"admin",getAccountData(account,"admin") or false) setElementData(player,"supporter",getAccountData(account,"supporter") or false) triggerClientEvent(player, "onClientPlayerDayZLogin", player) end addEvent("onPlayerDayZLogin", true) addEventHandler("onPlayerDayZLogin", getRootElement(), playerLogin) Hay Solucion ? Ayuda u.u Muchas gracias!! ----------------------------------- No solution? Please help!!!!!!
×
×
  • Create New...