-
Posts
15 -
Joined
-
Last visited
Everything posted by daffabahy
-
Help me pls, i need your help. i dont know where's the problem. pls man function playerDropAItem(itemName) local x,y,z = getElementPosition(source) local item,itemString = getItemTablePosition(itemName) local itemPickup = createItemPickup(item,x+math.random(-1.25,1.25),y+math.random(-1.25,1.25),z,itemString) end addEvent( "playerDropAItem", true ) <export function="playerDropAItem" type="server" />
-
then what i must do? to fix the server?
-
Hey dude i found a bug, that when the server always down when in Spawn Loot (DayZ). Please help me [2016-03-25 14:23:27] WARNING: Long execution (DayZ) [2016-03-25 14:23:34] WARNING: Long execution (DayZ) [2016-03-25 14:23:35] [Network] InResultQueue > 200000 msgs. This is due to server overload or script freeze [2016-03-25 14:23:38] Temporarily suspending incoming sync packets [2016-03-25 14:23:41] [Network] OutCommandQueue > 200000 msgs. This is due to server overload or script freeze [2016-03-25 14:23:42] Temporarily suspending outgoing sync packets [2016-03-25 14:23:42] WARNING: Long execution (DayZ)
-
How to fix that ? every hours, it will be automatic increase the usage ram, help me fix that, before it i was create a mta dayz server with 512mb and its normal, maybe the resource or what, please help me. i did'nt install any application/software, this host just for mta server
-
How ? I dont know how to delete it, maybe its have default resources. Please answer me how to delete.
-
Anybody know how to remove the nametag?
-
Does not work, pls help me
-
[03:16:27] ERROR: [DayZ-MTA]/DayZ/survivorSystem.lua:384: attempt to index globa l 'elementWeaponBack' (a nil value) [03:19:12] ERROR: [DayZ-MTA]/DayZ/survivorSystem.lua:508: attempt to index globa l 'elementWeaponBack' (a nil value) [03:20:20] ERROR: [DayZ-MTA]/DayZ/survivorSystem.lua:495: attempt to index globa l 'elementWeaponBack' (a nil value) Can you help me fix the error scripts ? pls help me. this the full function code. function weaponSwitchBack(previousWeaponID, currentWeaponID) local weapon1 = getElementData(source, "currentweapon_1") if not weapon1 then return end local ammoData1, weapID1 = getWeaponAmmoType(weapon1) local x, y, z = getElementPosition(source) local rx, ry, rz = getElementRotation(source) if previousWeaponID == weapID1 then if elementWeaponBack[source] then setElementID(player, "elementWeaponBack[source]") detachElementFromBone(elementWeaponBack[source]) destroyElement(elementWeaponBack[source]) elementWeaponBack[source] = false end elementWeaponBack[source] = createObject(getWeaponObjectID(weapID1), x, y, z) setObjectScale(elementWeaponBack[source], 0.875) if elementBackpack[source] then attachElementToBone(elementWeaponBack[source], source, 3, 0.19, -0.31, -0.1, 0, 270, -90) else attachElementToBone(elementWeaponBack[source], source, 3, 0.19, -0.11, -0.1, 0, 270, 10) end elseif currentWeaponID == weapID1 then setElementID(player, "elementWeaponBack[source]") detachElementFromBone(elementWeaponBack[source]) destroyElement(elementWeaponBack[source]) elementWeaponBack[source] = false end end addEventHandler("onPlayerWeaponSwitch", getRootElement(), weaponSwitchBack) function removeBackWeaponOnDrop() if elementWeaponBack[source] then detachElementFromBone(elementWeaponBack[source]) destroyElement(elementWeaponBack[source]) elementWeaponBack[source] = false end end addEvent("removeBackWeaponOnDrop", true) addEventHandler("removeBackWeaponOnDrop", getRootElement(), removeBackWeaponOnDrop) function removeAttachedOnDeath() if elementBackpack[source] then detachElementFromBone(elementBackpack[source]) destroyElement(elementBackpack[source]) end if elementWeaponBack[source] then detachElementFromBone(elementWeaponBack[source]) destroyElement(elementWeaponBack[source]) elementWeaponBack[source] = false end end
-
addEvent("onPlayerDayZRegister", true) addEventHandler("onPlayerDayZRegister", getRootElement(), playerRegister) function saveAccounts() local account = getPlayerAccount(source) if account then for i, data in ipairs(playerDataTable) do setAccountData(account, data[1], getElementData(source, data[1])) end local x, y, z = getElementPosition(source) setAccountData(account, "last_x", x) setAccountData(account, "last_y", y) setAccountData(account, "last_z", z) destroyElement(getElementData(source, "playerCol")) end setElementData(source, "logedin", false) end i have small problem, i cant fix that, can you help me ? [12:57:45] WARNING: [DayZ-MTA]/DayZ/login.lua:404: Bad argument @ 'destroyElemen t' [Expected element at argument 1, got boolean]
-
elseif currentWeaponID == weapID1 then setElementID(player, "elementWeaponBack[source]") detachElementFromBone(elementWeaponBack[source]) destroyElement(elementWeaponBack[source]) elementWeaponBack[source] = false end end i have some small problem,Can you help me fix that? [12:59:01] WARNING: [DayZ-MTA]/DayZ/survivorSystem.lua:491: Bad argument @ 'dest royElement' [Expected element at argument 1, got boolean]
-
i'm looking for who sell mta dayz scripts, with features clothes,much weapon,like top-gta. send your price & screenshot here.
-
Thanks, i'll try it soon.
-
Help pls
-
setTimer(checkBuggedAccount, 90000, 0) function notifyAboutExplosion2() for i, player in pairs(getVehicleOccupants(source)) do triggerEvent("kilLDayZPlayer", player) end end addEventHandler("onVehicleExplode", getRootElement(), notifyAboutExplosion2) function destroyDeadPlayer(ped, pedCol) destroyElement(ped) destroyElement(pedCol) end function kilLDayZPlayer(killer, headshot, weapon) This ? if not, i dont know where exactly.
-
triggerClientEvent ( "onRollMessageStart", getRootElement(),"#FFFFFF"..getPlayerName(source).." #FFFFFFwas killed by "..(getPlayerName(killer) or "unknown")..".",0,22,255, "died") destroyElement(getElementData(source, "playerCol")) setTimer(spawnDayZPlayer, 5000, 1, source) end addEvent("kilLDayZPlayer", true) addEventHandler("kilLDayZPlayer", getRootElement(), kilLDayZPlayer) I have a mta dayz server, but i have small problem too. can you help fix this script ? [2016-02-13 06:14:38] WARNING: [DayZ-MTA]/DayZ/spawn.lua:672: Bad argument @ 'getPlayerName' [Expected element at argument 1, got boolean]