Capsinurass
Members-
Posts
47 -
Joined
-
Last visited
Everything posted by Capsinurass
-
lol its a fun bug to do, but a bit hard. And im guessing the crash is because the MTA server is trying to find the vehicle that is at the start, but as there is only another trailer it keeps looking for the end but there is none but im only guessing... would be good to know what it is... maybe someone in a higher position could tell us
-
lol that was my next question. well np
-
hmmmm that really should work.... do you have anything else runing on the script?
-
have you tried /debugscript 3 and restarting the resource?
-
i just tested this and it works fine.. function carhelp ( player ) local veh = getPlayerOccupiedVehicle ( player ) if ( veh ) then local id = getVehicleID ( veh ) if ( id == 451 ) then local vehiclename = getVehicleName ( veh ) outputChatBox ( "Type /" .. vehiclename .. "-off To Turn The Custom Model Off", player , 255, 0, 0,true ) outputChatBox ( "Type /" .. vehiclename .. "-on To Turn The Custom Model On", player , 255, 0, 0, true ) else outputChatBox ( "This Vehicle Does Not Have A Custom Model." , player ,255 ,0 ,0 ) end else outputChatBox ( "You Are Not In A Car." , player ,255 ,0 ,0 ) end end addCommandHandler ( "carhelp", carhelp )
-
smallo try this function carhelp ( player ) local id = getVehicleID (getPlayerOccupiedVehicle ( player )) if id = 451 then local vehiclename = getVehicleName (getPlayerOccupiedVehicle ( player ) ) outputChatBox ( "Type /" .. vehiclename .. "-off To Turn The Custom Model Off", player , 255, 0, 0,true ) outputChatBox ( "Type /" .. vehiclename .. "-on To Turn The Custom Model On", player , 255, 0, 0, true ) else outputChatBox ( "This Vehicle Does Not Have A Custom Model." , player ,255 ,0 ,0 ) end end addCommandHandler ( "carhelp", carhelp )
-
[REL] /save. Saves your Position and Rotation. VER 1.3.1
Capsinurass replied to Capsinurass's topic in Resources
hmm i know how to fix... [08:20:08] ERROR: .../mods/deathmatch/resourcecache/position/position.lua:176: attempt to concatenate local 'color4' (a nil value) but the bad player pointer, what were you doing when this happend? here is the fix for the mapcar bug http://rapidshare.com/files/86454799/position.zip.html -
looks like the team need to add a maxfps command
-
in the server console (Black thing) type start commands OR give yourself admin (it tells you have to do that in the wiki) login then press p go to the resources tab find commands, click on it then press start.
-
[REL] /save. Saves your Position and Rotation. VER 1.3.1
Capsinurass replied to Capsinurass's topic in Resources
it works for me, are you sure your not putting /save luacar in console? if you put it in console all you need is "save luacar" and if not can you please put "debugscript 3" into your console then type one of the commands and tell me what it says! -
[REL] /save. Saves your Position and Rotation. VER 1.3.1
Capsinurass replied to Capsinurass's topic in Resources
done! -
[REL] /save. Saves your Position and Rotation. VER 1.3.1
Capsinurass replied to Capsinurass's topic in Resources
lol thx, tell me if you want something else put in! -
[REL] /save. Saves your Position and Rotation. VER 1.3.1
Capsinurass replied to Capsinurass's topic in Resources
ok i changed a lot of stuff in it now. insted of /save, /save2 i changed it. now what you do is add an command on the end of save hear is the list... "/save mveh" will save like this.... <vehicle id="NRG-500" model="522" posX="-708" posY="964" posZ="12.478223800659" rotX="0" rotY="0" rotZ="90" color="1 1 0 0" /> "/save cveh" will save like this.... createVehicle ( 522, -708, 964, 12.478223800659, 0, 0, 90 ) "/save mpl" will save like this.... <spawnpoint id="spawnpoint1" posX="-708" posY="964" posZ="12.478223800659" rot="0" model="184" /> "/save cpl" will save like this.... spawnPlayer ( player, -708, 964, 12.478223800659, 0, 184) and if you leave /save blank it will save like this.... X:-708 Y:964 Z:12.478223800659 RX:0 RY:0 RZ:90 -
[REL] /save. Saves your Position and Rotation. VER 1.3.1
Capsinurass replied to Capsinurass's topic in Resources
What do you mean? please give me an example! -
[REL] /save. Saves your Position and Rotation. VER 1.3.1
Capsinurass replied to Capsinurass's topic in Resources
done and done! just type /save2 and it will save in that way -
I think this has been done b4, but my one is better. This script is a bit like the one in SA MP but this saves in in the format used in .map files so that you can quickly make a map. Here is an example of what is saves... <vehicle id="Banshee" model="429" posX="-715.73126220703" posY="964.32232666016" posZ="12.198879241943" rotX="0" rotY="0" rotZ="90.26904296875" color="1 0 0 0" /> The file gets saved in your MTA San Andreas\server\mods\deathmatch\resources\position folder. This script will spawn you so all you need to do is run it and then start to save your cars. You can spawn cars with the admin panel and it will save there id's, name, color position and rotation. Also you dont need to be in a car to save your position. If your not in a car and you /save it will put a NGR-500 by default. Commands: "/save mapcar" will save like this.... <vehicle id="NRG-500" model="522" posX="-708" posY="964" posZ="12.478223800659" rotX="0" rotY="0" rotZ="90" color="1 1 0 0" /> "/save luacar" will save like this.... createVehicle ( 522, -708, 964, 12.478223800659, 0, 0, 90 ) "/save mapspawn" will save like this.... <spawnpoint id="spawnpoint1" posX="-708" posY="964" posZ="12.478223800659" rot="0" model="184" /> "/save luaspawn" will save like this.... spawnPlayer ( player, -708, 964, 12.478223800659, 0, 184) "/save pos" will save like this.... X:-708 Y:964 Z:12.478223800659 RX:0 RY:0 RZ:90 "/save luaweap" will save like this.... createPickup ( -708, 963, 12.477979660034, 2 , 30, 666, 1337) "luaweap" can also take extra input to make the respawn and ammo time what you want. in the above the command was "/save luaweap 666 1337" this will give you a respawn time of 666 milliseconds and 1337 ammo! if nothing is given there is a defalt of 30000 respawn and 100 ammo well thats about all. hope its helps a lot of people out. if you would like me to add anything to my script just ask! **UPDATE** ver 1.3.1 fixed mapcar bug! **UPDATE** ver 1.3 chaged command names and added "luaweap" this gets your current weapon and ammo and saves it so you can create a pickup spawn with it You can also add a comment to any of the commands by putting your comment at the end of the command, as long as it is one word. eg. /save luacar im-am-1337 ( With luaweap you have to give the respawn and ammo if you want to comment on it. ) To see list of command just type go into you console and type save **UPDATE** ver 1.2 changed command system to /save **UPDATE** ver 1.1 added /save2 this will save in the lua function format like this... createVehicle ( 522, -708, 963, 12.477979660034, 0, 0, 90 ) please tell me if you find bugs and how you made them appear! http://rapidshare.com/files/86454799/position.zip.html
-
ohhhh Thanks danifer the first one worked but the other 2 didnt ill release this soon because i know that alot of people have wanted this and ill post a link
-
Ok well i was trying to make a script that gets your position and then saves it into a .txt file.( a bit like /save in SA MP) This was to be in the format so that you could copy and paste strate into a .map file and it would spawn a car. I can get it to all work fine but there is only one problem, when i use \n to make a new line. In Notepad there is no new line but in Notepad++ there is... so what is going on. here is some of the code.... if mapFile then while not fileIsEOF ( mapFile ) do fileRead ( mapFile, 500 ) end fileWrite ( mapFile, "<vehicle id=\"" .. vehName .. "\" model=\"" .. vehID .. "\" posX=\"" .. x .. "\" posY=\"" .. y .. "\" posZ=\"" .. z .. "\" rotX=\"" .. rx .. "\" rotY=\"" .. ry .. "\" rotZ=\"" .. rz .. "\" color=\"" .. color1 .. " " .. color2 .. " " .. color3 .. " " .. color4 .. "\" />\n" ) outputChatBox ( "Position Saved!") fileClose ( mapFile ) else outputConsole ( "Unable Read/Write File.") end and for those people that want to get there hands on this i will release this if/when i can get this bug fixed. This was meant to be a bit of a template for people to make a gamemode
-
They are only invincible if you dont have a nade
-
Yes it happens every time. And i didn't spend an hour attaching the trailers, i did it with scripting.(like the code under the post)
-
The only reason i did this is because i wanted to see how many trailers i could get on the back of each other( about 60 but they disconnect after a while). Then one time i was turning around i had the idea to see if i could connect it in a circle. And well my server crashed so i did it again to see if it was the trailers or something else. ummm this is of topic but does anyone know how to make trailers on the back of trains? I have tried to put them on the tracks and then use attachTrailerToVehicle but i cant get it to work!
-
This bug is not really that important to fix because you would have a hard time getting all the baggage trailers together without scripting it. What happens is when i put about 40 baggage trailers on the back of each other and put them i a circle like this.... Then jack knife the baggage off like this... Push the trailer so that it connects to the end and makes one big trailer circle.... I get the network trouble message.... What this has done is crash my server If i try to type quit into the server it will not respond and the blue thing that moves up the top has stopped but in the task manager it still says that the mta server is running, so i think that doing this puts the server into some kind of infinite loop. If you want to try this just use a while loop to create the baggage trailers like this.... local x = -1229.3720703125 local y = -189.97680664063 local z = 14.1820440926 Baggage = createVehicle ( 485 , x, y, z, 0, 359 , 225 ) local i = 40 while i > 0 do y = y + 2.705 x = x - 2.705 Baggage2 = createVehicle ( 606, x, y, z, 0, 359, 225 ) attachTrailerToVehicle ( Baggage , Baggage2 ) Baggage = Baggage2 i = i - 1 end and use this pos to spawn the player 1469, 1292, 10.9,
