Jump to content

Evildropbear

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by Evildropbear

  1. Hi, is it possible for everyone who connects to my server to get a custom default.ide? I want to enable the skateboard for my server like this: http://www.thegtaplace.com/forums/topic ... iscovered/
  2. Hey Wasn't exactly sure where to put this topic, but in Mods/Deathmatch there should be a mtaserver.conf file right? Or has the need for this file been removed in later versions? I don't have one
  3. Hi guys I'm trying to recreate a stadium using the a prebuilt interier resource I found on this site, except the stadium appears to have invisable barriers that I can't figure out how to remove. <object posX="-1398.460938" posY="995.640625" posZ="1024.460938" rotX="0" rotY="0" rotZ="0" model="13612" id="object20" /> - nobarrier <object posX="-1292.367188" posY="1030.59375" posZ="1035.601563" rotX="0" rotY="0" rotZ="0" model="13611" id="object19" /> -also no barrier <object posX="-1398.460938" posY="995.640625" posZ="1024.460938" rotX="0" rotY="0" rotZ="0" model="13612" id="object20" /> <object posX="-1292.367188" posY="1030.59375" posZ="1035.601563" rotX="0" rotY="0" rotZ="0" model="13611" id="object19" /> Put the two together and an invisable barrier appears, you can drive around just like in the stadium although the pieces arn't there. Anyone know how to remove this annoyance?
  4. Yeah but I meant specifically for that file Would it just be: <meta> <info author="Evildropbear" version="1" name="script" description="Loads co-ordinates from map" type="script"/> <script src="script.lua" type="server"/> </meta> If I use that, and then type in the console 'gamemode myserver mymap' nothing happens Since the files are practically copied straight out of the wiki, I can't really see what might be wrong with them, but I'll post them anyway. mymap.map <map> <spawnpoint id="spawnpoint1" posX="-1986.1390" posY="-1282.9088" posZ="23.9697" rot="63.350006103516" model="0"/> </map script.lua function loadMap(startedMap) mapRoot = getResourceRootElement(startedMap) end addEventHandler("onGamemodeMapStart", getRootElement(), loadMap) function joinHandler() local spawn = getElementsByType("spawnpoint", mapRoot) local x,y,z,r for key, value in pairs(spawn) do x = getElementData(value, "posX") y = getElementData(value, "posY") z = getElementData(value, "posZ") r = getElementData(value, "rot") end spawnPlayer(source, x, y, z) fadeCamera(source, true) end
  5. Hello I'm new to scripting, but wanted to try and see how far I could go scripting my own server. I've been following the wiki for most of it, and currently I'm stuck figuring out how to make the default spawn. I'm following this page: https://wiki.multitheftauto.com/wiki/Resource:Mapmanager Its pretty straight forwards until: Does this mean I have to make the script.lua resource? Or edit an existing one? If I have to create a new one, the wiki says nothing about how to create the meta.xml for it.
  6. Thank you, this is awesome, saw it on another server once where I had so much fun with it. I'm not a scripter myself, but I was wondering if I could request a small modification from somebody. If left alt spawns a ramp infront of the player depending on which angle he is facing, would it be difficult to modify the script so that another key could be binded to spawn a ramp infront of the player, but have the same Y axis. (so that e.g. if your in the air on a bike angled upwards, the ramp doesn't spawn above you) Even if my request is ignored thanks for the script again.
×
×
  • Create New...