Jump to content

BartiCoderNoob

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by BartiCoderNoob

  1. BUT, if it is possible to run every mission by command, there is no need to save anything. Obviously I don't want to implement everything, I consider to resigne to gang wars, RC missions and this small things.
  2. Hello World, having been playing a lot of different GTA games, for about 3 years on many different SAMP and MTA servers with friends. Including going through the GTA story line many times . I thought that it would be a great variety to create a possibily of two players going through the whole story line together. I searched the internet to find a solution. I came across a user NewbProgramming, who wrote on the forum that he wants to do something similar. However I do not know the progress in his project. I decided to take matters into my own hands and write such a script myself at LUA. There is a lot of work involved, but if anyone knows a tool that could help me, then please contact me on this forum, maybe there is a script that will automatically convert the singleplayer code to MTA LUA? Here is my ideas, how to match missions into two players mode: and here is a little bit changed story line: and here are my scraps of code which i wrote to this time: I hope you like it If you are interested in or want to help somehow, leave a sing
  3. Oh finally, thank you Enargy
  4. It looks like it should work, but it doesn't, don't knowing why Maybe we could do something with "matchingDimension"?
  5. Saddly, it doesn't My scraps also dont work: addEventHandler("onMarkerHit", getRootElement(), function( player, matchingDimension ) if ( player == mFirstMis ) then destroyElement( mFirstMis ) destroyElement( bFirstMis ) end end)
  6. But, what if I want to destroy a marker by hit in it? I just wrote something like this, but it works only when i hit it with bike and "bFirstMis" does not desapear addEventHandler("onVehicleEnter", root, function ( player ) if ( source == Bike1 ) then destroyElement( mBike1 ) mFirstMis = createMarker ( 2495.2, -1687.3, 12.5, "cylinder", 1, 255, 0, 0, 255 ) bFirstMis = createBlip ( 2495.2, -1687.3, 12.5, 15) end end) addEventHandler("onPlayerMarkerHit", getRootElement(), function( mFirstMis, matchingDimension ) if (matchingDimension) then destroyElement( mFirstMis ) destroyElement( bFirstMis ) end end)
  7. O DUUUUUDE YOU ARE MY GOD FROM NOW!! IT WORKS!!
  8. if you just changed (element theMarker) into (therMarker) it does not work at all
  9. I have the ambition to write all the missions from GTA SA on the MTA server for two people, but I can not write scripts very well yet. What I was able to write is that after entering the server, a bike appears with marker [where the first mission in SA]. Now I wanted after entering the bike, the marker disappeared. Here are my scraps that absolutely do not work. Could someone give me a helpfull hand? meta.xml <meta> <info author="Barti" title="missions" version="0.1"/> <script src="missions.lua" type="server"/> <cop>true</cop> </meta> missions.lua local x1, y1, z1, rx1, ry1, rz1 = 2243.2, -1263.2, 23.5, 0, 0, 270 -- I set the coordinates of the vehicle's spawn addEventHandler ( "onPlayerJoin", getRootElement(),function() local Bike = createVehicle ( 481, 0, 0, 0 ) -- set the type of vehicle setVehicleColor( Bike, 88,142,110 ) -- set the color spawnVehicle( Bike, x1, y1, z1, rx1, ry1, rz1) local spawnVeh = spawnVehicle ( Bike, x1, y1, z1, rx1, ry1, rz1 ) -- spawns the vehicle local xb1, yb1, zb1 = getElementPosition ( Bike ) -- taking the vehicle's coordinates local theMarker = createMarker ( xb1, yb1, zb1, "arrow", 0.4, 255, 255, 0, 170 ) -- create a marker over the vehicle attachElements ( theMarker, Bike, 0, 0, 1.5 ) -- that is attached to it local driver = getVehicleOccupant (source) -- wanted to read if someone is sitting on the bike if driver then -- and if he is sitting destroyElement(element theMarker) -- destroy the marker end end)
×
×
  • Create New...