Jump to content

AGENT_STEELMEAT

Members
  • Posts

    551
  • Joined

  • Last visited

Everything posted by AGENT_STEELMEAT

  1. Seems I've fixed the problem by logging in via the login form at the bottom of the index page, which is working normally for me. Thanks guys.
  2. Every time I log in to the forums via the login link at the top right, I get logged out after going back to the index page. I can only login when making a new topic. Is it just me? I'm on the latest google chrome.
  3. Version 3.0.1 includes a bugfix related to ped-to-car attachment, and a fix for attaching vehicle to the ramp of a Packer (id 443). Note: The community page lists version 3.0.1 as 1.0.0, I'm not sure why.
  4. SuperGlue is a resource that is almost identical in function to the glue & glue2 resources, but with major code cleanup, some bug fixes, and notifications. Features include: - Gluing yourself to a vehicle - Gluing vehicles to other vehicles - Gluing a vehicle to the underside of your helicopter Future versions will include a more accurate way of determining the closest vehicle, and a small GUI notification system (rather than outputChatBox). Credits go to all original authors of the glue & glue2 resources, as I used some code from those resources in the calculateOffsets() function. Community download: https://community.multitheftauto.com/index.php?p= ... ls&id=2401 This resource goes great with PedoBear: https://community.multitheftauto.com/index.php?p= ... ls&id=2173
  5. Any errors in the console or debugscript? 100th post FTW.
  6. When you have stuff that's outside of a function, it will be compiled.executed while the resource starts. The point of using an event handler is to either accept arguments passed by an event (in onResourceStart, it will pass the started resource's element), or for code readability. There is no performance difference - and if there was, it isn't THAT important as resources don't get started many times (in most cases). You don't have to use getResourceRootElement(getThisResource()), instead, use the global variable resourceRoot that is predefined by MTA. Also, you don't need a handler to use a function. function resStartFunc(startedRes) doSomething(startedRes) end addEventHandler("onResourceStart", resourceRoot, resStartFunc) function doSomething(res) outputChatBox(getResourceName(res).." started!") end The function resStartFunc is executed when the resource starts, and passes on the startedRes argument to doSomething - which in this case outputs the resource's name.
  7. Simple: addEventHandler("onVehicleExplode", root, function() local vx, vy, vz, vrx, vry, vrz = getElementPosition(source), getElementRotation(source); spawnVehicle(vx, vy, vz, vrx, vry, vrz); end)
  8. Not necessarily - your function has 3 arguments, and in the end the scripter is going to have to choose between "ceil" or "floor", the only thing that is slightly more convenient is the decimal option, but for his case he just needs to round to a whole number.
  9. Or, you could use: math.floor(float) --Rounds DOWN to the nearest whole number --or math.ceil(float) --Rounds UP to the nearest whole number Same as what JR10 posted but a little simpler, just depends on whether you want to be a little generous or a little stingy.
  10. I doubt that, I've done similar stuff before on 1.0.5 with no issues.
  11. What are you guys doing? Just make a train serverside, make it move, on use setElementStreamable to ensure all clients have it loaded all the time. It isn't hard...
  12. lol everything is over mtasa wiki, theres no point in helping , castillo is not a scripter, he only knows is to spawn zombies. If you think he helps then check viewtopic.php?f=91&t=33686 . he don't helps at all, just troll shouting over others and attitude as if he made mta Can YOU even script? How about you put your money where your mouth is and amaze us all with your 1337 skills then.
  13. u scripter?? lol u run default zombie apocalypse by "the kid" and call yourself scripter. u just join other community for admin rights and u script hmm... nothing lol And all YOU do is troll in server advertisement topics, only to get yourself banned from the server you claim to be a part of. How about before you criticize other people's work, you go and make something yourself instead of talking out of your ass. Castillo is one of the better scripters here on MTASA - not to mention he helps out on the scripting forums.
  14. Did you edit the code I posted properly? Post your script again.
  15. No - just attach and event handler to each marker, NOT the root element. Then, in your event handler, check if the hit element is the train, then if it is just set the train's speed to 0, play your message, and then set a timer for the depart function. function markerHit(hitElement, matchingDimension) if matchingDimension and hitElement == yourTrain then setTrainSpeed(hitElement, 0) outputChatBox("Your message here") setTimer(depart, 20000, 1) end end
  16. You haven't even created a clientside function for the removeStreamable event you are triggering - it will never work. Also - why are you attach onMarkerHit to the root element? Just attach it to the markers, then you don't need to check the source.
  17. it's setElementStreamable, not removeStreamable - use [lua][/lua] tags!
  18. You need to use setElementStreamable on the trains. Try it with the markers, if necessary.
  19. I already looked at that list, and found nothing. Also, custom animations have been moved to MTA 1.2. Towncivillian - perfect, thanks.
  20. Hey, I was wondering if it was possible to use the hot coffee animations in MTA - since MTA dosent even support the cold-coffee .exe's, all clients (should) have the animation locally (I assume), so is it just a matter of finding the ID? Or have these animations been purposely removed? I know that there was some work on custom animations done, but I figured this would be a little different. BTW, happy sex day! (6/9 2011)
  21. warpPedIntoVehicle was causing network trouble in a MTA 1.1 nightly a week or two ago, but it's been fixed. If you are using a 1.1 nightly, make sure it's the latest.
  22. When the train isn't streamed in on any clients - it stops moving. Therefore, you should use setElementStreamable so that it is always moving.
  23. Have you even tried this on your own? We don't just give out code here, you need to at least make an attempt.
  24. Why not change the image every X number of frames?
×
×
  • Create New...