Jump to content

Callum1243

Members
  • Posts

    23
  • Joined

  • Last visited

Details

  • Gang
    Grove

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Callum1243's Achievements

Civilian

Civilian (7/54)

0

Reputation

  1. Callum1243

    FPS

    I want to add and FPS counter to this: setTimer(function() if getElementData(getLocalPlayer(), "logedin") then guiSetText(statsLabel["zombieskilled"], "Zombies killed: "..getElementData(getLocalPlayer(), getElementData(statsLabel["zombieskilled"], "identifikation"))); guiSetText(statsLabel["headshots"], "Headshots: "..getElementData(getLocalPlayer(), getElementData(statsLabel["headshots"], "identifikation"))); guiSetText(statsLabel["banditskilled"], "Bandits killed: "..getElementData(getLocalPlayer(), getElementData(statsLabel["banditskilled"], "identifikation"))); guiSetText(statsLabel["murders"], "Murders: "..getElementData(getLocalPlayer(), getElementData(statsLabel["murders"], "identifikation"))); guiSetText(statsLabel["blood"], "Blood: "..getElementData(getLocalPlayer(), getElementData(statsLabel["blood"], "identifikation"))); guiSetText(statsLabel["zombies"], "Zombies (Alive/Total): "..(getElementData(getRootElement(), "zombiesalive") or 0).."/"..(getElementData(getRootElement(), "zombiestotal") or 0)); guiSetText(statsLabel["temperature"], "Temperature: "..math.round(getElementData(getLocalPlayer(), getElementData(statsLabel["temperature"], "identifikation")), 2).."°C"); guiSetText(statsLabel["humanity"], "Humanity: "..math.round(getElementData(getLocalPlayer(), getElementData(statsLabel["humanity"], "identifikation")), 2)); guiSetText(statsLabel["name"], "Name: "..getPlayerName(getLocalPlayer())); end end, 2000, 0); FPS Above Zombies killed, how can I do this?
  2. Callum1243

    Markers

    I've got a custom made base script from CodyL and I am wishing to edit it so the owner of the base or any admin can see the marker if they are less than 5 meters away, any ideas?
  3. Does anyone know how to edit the F5 Menu on the DayZ Gamemode?
  4. When they are logged in, it still wont show.
  5. In game, these two commands when entered will not show up: function giveKey(player,command,arg) local playera = getPlayerFromPartOfName ( arg ) if playera then local myAccount = getPlayerAccount(player) local myAccountName = getAccountName(myAccount) local account = getPlayerAccount(playera) setAccountData ( account,"key"..myAccountName,true) outputChatBox("You have given a key to"..getPlayerName(playera),player) else outputChatBox("Cannot find player, make sure you use /giveKey 'player'") end end addCommandHandler ( "giveKey", giveKey ) function removeKey(player,command,arg) local playera = getPlayerFromPartOfName ( arg ) if playera then local myAccount = getPlayerAccount(player) local myAccountName = getAccountName(myAccount) local account = getPlayerAccount(playera) setAccountData ( account,"key"..myAccountName,false) outputChatBox("You have removed a key to"..getPlayerName(playera),player) else outputChatBox("Cannot find player, make sure you use /revokeKey 'player'") end end addCommandHandler ( "revokeKey", removeKey ) Why? There are no errors within the control panel.
  6. Checking if anyone knew what went with it
  7. It's in menu_client, I go into it and place the code: function takeVehicleComponent(veh,action,itemName) if getElementData(source,"Toolbox") > 0 then setPedAnimation (source,"BOMBER","BOM_Plant",3000,false,false,nil,false) setTimer(function(source,veh,action) if action == "takewheel" then local col = getElementData(veh,"parent") setElementData(col,"Tire_inVehicle",getElementData(col,"Tire_inVehicle")-1) setElementData(source,"Tire",getElementData(source,"Tire")+1) triggerClientEvent (source, "displayClientInfo", source,"Vehicle","You took a wheel out.",0,255,0) elseif action == "takeengine" then local col = getElementData(veh,"parent") setElementData(col,"Engine_inVehicle",getElementData(col,"Engine_inVehicle")-1) setElementData(source,"Engine",getElementData(source,"Engine")+1) triggerClientEvent (source, "displayClientInfo", source,"Vehicle","You took the engine out.",0,255,0) elseif action == "siphon" then local col = getElementData(veh,"parent") local fuel = getElementData(col,"fuel") if fuel >= 20 then setElementData(col,"fuel",getElementData(col,"fuel")-20) else setElementData(col,"fuel",0) end setElementData(source,"Full Gas Canister",getElementData(source,"Full Gas Canister")+1) setElementData(source,"Empty Gas Canister",getElementData(source,"Empty Gas Canister")-1) triggerClientEvent (source, "displayClientInfo", source,"Vehicle","You siphoned some fuel.",0,255,0) end end,3000,1,source,veh,action) else triggerClientEvent (source, "displayClientInfo", source,"Vehicle","You need a toolbox!",255,0,0) end end addEvent("takeVehicleComponent",true) addEventHandler("takeVehicleComponent",root,takeVehicleComponent) Yet it does nothing in game, why?
  8. I was wondering if anyone could help me with a script. Taking vehicle parts from vehicles in MTA DayZ. Skype: john.scottpla
  9. I get: For: --============================================================================================================================ function globalMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ) local name = getPlayerName(thePlayer) --============================================================================================================================ -- Mute if isPlayerMuted ( thePlayer ) then outputChatBox ("You are muted!", thePlayer, 255, 128, 22, true) return end --============================================================================================================================ -- Chat - Prefix outputChatBox("#FFFFFF[#FF0000Survivor#FFFFFF] #0000FF"..name..": #DEFF00"..message, getRootElement(), 255, 255, 255, true) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(playersource)), aclGetGroup("Admin")) then outputChatBox("[#4F4F4FMTA#FF0000DayZ#FFFFFF][#FF0000ADMINISTRATOR] #FF6B00" .. getPlayerName(playersource) .. ": #F3FF00" .. msg, getRootElement(), 60, 200, 40, true) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(playersource)), aclGetGroup("Console")) then outputChatBox("#FFFFFF[#4F4F4FMTA#FF0000DayZ#FFFFFF][#FF0000O Server Owner#FFFFFF] #0000ff" .. getPlayerName(playersource) .. ": #F3FF00" .. msg, getRootElement(), 60, 200, 40, true) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(playersource)), aclGetGroup("Dev")) then outputChatBox("#FFFFFF[#4F4F4FMTA#FF0000DayZ#FFFFFF][#FF0000 Server Developer#FFFFFF] #0000ff" .. getPlayerName(playersource) .. ": #F3FF00" .. msg, getRootElement(), 60, 200, 40, true) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(playersource)), aclGetGroup("VIP")) then outputChatBox("#FFFFFF[#4F4F4FMTA#FF0000DayZ#FFFFFF][#7a7666VIP PLAYER#FFFFFF] #009b76" .. getPlayerName(playersource) .. ": #F3FF00" .. msg, getRootElement(), 60, 200, 40, true) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(playersource)), aclGetGroup("Moderator")) then outputChatBox("#FFFFFF[#4F4F4FMTA#FF0000DayZ#FFFFFF][#686c5eMODERATOR#FFFFFF] #4b0082" .. getPlayerName(playersource) .. ": #F3FF00" .. msg, getRootElement(), 60, 200, 40, true) --============================================================================================================================ -- Log Console outputServerLog("[CHAT]"..getPlayerName(thePlayer)..": "..message) --============================================================================================================================ end addCommandHandler("GlobalChat", globalMessage) Line 21: if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(playersource)), aclGetGroup("VIP")) then
  10. Callum1243

    Base

    Any 1 got a working base system or can help me make one, I'm new to LUA coding at the moment and I'm trying to make a base system from scratch or let alone start editing one. Skype: john.scottpla
  11. I have made an ACL Group called 'Dev' and placed it as a prefix for a known resource; tags. The prefix in the server side of Tags: function pmsgSozdal(playersource, command, ...) local msg = table.concat({ ... }, " ") if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(playersource)), aclGetGroup("Dev")) then outputChatBox("#FFFFFF[#4F4F4FMTA#FF0000DayZ#FFFFFF][#FF0000O Server Developer#FFFFFF] #0000ff" .. getPlayerName(playersource) .. ": #F3FF00" .. msg, getRootElement(), 60, 200, 40, true) else outputChatBox("#FFFFFFYou cannot use this chat! ", playersource, 27, 89, 224, true) end end addCommandHandler("SozdalChat", pmsgSozdal) It only shows me as a survivor in game though but I still have my powers etc...: --============================================================================================================================ -- Chat - Prefix outputChatBox("#FFFFFF[#FF0000Survivor#FFFFFF] #0000FF"..name..": #DEFF00"..message, getRootElement(), 255, 255, 255, true) --============================================================================================================================ -- Log Console outputServerLog("[CHAT]"..getPlayerName(thePlayer)..": "..message) --============================================================================================================================ end addCommandHandler("GlobalChat", globalMessage)
  12. Under editor_server.lua: -- MAVERICK gameplayVariables["maverickspawns"] = { {-1495.888671875,-2691.40234375,57.325229644775}, {-2688.42578125,1471.634765625,7.1875}, {-1534.28125,2842.9482421875,97.463409423828}, {2221.8583984375,-1344.396484375,23.984273910522}, {1474.5999755859,-1346.5999755859,164.0000}, -- The one I added and not spawning. } -- SEASPARROW gameplayVariables["seasparrowspawns"] = { {-2191.6999511719,675.79998779297,69.900001525879}, } Under vehicle_spawns.lua: seasparrowSpawns = gameplayVariables["seasparrowspawns"] -- What I made to follow the structure maverikSpawns = gameplayVariables["maverickspawns"] vehicleAddonsInfo = { {422,4,1}, {470,4,1}, {468,2,1}, {433,6,1}, {437,6,1}, {509,0,0}, {487,0,1}, {497,0,1}, {453,0,1}, {447,0,1}, -- I added this as it is the seasparrow id = 447 but I do not understand the structore of 0, 0 etc... } in vehicle_spawns.lua - Under = function spawnDayZVehicles() what I made by following the table structure for i,veh in ipairs(seasparrowSpawns) do local x,y,z = veh[1],veh[2],veh[3] veh = createVehicle(447,x,y,z) vehCol = createColSphere(x,y,z,1.5) attachElements ( vehCol, veh, 0, 0, 0 ) setElementData(vehCol,"parent",veh) setElementData(veh,"parent",vehCol) setElementData(vehCol,"vehicle",true) setElementData(vehCol,"MAX_Slots",30) --Engine + Tires local tires,engine,parts = getVehicleAddonInfos (getElementModel(veh)) setElementData(vehCol,"Tire_inVehicle",math.random(0,tires)) setElementData(vehCol,"Engine_inVehicle",math.random(0,engine)) setElementData(vehCol,"Parts_inVehicle",math.random(0,parts)) --vehicle_indentification setElementData(vehCol,"spawn",{447,x,y,z}) --others setElementData(vehCol,"fuel",10) end P.S - I am beginning on scripting LUA so this may be easy for you but complicated for me but we all have to learn.
  13. Refresh, please help me! Add my Skype if I can screenshare and show you the problem to be a lot easier: thompson.debts
×
×
  • Create New...