Jump to content

kieran

Members
  • Posts

    367
  • Joined

  • Last visited

Everything posted by kieran

  1. Tried... failed..... Might just go back to calling them all in on one xml (calling about 7 resource paths)
  2. my meta was working fine, but recently found out you could do <include resource="folder with meta" /> and I have done that, but for some reason, one resource fails which causes my server to break.... Here's what I'm doing, please tell me if it's wrong. Game mode meta <meta> <info author="kieran" type="gamemode" name="test" description="nothing" /> <min_mta_version server="1.5.4-9.11305" client="1.1.1-9.03355" /> <include resource="Login" /> <include resource="resources\general_resources" /> </meta> The folders path is "resources\general_resources" and my meta in the folder is <meta> <info author="kieranb" type="script" name="general" description="general stuff" /> <script src="time.lua" type="server" /> <script src="Greeting.lua" type="server" /> <script src="antilag.lua" type="client" /> <script src="Spawn.lua" type="server" /> <script src="kill.lua" type="server" /> </meta> I keep getting an error saying it can't start the resource...
  3. It's okay... I forgot the tags in meta file. It works nice now! Thanks for your help guys
  4. For some mucked up reason I can't edit last post Anyway, I still can't figure out how to get the dang resource to load... Tried adding "<object name="resource.test"></object>" as admin in my acl.xml and "<include resource="test" />" in the game mode xml and finally I have made a meta.xml in the resource What am I doing wrong @</Mr.Tn6eL>? Never mind, I forgot the meta tags!
  5. lol, I knew I was doing it wrong all this time! thank you
  6. I would, but the script is within a game mode, and I haven't explored ways of calling resources to start with game mode on startup...
  7. @pa3ck I take it back... It only worked on map editor! here is how I put it in my acl... <group name="Admin"> <acl name="Moderator"></acl> <acl name="SuperModerator"></acl> <acl name="Admin"></acl> <acl name="RPC"></acl> <object name="resource.admin"></object> <object name="resource.webadmin"></object> <object name="resource.acpanel"></object> <object name="resource.login"></object> <object name="resource.test\login_S.lua"></object> <--Folder\Resource </group>
  8. Thanks @pa3ck you saved me from going crazy
  9. So I finally (somehow) made a basic login GUI, it almost works, there's just one very minute problem.... When I click "Register" it says "Access Denied @ addAccount" Do I need to add it to acl.xml? If I do under admin or as a new group? Please help
  10. Due to the fact this account appears to be bugged/defected I am needing to use a second account to upload content to community resources, account name is kieranb, and my latest scripts are a script pack (I know the pay player thing is broken, but once I have someone to test new one on I will upload again) and also my "real_time" script which simply sets your in game time to your real and also sets minute duration.

  11. No clue if this is right section, if not please move it? Anyway, I want to suggest a "delete" feature on forums, so users may delete posts from public, or just send them to trash (in case it is racial or something else silly like that.) The reason I really want this is because you can't edit your post to be blank, and on my last post, I accidentally double posted and couldn't just copy and paste into one post. I know it is forums, but it's the little things.
  12. Okay, I just went for col idea and the result was this.. Server Side:. colarea = createColCuboid ( 108.6396484375, 372.48828125, 855, 40, 52, 55) colradar = createRadarArea ( 108.6396484375, 372.48828125, 40, 52, 255, 0, 0, 255) function DME ( thePlayer, matchingDimension ) giveWeapon ( thePlayer, 31, 250 ,true ) outputChatBox("You have entered the DM area, damage is active and you have been given weapons.", player, 255, 0, 0) setElementData( thePlayer, "inDMZone", true ) end addEventHandler ( "onColShapeHit", colarea, DME ) function DML ( thePlayer, matchingDimension ) takeWeapon ( thePlayer, 31 ) outputChatBox("You have left the DM area.", player, 0, 255, 0) setElementData( thePlayer, "inDMZone", false ) end addEventHandler ( "onColShapeLeave", colarea, DML ) Client Side: addEventHandler("onClientPlayerDamage", root, function(att) if getElementData(source, "inDMZone") and att and getElementType(att) == "player" then cancelEvent() end end) Unsure if this will work... But thanks for help guys I made progress if nothing else. Feel free to test it! just set "colarea = createColCuboid ( 108.6396484375, 372.48828125, 855, 40, 52, 55)" to "colarea = createColCuboid ( 108.6396484375, 372.48828125, <Z position here>, 40, 52, 55)"
  13. Not working @pa3ck, My interior is server side and tried to put the client side script in, but doesn't like it. I was going to do a col shape, but that's effort haha, was just wanting it to be, when a player hits first marker, event is triggered/cancelled to allow damage (The outside marker) and when player hits second (interior 0 marker) then the opposite will happens, I can always try put it in a col later Hope that make sense...
  14. Have you looked on community resources? I sometimes use it to get an idea for a script then write my script from scratch based on it.
  15. It doesn't on your map? If not then maybe put a function in to destroyElement(blip) client side after a player has moved a certain distance? I dunno, as I say, new scripter myself.
  16. Okay, as far as I can see you are missing a table from DayZ\init\vehicles\vehicles_init.lua and you are trying to call it to line 279, DayZ\version.lua, it appears you are not actually comparing this with anything (line 64) if you want any further help you'd need to provide the parts of the script with errors.
  17. https://wiki.multitheftauto.com/wiki/Coroutine.resume I don't think it's ACTUALLY needed, but I am unsure.
  18. SetBlipVisibleDistance as I have only been scripting 2 weeks...... There you go! I think that's what you're looking for.
  19. Hello, I am working on a DM zone, I was wondering how I could turn damage on/off on a marker hit as the zone is in an interior, here is what I have so far. (onPlayerWasted will be added once I know how to disable/enable damage.) --server side script function DM_Zone(thePlayer) if (source == DMOut and getElementType(thePlayer) == "player") then setElementPosition(thePlayer, 154.69999694824, 381.70001220703, 905.70001220703) setElementFrozen(thePlayer,false) setTimer(setElementFrozen, 1000, 1, thePlayer, false) getElementPosition(thePlayer, 129.30000305176, 386, 859.20001220703) giveWeapon ( thePlayer, 31, 250 ,true ) elseif (source == DMInt and getElementType(thePlayer) == "player") then setElementPosition(thePlayer, 143.390625, 1875.515625, 17.843418121338) setElementFrozen(thePlayer,false) setTimer(setElementFrozen, 1000, 1, thePlayer, false) takeWeapon ( thePlayer, 31 ) end end addEventHandler("onMarkerHit", root, DM_Zone) it's all working just need to know how to correctly use onClientPlayerDamage / onPlayerDamage on marker hits, it is the only thing I've been struggling with.
  20. never mind, fix you gave worked (I had col out of radar haha) thanks a lot mate!
  21. WARNING: test/AdminZone.lua:95: Bad argument @ 'isObjectInACLGroup' [Expected acl-group at argument 2, got boolean] error.... Here is full code. Area = createColRectangle ( 424.7353515625, 2474.77734375, 43, 43) --line 87 Radar = createRadarArea ( 379.3740234375, 2475.5185546875, 42, -42, 0, 255, 0, 255) function Enter ( thePlayer, matchingDimension ) if (getElementType(thePlayer) == "player") then local account = getPlayerAccount(thePlayer) if (isObjectInACLGroup("user."..getAccountName(account), aclGetGroup("admin") == false)) then -- 95, whereit says there is problem. :/ killPed(thePlayer, thePlayer) end end -- This code checks if the player is in the admin acl group and if not, then kill the player. end addEventHandler ( "onColShapeHit", Area, Enter ) --line 101 There is also one marker, but that just opens 2 gates...
  22. I am trying to make it so that if the player is NOT and admin he will die entering the col shape, but I don't know how to check if it is normal player as all aclGroups that can be players are "Everyone".... I hope that makes it a little clearer I have also tried the following but no luck. Area = createColRectangle ( 424.7353515625, 2474.77734375, 43, 43) Radar = createRadarArea ( 379.3740234375, 2475.5185546875, 42, -42, 0, 255, 0, 255) function Enter ( thePlayer, matchingDimension ) if (getElementType(thePlayer) == "player") then if ( aclGetGroup ( "Admin" ) ) and ( isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(player)), aclGetGroup ( "Admin" ) ) ) then return else killPed ( thePlayer, thePlayer ) end end end addEventHandler ( "onColShapeHit", Area, Enter )
  23. Hey, so I am messing with radar areas but I am having problems with seeing if there is a normal player in it, I thought I could just re use an old script and lay a col square over my radar area, but it doesn't seem to be working. Basically I am trying to make admin zone and put in an event that only applies to normal players and not admins, here's my code. Area = createColRectangle ( 424.7353515625, 2474.77734375, 43, 43) --the col square +1 size because I'm messing with it right now. Radar = createRadarArea ( 379.3740234375, 2475.5185546875, 42, -42, 0, 255, 0, 255) --the radarArea (copied from king of the hill example.) function adminArea ( thePlayer, matchingDimension ) if (getElementType(thePlayer) == "player") then if not ( aclGetGroup ( "Admin" ) ) and ( isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(player)), aclGetGroup ( "Admin" ) ) ) then --is "if not" wrong? What should be here? (I know that it's completly wrong, but gives an idea of what I'm trying to do.) killPed ( thePlayer, thePlayer ) --For testing purposes trying to kill player. end end end addEventHandler ( "onColShapeHit", Area, adminArea ) --Do I need to put in any add ons?
×
×
  • Create New...