Jump to content

[DKR]silverfang

Members
  • Posts

    88
  • Joined

  • Last visited

Everything posted by [DKR]silverfang

  1. *cough* http://development.mtasa.com/index.php? ... ng_the_GUI *cough* Check the wiki before you come here asking us, it gets a bit tedious when all our answers consist of a link to the wiki just check it out, it's your holy book when it comes to scripting... http://development.mtasa.com/
  2. Cheers, but none of these suggestions seem to work... Any other suggestions? EDIT: I'm not entirily sure that I downloaded the correct directX run times, if someone would give me a link that'd be super... EDIT2: Also I get the same thing happening when I try and run MTA race... If that helps at all... Thanks again.. EDIT3: Thanks for the help guys, it's all sorted now, just a simple mistake... Cheers again...
  3. Major problem with MTA:DM 2.3 Right I have recently downgraded from Vista to XP (At Bloody Last)... I have reinstalled GTA:SA and MTA:DM 2.3, I can play GTA:SA fine (it works as it did before but faster!!) but now MTA won't run on my PC, it comes up with the 'stop playing with yourself' screen then the whole screen goes black for a second or two then returns to the desktop. Anyone know of any solutions, or why this might be happening? Thanks Silverfang
  4. Maybe have a map file that saves the cars as objects so they are damage proof, it'll take a lot more coding though...
  5. Using your code I would do... first = createMarker ( 0, 0, 0, "cylinder", 1, 0, 255, 0, 125, getRootElement() ) second = createMarker ( 0, 5, 0, "cylinder", 1, 0, 255, 0, 125, getRootElement() ) third = createMarker ( 0, 10, 0, "cylinder", 1, 0, 255, 0, 125, getRootElement() ) function park_Example ( hitPlayer, matchingDimension ) if source == first or source == second or source == third then local myCar = getPlayerOccupiedVehicle ( hitPlayer ) if myCar then setVehicleEngineState ( myCar, false ) end end end addEventHandler ( "onMarkerHit", getRootElement(), park_Example ) Hope this helps, silverfang
  6. Copy of the code so we can see where it might go wrong?
  7. Have you set the vehicleDamageProof in a client or server script, if client then it'll obviously unset when the client leaves the server
  8. Well firstly, if this code is ripped straight from your resource then it wont load as you have missed out an 'end' for the if statement secondly use if source == first or source == second or source == third Hope this helps
  9. The map files for race and the map files for Death Match are in different formats... You will need to convert it from Race to DM for it to work with DM... Hope this helps
  10. only that it will take longer to load than the map... (the more objects you have the bigger the difference) And as you had it before (or still I don't know) it would only load for each client meaning it would have to be called for each player separately meaning lag for each player when they join the server rather than just once (very slightly) for when the resource starts...
  11. That's what I would do, or alternativly do setTimer ( spawnPlayer, 3000, 1, source, spawnX, spawnY, spawnZ ) in the place of the other timer
  12. It's better practice to add objects to a .map file... Also creating objects client side only creates them for the client...
  13. Dude please copy all your code into a code format because it's really hard to read code unless it's formatted properly example: function onResourceStart() players = getElementsByType ( "player" ) for index, player in ipairs(players) do spawnPlayer ( player, x, y, z ) fadeCamera ( player, true ) end end addEventHandler ( "onResourceStart", getRootElement(), onResourceStart ) is easier to read then: function onResourceStart() players = getElementsByType ( "player" ) for index, player in ipairs(players) do spawnPlayer ( player, x, y, z ) fadeCamera ( player, true ) end end addEventHandler ( "onResourceStart", getRootElement(), onResourceStart ) use : [ c o d e = l u a ] --code here [ / c o d e] without spaces.. BTW the function should help with one of your problems...
  14. But if you set up a table with all of the vehicles you want the buttons disabled for then only those vehicles will be unable to use nitro, and besides none of the vehicles really benefits from nos anyway. Also you wouldn't be able to use the hoses on the firetruck or swat truck...
  15. Thanks it works perfectly, just taking a little while to download... Cheers.
  16. Right guys, I have been having trouble with the development wiki and google gears for some time now. Every time I try and download it through google gears I get the same (I think) error, I have tried it on, crome, firefox, and IE :shiver: The error is as follows: Error: Download of 'http://development.mtsa.com/index.php?title=D%C3%85%C2%BAwi%C3%E2%84%A2ki' failed, status code 500 Please help, cheers
  17. 3. Yeah you'd think that'd be the first step 9. Nope, just for our server. 11. Yeah he's a bit hopeful isn't he...
  18. Running DP2 as it's a public server... I think the problem is with the source, as I get similar errors on a onVehicleDamage function.
  19. Right here's the bit of code function destroyVehicle () interior = getElementInterior ( source ) --outputConsole("interior: "..interior) if interior == 15 then destroyElement(source) end end addEventHandler("onVehicleExplode", getRootElement(), destroyVehicle) Before I commented out the outputConsole bit I kept getting errors "Attempt to concentrate interior (A boolean Value)" What I don't understand is why the line interior = getElementInterior ( source ) is returning a false value as the vehicle is the source of the event "onVehicleExplode" Cheers for your help and time
  20. I can't help thinking you went into loads of servers and went, "Yup that's nice I'd like a bit of that, oh that looks fun I'll have that...." (and so on) to become a successful server you need things that no other server has, otherwise you'll be stuck at the bottom and you wont have many people on your server. Good Luck and Welcome to the world of scripting, you'll get to enjoy it when you pass the overwhelming stage of getting started.
  21. Also for 3 is the job not supposed to be a string? instead of cop it should be "cop" as I can't see that you have declared cop anywhere... Good Luck and welcome to the world of scripting.
  22. function loginWindow ( ) loginGui = guiCreateWindow ( 300, 250, 500, 350, "test gui", false ) CloseGui = guiCreateButton( 0.60, 0.90, 0.30, 0.05, "close", true, loginGui) showCursor ( true ) addEventHandler ( "onClientGUIClick", CloseGui, guiExit ) end function guiExit ( button ) guiSetVisible (loginGui, false ) showCursor ( false ) outputChatBox ( "test" ) end addCommandHandler ( "test", loginWindow ) Personally I add the Event Handlers for any GUI Element in the function that it was created, as if it's done outside of a function it's loaded with the resource and sometimes (such as this case) the GUI element hasn't been created yet...
  23. Have you done the addEvent("onPlayerArrest", true) bit yet??
  24. Haha, it's unbelievable how long I try and debug a script and all it is, is a damn type. Cheers
×
×
  • Create New...