Jump to content

50p

Retired Staff
  • Posts

    2,973
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by 50p

  1. Why do you ignore what I told you to do? I also told you to read AdiBoy's post CAREFULLY... Why did you put type="map" to "script" node when his post clearly says info node? Refresh the resource every time you make changes to it.
  2. What's the carCount? If it's the number of vehicles you spawn, then: Why do you change car[carCount].car to the vehicle which you select (replaces the last vehicle in table to the one you select)?
  3. Line 2, selid is nil unless you have such global variable. I'm wondering how those first 4 vehicles worked if the if car[num] will never pass.
  4. You can install XAMPP on the same computer as your MTA server. XAMPP installs an Apache server and MySQL. It's easy and quick to set up. You don't need to run Apache to use MySQL, you can run MySQL server independently. In Lua script when connecting to the server, use the same IP as your server IP. I wouldn't recommend you try and do these things because I'm 99% sure you'll be back asking question not related to MTA but MySQL. Before you use MySQL module for MTA you should learn more about how it all works. You'll find everything on google.
  5. I couldn't test it for some reason. Though I test every script before I release. At least I can see people use the script Thanks for spotted typos AdiBoy, they'll be corrected in next release.
  6. Oh, I thought it was generating with 'src'. Sorry for little "bug". Anyway, good to hear you found out what the problem was. If you'll use this script very often, then I suggest you modify the Max script rather than meta.xml every time you generate new meta.xml or re-download the script. Here is the solution, in case you decide to fix it yourself: Open MapExporter.ms script with notepad and replace lines 88 and 89 with these 2 lines: format "\t<file src=\"%.dff\" />\n" obj.name to:metaXML; format "\t<file src=\"%.col\" />\n" obj.name to:metaXML;
  7. 50p

    Speedmeter clock

    You get speed with getElementVelocity. This function returns 3 values (x, y and z) which indicate speed on each axis. If you want to calculate actual speed, you have to 1. Multiply these 3 values by themselves 2. Add them new values up 3. Square root the value you get from adding the new 3 values 4. Multiply new value by 100 or 160 to get actual speed You can also use getElementPosition and getDistanceBetweenPoints3D to get the distance you travelled between last and current frame (onClientRender calls). I find it cleaner and quicker to use the first method. So, like varez said, simpler would be to copy 2 functions from speedometer resource which do exactly what I explained here.
  8. Show me your new meta.xml then. As you may know, meta.xml file tells server which files each resource use. If there is no map in meta.xml, then server doesn't even know the file is there.
  9. 50p

    Image in 3D World.

    You don't need .dffs. They are models. You want to replace a texture of an existing model (which is a spray tag or billboard). Unless you want to make your own model. You need to learn a little about modding GTA before you start making your own content for MTA. And this is the place you are after: http://www.gtaforums.com/ TXD Workshop or G-TXD are the main programs for making texture files for GTA.
  10. Unfortunately, MTA has stopped working for me after installing new graphics card I've tried almost everything to try and fix it... I asked on IRC but without luck. So I have to disappoint you but I am not able to check your resource. But I'll download your resource and check if anything is wrong. EDIT: I'm not sure (since I can't test it) but I think the problem is that map is not added to meta.xml. So, add this to your meta.xml: <map src="qube.map" /> Did you modify meta.xml or is it how it was generated with my Max script?
  11. ok, I understand that but where do I "piraterpg.money" places? I have explained it to you in the previous post Read some more about accounts... https://wiki.multitheftauto.com/wiki/Account
  12. 50p

    Image in 3D World.

    You create object with replaced texture. Usually these are gang spray tags or billboards.
  13. No, this is a bug. Not 100% sure if GTA's bug though. It also happens when player walks on custom models (can't remember if it's due to wrong collision data or vertex colour). All you can do is spawn the ped on the ground and move him where you want him to be. As you mentioned, it makes ped lit properly since he/she first touches the ground.
  14. When you killTimer, it doesn't change value of the timer variable passed to killTimer, so you have to destroy the variable when you kill timer, for instance: ... killTimer( robbank ); robbank = nil; -- destroy variable ... It will prevent isTimer from returning true when timer is killed. There is more bugs in your code which I want you to try and fix them yourself... I'll just point them out and suggest you how to make code more simple: - Your robbank table is overridden with timer variable (setTimer) - solution: store timer in robbank table with player element as table index - Whenever player press "x" it will change robbank variable to a new timer - solution: - instead of checking if variable is timer, simply unbindKey to stop players from calling rob function after they called it once - When you leave the marker, unbind the key - solution: add function to onMarkerLeave event and unbind the key in that function - (A few more bugs which I forgot about when I was typing about the bugs above --> tired )
  15. The piraterpg.money is just a data key/identifier. Account data is saved in "\accounts.xml". Wiki should explain it clear enough. "piraterpg." is added at the from of the key to make it more unique so that if other resources would replace "money" your money would not be overwritten since it's not saved as "money" but "piraterpg.money".
  16. I'm not sure if I understood your correctly. My script generates Lua script (which replaces the models included in the resource it creates and adds a /reload command) and meta.xml (which includes paths to .dff models). So your custom content should be inside the map resource generated by Max script. Check meta.xml to see paths of models that are included with the resource which my script generates.
  17. When events are being fired intra-resource across server-client, you almost have to declare it on the receiving side... Unless I've missed something major and you can actually add events for "the other side", but that makes little sense. To me it makes no sense if each resource need to add new event (which was already made by other resource). If you add an event, it should be accesses from all resources... I don't know why but addEvent sometimes solves the problem of events not being triggered, "sometimes" because usually it's scripter's fault when attaching events to wrong elements but in this case root element is correct.
  18. I'm sorry for not replying. My PC broke last week and have just got new graphic card. Anyway, if you want to see your custom map in map editor, you need to make new resource.. Well, this script almost makes the resource for you because it generates meta.xml, Lua script and a map file. All you need to do is export all the models separately to .dff. Just make new folder and export your map to that folder. I'm working on a new version of this script which will export models to .dff as well with use of KAM's script. I still can't figure out how to export .col because Kam encoded his collision exporter and I don't know what functions it has that I could use... I can't even get in touch with him since he hasn't got a PC and last time he was online was 4 years ago (when he released his Max scripts) I need your suggestions for next release. I want to export map so that you won't have to use map editor to place your objects. Currently, it looks like this: http://i42.tinypic.com/w0ku4i.png How would you like it to work? Any suggestions?
  19. You can't replace CJ's clothes. You can replace all skins but CJ. Unless there is something changed I have missed over last few weeks.
  20. Add this above addEventHandler, if it still doesn't get triggered: addEvent( "onZombieWasted" );
  21. It just requires more thinking. This is all basic math..
  22. 50p

    Anti-S0beit

    Care to describe how you "detect" it?
  23. Every game has different units system, not necessarily real world units. To me, GTA uses meters (1u = 1m). That's also what I used in speedometer resource.
  24. Where is your playerSkins? To me, it looks like playerSkins is the problem maker.
  25. I will not tell you the same thing multiple times but GetPlayerName does NOT exist, there is getPlayerName... Forget about SA-MP. ALL MTA's function names start with lower case letters.
×
×
  • Create New...