-
Posts
48 -
Joined
-
Last visited
Everything posted by Clydian
-
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
-
I could try, but how do you ment that?
-
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.
-
Dont think they do, cause i think a looot of peaps use it. They haven't sad any words.
-
OMG THANK YOU!!!!!!! Love you (not in that way).
-
Well you know what it outputs
-
It outputs nothing, and where should i fint this badge table?
-
No errors, just simpley dont work, dont know why.
-
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)
-
function removeOOC(text) return text:gsub("%s*%(%(([^)]+)%)%)%s*","") end debugscript3 says that that line return text:gsub("%s*%(%(([^)]+)%)%)%s*","") is the error, why?
-
Any suggestions about the script?
-
UP. Please someone help me.
-
Oh, and i want to know if theres a way, to turn my mapping in createObject file
-
Cant tell.. Cause theres a lot of diffrent thing popping up EDIT: Nope, just checked, nothing there
-
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?
-
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
-
When its gonna come out, Will i need to update servers somehow and is it worth to download it now?
-
Is it possible to display a video on the screen?
-
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)
-
Thanks
-
So theres one command, and i want it to be accesable only for admin, not simple players. How do i do that?