Jump to content

Clydian

Members
  • Posts

    48
  • Joined

  • Last visited

Everything posted by Clydian

  1. Clydian

    Need Help

    saw it, not what im looking for.. and i want to learn the scripting.. so wanna try to make it myself
  2. Clydian

    Need Help

    I wanna make a kinda purchasable property, where every five minutes you can get money for it. I wanna try to make it but i dont know what should i focus on. I want the green house things to float on some house doors, and when i walk up to them, i see the price of it and the price that it gives me every five minutes. P.S. sorry for bad english
  3. I could try, but how do you ment that?
  4. So i want to replace all my road rextures in my servevr, do i have to replace every single road? cause it will take forever. Is there any faster way? I hope you understood what i said, sorry for mu bad english.
  5. Dont think they do, cause i think a looot of peaps use it. They haven't sad any words.
  6. OMG THANK YOU!!!!!!! Love you (not in that way).
  7. Well you know what it outputs
  8. It outputs nothing, and where should i fint this badge table?
  9. No errors, just simpley dont work, dont know why.
  10. Thank you so so much.. oh and theres another problem, posted it yesterday noone helped me.. maybe you have any ideas? function givePlayerBadge(thePlayer, commandName, targetPlayer, ... ) local badgeNumber = table.concat( { ... }, " " ) badgeNumber = #badgeNumber > 0 and badgeNumber local theTeam = getPlayerTeam(thePlayer) local teamID = getElementData(theTeam, "id") local badge = nil local itemID = nil local prefix = "" for k, v in pairs(badges) do for ka, va in pairs(v[3]) do if ka == teamID then badge = v itemID = k prefix = type(va) == "string" and ( va .. " " ) or "" end end end if not badge then return end local leader = getElementData(thePlayer, "factionleader") if not (tonumber(leader)==1) then outputChatBox("You must be a faction leader to issue badges.", thePlayer, 255, 0, 0) else if not targetPlayer or not badgeNumber then outputChatBox("SYNTAX: /" .. commandName .. " [Player Partial Nick / ID] [badge Number]", thePlayer, 255, 194, 14) else local targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(thePlayer, targetPlayer) if targetPlayer then local targetPlayerName = targetPlayerName:gsub("_", " ") local logged = getElementData(targetPlayer, "loggedin") if (logged==0) then outputChatBox("Player is not logged in.", thePlayer, 255, 0, 0) else local x, y, z = getElementPosition(thePlayer) local tx, ty, tz = getElementPosition(targetPlayer) if (getDistanceBetweenPoints3D(x, y, z, tx, ty, tz)>4) then outputChatBox("You are too far away to issue this player a badge.", thePlayer, 255, 0, 0) else exports.global:sendLocalMeAction(thePlayer, "issues "..targetPlayerName.." " .. badge[2] .. ", reading " .. badgeNumber .. ".") exports.global:giveItem(targetPlayer, itemID, prefix .. badgeNumber) end end end end end end addCommandHandler("issuebadge", givePlayerBadge, false, false)
  11. function removeOOC(text) return text:gsub("%s*%(%(([^)]+)%)%)%s*","") end debugscript3 says that that line return text:gsub("%s*%(%(([^)]+)%)%)%s*","") is the error, why?
  12. Any suggestions about the script?
  13. UP. Please someone help me.
  14. Oh, and i want to know if theres a way, to turn my mapping in createObject file
  15. Cant tell.. Cause theres a lot of diffrent thing popping up EDIT: Nope, just checked, nothing there
  16. function givePlayerBadge(thePlayer, commandName, targetPlayer, ... ) local badgeNumber = table.concat( { ... }, " " ) badgeNumber = #badgeNumber > 0 and badgeNumber local theTeam = getPlayerTeam(thePlayer) local teamID = getElementData(theTeam, "id") local badge = nil local itemID = nil local prefix = "" for k, v in pairs(badges) do for ka, va in pairs(v[3]) do if ka == teamID then badge = v itemID = k prefix = type(va) == "string" and ( va .. " " ) or "" end end end if not badge then return end local leader = getElementData(thePlayer, "factionleader") if not (tonumber(leader)==1) then outputChatBox("You must be a faction leader to issue badges.", thePlayer, 255, 0, 0) else if not targetPlayer or not badgeNumber then outputChatBox("SYNTAX: /" .. commandName .. " [Player Partial Nick / ID] [badge Number]", thePlayer, 255, 194, 14) else local targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(thePlayer, targetPlayer) if targetPlayer then local targetPlayerName = targetPlayerName:gsub("_", " ") local logged = getElementData(targetPlayer, "loggedin") if (logged==0) then outputChatBox("Player is not logged in.", thePlayer, 255, 0, 0) else local x, y, z = getElementPosition(thePlayer) local tx, ty, tz = getElementPosition(targetPlayer) if (getDistanceBetweenPoints3D(x, y, z, tx, ty, tz)>4) then outputChatBox("You are too far away to issue this player a badge.", thePlayer, 255, 0, 0) else exports.global:sendLocalMeAction(thePlayer, "issues "..targetPlayerName.." " .. badge[2] .. ", reading " .. badgeNumber .. ".") exports.global:giveItem(targetPlayer, itemID, prefix .. badgeNumber) end end end end end end addCommandHandler("issuebadge", givePlayerBadge, false, false) Has anybodey have any ideas why this doesnt work?
  17. So basicly, can someone help me out with this? function spawnVehiclePack ( player, commandName, spawnVehPack, ) if getElementData ( playerSource, "command.svp", false ) ) then if ( hasObjectPermissionTo ( getThisResource (), "command.svp", true ) ) then spawnDayZVehicles () else outputChatBox ( "Sorry, Dont Work", playersource ) end else outputChatBox ( "You don't have permissions to use this command.", playerSource ) end end I want that admind can only use the "svp" command
  18. Clydian

    [HELP] Video

    When its gonna come out, Will i need to update servers somehow and is it worth to download it now?
  19. Clydian

    [HELP] Video

    Is it possible to display a video on the screen?
  20. So i need that backpac stays on the players back, like it should be. But the backpack is wayy off in the distance. function backPackBack(dataName, oldValue) if getElementType(source) == "player" and dataName == "MAX_Slots" then local newValue = getElementData(source, dataName) if elementBackpack[source] then detachElementFromBone(elementBackpack[source]) destroyElement(elementBackpack[source]) elementBackpack[source] = false end local x, y, z = getElementPosition(source) local rx, ry, rz = getElementRotation(source) if newValue == 10 then elementBackpack[source] = createObject(3026, x, y, z) elseif newValue == 20 then elementBackpack[source] = createObject(1248, x, y, z) elseif newValue == 34 then elementBackpack[source] = createObject(1252, x, y, z) elseif newValue == 46 then return end attachElementToBone(elementBackpack[source], source, 3, 0.19, -0.11, -0.1, 0, 270, 10) end end addEventHandler("onElementDataChange", getRootElement(), backPackBack)
  21. So theres one command, and i want it to be accesable only for admin, not simple players. How do i do that?
×
×
  • Create New...