Jump to content

AnnaBelle

Members
  • Posts

    88
  • Joined

  • Last visited

Everything posted by AnnaBelle

  1. Como usar a função setElementCollisionsEnabled para criar colisão na parede base no MTA
  2. [2017-04-20 14:36:40] ERROR: [DayZ]\DayZ\bone_attach\attach_func.lua:117: cannot resume dead coroutine [string "?"] [DUP x5] [2017-04-20 14:36:40] ERROR: [DayZ]\DayZ\bone_attach\attach_func.lua:117: cannot resume dead coroutine [string "?"]
  3. vamos dizer assim,que pra mim não tava bugado mas para o outro estava bugado ai eu mudei pra .lua usei createObject
  4. Jogador fica a travesando o objeto que é feito a base,queria saber porque isso acontece e como fazer para isso n acontecer mas?
  5. When I leave the group the blip is still appearing
  6. blip\script.lua:2: Bad argument @ 'getElementData' [Expected element at argument 1, got resource-data]
  7. addEventHandler("onResourceStart",getRootElement(),function(thePlayer) if(getElementData(thePlayer,"Group")== "Testing" )then blip = createBlip(100,20,0,31) setBlipVisibleDistance(blip,1000) end end) error getElementData
  8. setTimer(updateTenda,43200000,0) Someone helps to simplify this code
  9. --Menu_Client if itemName == "tent" then local col = getElementData(getLocalPlayer(),"currentCol") triggerServerEvent("removeTent",getLocalPlayer(),getElementData(col,"parent")) disableMenu() return end --Server function ACLGroupConsole(source) if (isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Admin"))) then triggerClientEvent(source,"removeTent",source) end end It would be more or less like this?
  10. Someone there can help me, I can not do it.
  11. I managed to do to be removed, but not to remove admin
  12. WARNING: [DayZ]\DayZ\spawn.lua:184: Bad argument @ 'getElementType' [Expected element at argument 1]
  13. This will only prevent it from being removed
  14. as? I want only a member of the administration to remove the tent.
  15. addCommandHandler("tent",function(thePlayer) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)),aclGetGroup("Admin"))then local x,y,z = getElementPosition(thePlayer) local xr,yr,zr = getElementRotation(thePlayer) px,py,pz = getElementPosition(thePlayer) prot = getPedRotation(thePlayer) local offsetRot = math.rad(prot+90) local vx = px+1.5*math.cos(offsetRot) local vy = py+1.5*math.sin(offsetRot) local vz = pz+2 local vrot = prot+180 tent = createObject(964,vx,vy,z-1,0,0,vrot) setObjectScale(tent,1.0) tentCol = createColSphere(x,y,z,4) attachElements(tentCol,tent,0,0,0) setElementData(tentCol,"parent",tent) setElementData(tent,"parent",tentCol) setElementData(tentCol,"tent",true) setElementData(tentCol,"vehicle",true) ------------------------------------------------// setElementData(tentCol,"M4A1 CCO",5000) ------------------------------------------------// outputChatBox("[TENT]#FFFFFFTent Spawned!",source,46,255,46,true) else outputChatBox("[TENT]#FFFFFFYou are not admin!",source,255,0,0,true) end end) Can anyone help me with the admin only script remove this tent And players can not remove
  16. [2017-04-16 01:56:39] WARNING: [DayZ]\DayZ\spawn.lua:160: Bad argument @ 'setElementData' [Expected element at argument 1] [2017-04-16 01:56:39] WARNING: [DayZ]\DayZ\spawn.lua:163: Bad argument @ 'spawnPlayer' [Expected player at argument 1] [2017-04-16 01:56:39] WARNING: [DayZ]\DayZ\spawn.lua:164: Bad argument @ 'fadeCamera' [Expected element at argument 1] [2017-04-16 01:56:39] WARNING: [DayZ]\DayZ\spawn.lua:165: Bad argument @ 'setCameraTarget' [Expected element at argument 1] [2017-04-16 01:56:39] WARNING: [DayZ]\DayZ\spawn.lua:167: Bad argument @ 'setElementData' [Expected element at argument 1] [2017-04-16 01:56:39] WARNING: [DayZ]\DayZ\spawn.lua:168: Bad argument @ 'attachElements' [Expected element at argument 2] [2017-04-16 01:56:39] WARNING: [DayZ]\DayZ\spawn.lua:171: Bad argument @ 'getPlayerAccount' [Expected element at argument 1] [2017-04-16 01:56:39] WARNING: [DayZ]\DayZ\spawn.lua:172: Bad argument @ 'setAccountData' [Expected account at argument 1, got boolean] [2017-04-16 01:56:39] WARNING: [DayZ]\DayZ\spawn.lua:173: Bad argument @ 'setElementData' [Expected element at argument 1] [2017-04-16 01:56:39] WARNING: [DayZ]\DayZ\spawn.lua:174: Bad argument @ 'setElementData' [Expected element at argument 1] [2017-04-16 01:56:39] WARNING: [DayZ]\DayZ\spawn.lua:176: Bad argument @ 'setElementData' [Expected element at argument 1] [2017-04-16 01:56:39] WARNING: [DayZ]\DayZ\spawn.lua:176: Bad argument @ 'setElementData' [Expected element at argument 1] [2017-04-16 01:56:39] WARNING: [DayZ]\DayZ\spawn.lua:179: Bad argument @ 'setElementData' [Expected element at argument 1] [2017-04-16 01:56:45] WARNING: [DayZ]\DayZ\spawn.lua:179: Bad argument @ 'setElementData' [Expected element at argument 1] function spawnDayZPlayer(player) setElementData(player,"killed",false) local number = math.random(table.size(spawnPositions)) local x,y,z = spawnPositions[number][1],spawnPositions[number][2],spawnPositions[number][3] spawnPlayer (player, x,y,z+0.5, math.random(0,360),math.random(71,73), 0, 0) fadeCamera (player, true) setCameraTarget (player, 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) local account = getPlayerAccount(player) setAccountData(account,"isDead",false) setElementData(player,"isDead",false) setElementData(player,"logedin",true) for i,itens in ipairs(playerDataTable) do setElementData(player,itens[1],0) end for _,item in pairs(spawnItems)do setElementData(player,item[1],item[2]) end end
  17. It did not work, but I think it's fine so you'll help me a lot, the code is not in error, but it does not work either.
  18. yes sorry my English is very bad
  19. I understand, every time you buy, you get exp, but it should be every time you kill a player you win but exp I think I should add the exp. Example: you won 254 per kill a thief + item that gives more exp
  20. I made the change, but xp is coming the same thing
  21. [2017-04-15 04:30:10] ERROR: [addon]\HMT-Arena\server.lua:419: attempt to perform arithmetic on global 'expvalue' (a nil value) It looks like he is not reading this function setElementData( source,"experience",expvalue * m )
  22. addEvent("onRequestXP",true) addEventHandler("onRequestXP",root,function( m ) setElementData( source,"experience",expvalue * m ) -- I did not understand how to use this function. local currentDate = getRealTime().timestamp setAccountData(account,"DUPXP",currentDate) end) addEventHandler("onPlayerLogin",getRootElement(),function() local xpDup = getElementsByType"player" for i=1,#xpDup do local account = getPlayerAccount(xpDup[i]) local purchaseDate = getAccountData(account,"DUPXP") if purchaseDate then local currentDate = getRealTime().timestamp if currentDate - purchaseDate >= 3600*24 then setAccountData(account,"DUPXP",false) end end end end) I think it should be like this. I do not know.
×
×
  • Create New...