
stefutz101
Members-
Posts
245 -
Joined
-
Last visited
Everything posted by stefutz101
-
Any help , please ? FIXED i must put mapextension
-
Word objects . That objects what are default by game. http://postimg.org/gallery/224s0218u/e5d58083/ like that old fence
-
Hi i made a dayz map and i removed some objects , when i upload map on server deleted objects are on server ... :(
-
Now command work but i have a question . Why when i start server it spawn a Walton(id:478) on the map ? I looked in all server files and i search for that id and nothing . And i have another question why vehicles start when server start but vehicles added by me dont appear ? I must type /svp to spawn my vehicles . FIRST PROBLEM SOLVED !! Thanks in advance!
-
Lol . Nick trick , solved , thanks !
-
Hi . I'm trying to solve bugs and error at my servers and i can't solve this one . http://iceimg.net/images/2015/09/02/mta ... -02-08.png I searched "tab " but nothing happen , i think "tab" isn't definied . But i dont know what did that "tab " what kind of index is. Thanks in advance. function table.size(tab) local length = 0 for _ in pairs(tab) do length = length + 1 end return length end
-
http://www.fileshare.ro/e31881719 There is the download link. If you can repair the error you can send me a pm or write here where was the problem and what program you use to open files ? I want to know because i have a lot of skins and i want to have a model to fix them . Thanks in advance ! @Hadif I already do that . Thanks .
-
Attempt to arithmetic on local x1 ( a boolean value )
stefutz101 replied to stefutz101's topic in Scripting
Oh , ty verry much -
local x,y,z = getElementPosition(newbiePosition) local x1,y1,z1 = getScreenFromWorldPosition(x,y,z) local length = dxGetTextWidth(newbieText,1,"default-bold") dxDrawImage ( x1-length/2-screenWidth*0.01,y1, screenWidth*0.101, screenHeight*0.09, "images/lootTable.png",0,0,0,tocolor(255,255,255)) I dont see problem , x1 is defined. Any help , please ?
-
No , skin is donwloaded . So, someone know how to solve this ?
-
Hi im working at a DayZ StandAlone server and i found an error . I want to put an helmet skin to an object but when i start resource i have error at DFF and TXD files : http://iceimg.net/images/2015/08/31/mta ... -07-19.png . But if you can see mod works great
-
function vipskin (playerSource) setElementData(playerSource, "skin", 0) setElementModel(playerSource, 0) end addCommandHandler("vipskin", vipskin) Try this.
-
ok ,ty
-
I want to say , the Exp : y / x when you kill a zombie it calculate at you next zombie you current exp .
-
Solved , ty But i have an bug : Example : if i have EXP : 95 / 100 and i kill a zombie and toad ( local toad= math.random(10, 15) and for example toad is 10 i will have 105/100 exp but at next zombie killed i will make lvl up and 5 / 115 . I can fix this ? It's not important bug but i ask if i can solve it.
-
I do it but i have a problem , if player leave server when player he have lvl 0. And 0 exp function login(source) setElementData(source, "lvl", getElementData(source,"lvl")) setElementData(source, "exp", getElementData(source,"exp")) end addEventHandler("onPlayerLogin", getRootElement(),login) function login(source) local currentexp = getElementData(source, "exp") or 0 local currentlvl = getElementData(source, "lvl") or 1 setElementData(source, "lvl", tonumber(currentlvl)) setElementData(source, "exp", tonumber(currentexp)) end addEventHandler("onPlayerQuit", getRootElement(),login)
-
Help , please ?
-
local thePlayer = getLocalPlayer() addEventHandler("onClientResourceStart", resourceRoot, function() end ) addEventHandler("onClientRender", root, function() triggerServerEvent(thePlayer,'onZombieGetsKilled',root, currentexp) local currentlvl = getElementData(thePlayer, "lvl") or 1 dxDrawText(currentexp.."", 600, 104, 688, 128, tocolor(255, 255, 255, 255), 0.50, "bankgothic", "left", "top") dxDrawText("/", 625, 104, 688, 128, tocolor(30, 247, 7, 255), 0.50, "bankgothic", "left", "top") dxDrawText(""..levelExp[currentlvl], 650,104,796,123, tocolor(255, 255, 255, 255), 0.50, "bankgothic", "left", "top") end This is Client-side , and btw i have defined levelExp . It work but for lvlExp[currentlvl] but now dont display nothing . Ps : SetElementData ? You want to say GetElementData ? Help , please
-
I already try with getElementData but it display 0 . http://iceimg.net/images/2015/08/28/mta ... -49-28.png With getAccountData i try too , but i have error : attempting to concatenate a nil value . Client-Side local thePlayer= getLocalPlayer() local currentexp = GetAccontData(thePlayer,"exp") I looked in client function on wiki and getAccountData isn't , so i think is only server-side . I will try with triggerServerEvent . It must be something like this ? : triggerServerEvent("onZombieGetsKilled" , thePlayer , "exp" ). It's good ?
-
Hi i want to make a lvl-script on DayZ Mta , and i want to make on screen to show you current exp / exp to lvl up . But how i cant make go GetAccountData on client side ? The experience is saved in account data on server-side so i need a function to get "exp" frome server-side . Help , please ? Please :(
-
Hi , today i found a BUG: when a player connect on server if he have an m4 , the m4 appear on the map ... For each player connected an m4 spawn and stay on map . The m4 is an object and it can't be taked. What i can solve this ? please help :( !
-
Ty , fixed How i can repair that ? First 3 warnings function findPath (ped) local allwaypoints = getElementsByType ( "pathpoint" ) if #allwaypoints > 2 then if (isElement(getElementData(ped,"controller"))) then triggerClientEvent ( "pedPathfind", getElementData(ped,"controller"), ped) end else setElementData ( ped, "target", nil ) setElementData ( ped, "leader", nil ) assigncontroller(ped) setElementData ( ped, "status", "waiting" ) end end --ped picks the path node to start with addEvent( "pedPathChoose", true ) last 2 warnings local slothbot = createPed (tonumber(skin),tonumber(x),tonumber(y),tonumber(z))--spawns the ped if (slothbot ~= false) then triggerEvent ( "onBotSpawned", slothbot ) setTimer ( setElementData, 200, 1, slothbot, "slothbot", true ) -- makes it a bot setTimer ( setElementData, 200, 1, slothbot, "AllowFire", true ) -- makes it able to shoot when it wants setTimer ( assigncontroller, 300, 1, slothbot ) --sets the bots controller setTimer ( giveWeapon, 800, 1, slothbot, tonumber(weapon), 99999, true ) --gives the weapon------------------------------------------------------------------------------------------ setElementData(slothbot, "BotWeapon", tonumber(weapon)) if team ~= nil then setElementData(slothbot, "BotTeam", team) end setTimer ( setElementInterior, 100, 1, slothbot, tonumber(interior)) --sets interior setTimer ( setElementDimension, 100, 1, slothbot, tonumber(dimension)) --sets dimension http://iceimg.net/images/2015/08/25/mta ... -58-33.png Please help , or is someone what know a fixed slothbot ? With not many errors ?
-
WARNING: [DayZ-MTA]/DayZ/survivorSystem.lua_dayz:438: Bad argument @ [ 'destroyElement' [Expected element at argument 1, got boolean] [ [22:51:08] WARNING: [DayZ-MTA]/DayZ/survivorSystem.lua_dayz:343: Bad argument @ [ 'setPedSkin' [Expected element at argument 1, got number '285'] 343: setPedSkin(getElementData(source,"skin")) 438 destroyElement(elementWeaponBack[source]) For line 343 i can use this ? setPedSkin(source,getElementData(source,"skin")) Help please :3 !