Jump to content

CodeMaster

Members
  • Posts

    126
  • Joined

  • Last visited

Everything posted by CodeMaster

  1. @XetaQuake I found about thousand gas stations around LV (especially in villages) ^^ If you can get coords please do so If you need I'll release a script I made for myself for gathering them. 1. FIXED 2. FIXED 3. FIXED 4. PENDING 5. PENDING And by a mistake I uploaded it as version 1.0.0 again, but its ok anyways next release will be v2 Please vote for this resource here: https://community.multitheftauto.com/index.php?p=resources&s=details&id=119&vote=5 UPDATED
  2. That is not script bug Stig I had same problem until I reinstalled my GTA, it's a GTA bug which happens when changing gears, as far as I know
  3. Thanks for nice comments @XetaQuake: 1. Will be fixed I'm just right now working on it 2. Well i made it to progress bar just ain't filled and to label says out of vehicle but no problem will be changed 3. As I measured, whole SA (traveling by the rail, measuring with my Distance Traveled script) has 22km, and this depletes 1% per 100m its pretty much enough to travel from city to city but ok I'll change it 4. This is WIP (Work In Progress) so it still has no gas station markers, if you can get me coords of stations it could be done easily 5. It's still WIP and most people take those scripts for fun, without money, but ok I'll add a command for changing it (cost / no cost) @Borov Believe me this ain't usual fuel system, its not on a timer! Vote for this if you like it! Cheers Nidza
  4. Vehicle Fuel Script by CodeMaster[CLOSED] Gonna work with [uVA]Bart on improving his script! Current Version: v1.5 Public BETA As I promised to Vladmo, here it is! My vehicle fuel script. Its based on distance that a vehicle crossed, not on timer, so it works a bit more realistically, but still don't has all the factors what an real engine has (velocity, gear etc...). It's still WIP (Work In Progress), but now refills gas by entering marker on any gas station If anyone could get me coords of ALL gas stations all over the SA that would be great help! Features: - A progress bar, and a text label which represents current level of fuel - Realistic fuel depleting - Stops moving like on real vehicles (won't just remove player from vehicle) - Has gas stations for refilling gas (don't has all gas stations for now, but XetaQuake and [ska]Vladmo are working on that) - Progessbar now hides and shows without bugs! Notice: It won't have empty fuel on a car ever! Every car will have fuel if you have entered it first after respawn or someone didn't depleted it! People who thinks this sucks should try this and reconsider their thinkings! Vote for it on community site if you like the script! UPDATED on 04.08.2007. Fixed bugs spotted by XetaQuake Download: https://community.multitheftauto.com/index.php?p=resources&s=details&id=119 I knew you'll read small letters ^^ Ok then add credits to me if you use it modified! Cheers Nidza
  5. This is a simple script which writes distance which player did traveled by a vehicle. Has no commands for now and comes in two versions : - For Players https://community.multitheftauto.com/index.php?p=resources&s=details&id=118 - For Scripters https://community.multitheftauto.com/index.php?p=resources&s=details&id=117 Will be included in mine "Driver's Toolkit when it arrives. P.S.: Toady if you want edit this and add your version here too, I'd like to see it! Cheers Nidza
  6. CodeMaster

    FileWrite

    As you can see in my thread, I gave up from FileWrite, and passed to XML. XML is more conventional and easier way to store any data Cheers Nidza
  7. Well as far as I know there are no such script... But I'll place it on my query, I'm currently working on vehicle fuel script, so it may be next after that. My Query: - Car Ramming Script (DONE) - Distance Traveled Meter (DONE) - Vehicle Fuel Script (In Development) - Moderator GUI (Waiting) - Drivers Toolkit (Waiting) God I'm full of ideas from requests now. Cheers :fadeout: Nidza
  8. Ok as I promised I'm finishing this vehicle fuel script, but for now its only basic (well still will have realistic fuel depleting system which works on distance traveled), but I will expand it. For now it has a nice fuel progress bar in the corner and a text label which informs you about how much fuel left. This will be added at the end to my "Drivers Toolkit" which will feature my car ramming script, traveled distance meter and this fuel script, and possibly something more, so if anyone has ideas that would be great! Cheers Nidza
  9. Yeah my mistake, didn't read well, I was in a rush Sorry BTW: I made a bit advanced fuel script, I'll release it tomorrow, so you can check it out. This one is working with distance traveled not with time passed so it gives more accurate results
  10. Valdmo Morelli has told you enough... And its normal that wiki uses random values. You can't say open seasame to wiki to it work out the script excatly how you need it! Theres example how its done, but u have to get right coords manually. I made a script for gaining needed coords. I'll ul them later, but everything u need is to get right coords for both states. And you will need some math skills if you want em to be perfectly positioned. Thats all you are gonna need I hope you can gather that I would do it, but I'm busy with another request, so I'll see what can I do later. Nidza
  11. Thanks! I was becoming so desperate that no one will reply Silent is right, people i just need your ideas and etc, and I didn't made this for nothing... I'm trying to update this as fast as I can, but nobody said neither a word, I was about to close this... So please if you like this script your comments, and give me some ideas!
  12. BUMP New version out! Current version: v0.1.2
  13. Ok now... ill change the name if you want to [NON]realistic Car Ramming? ^^ Well i made it because it looks like in movies. And ain't we here to see something a bit different and more interesting than reallife? (Our reallife cars don't explode neither, so don't dream about streets in craters...) Also as I said who hates it can change it with /bLIMIT 1000 and cars would explode only when they are totally damaged as in game's standards. USE variable changing if you don't like something, but its pretty cool to see a car how it bumps from fence and explodes in air falling on their roof. For those who haven't tried this and speak something about this ill make a movie to show you some nice car exploding and crashing actions. So please don't add nonconstructive comments if you haven't tried this! I would more appreciate some ideas... (I use bold to make you pay attention ^^) Nidza
  14. BUMP New version out! Current version: v0.1.1
  15. I'm not sure but I think u missed, this is MTA:SA DM support area not race. Try again, on right place.
  16. I made that easily on SA-MP, not sure will I be able on MTA, but I'll try because i think it will be easier on lua script sys. If I make any progress ill release it and give here a link, but currently I'm working on Car Ramming script, and if you are making an RPG server that might be useful to you. Cheers Nidza
  17. Thanks for supporting me cazomino And yeah hankey i know that, but it makes some more fun from that because it would be stupid if player would only be slayed while he is normally sitting and acting like nothing happened. And it becomes realistic, when u crash that hard so car jumps of fence or what and explodes in air. Ill add blowMax variable, so if u hate that option with some insane number u can remove it. I'm working on update today, and if there's someone who is interested to develop it with me say it, but also nice ideas are pretty much helpful. BECAUSE this is not only with that kinds of crashes, it will be more realistic, when I add crashes from air when u simply jump. As I mentioned before this is only BETA! Its used just to keep my idea original on MTA (idea is from the SA-MP, actually i had same but somebody did it before me) and leave me some time to work. Anyway keep on advising me because this is really useful for me to make updates! Thanks for comments Nidza
  18. Realistic Car Ramming by Nidza aka CodeMaster Current version: v0.1.2 This script damages player's healths if he crashes, and allows them to slowly regenerate, while a harder hit will make car explode which will actually happen if you did same in real life. Would be pretty useful on some RPG servers. IMPORTANT NOTE: This is BETA version, so normally it ain't perfect yet. Few things to what its vulnerable: - Gun shot heavily damages player too - When it lands from high air it doesn't damage - If player uses admin panel to spawn himself in car, damage don't apply. Added: - Variable changing - Damage multiplier - Pre-defined values for race and regular games - When player dies, he can't move anymore - If player is in car during carRam restart, damage will still apply Commands: (will have changed names in later releases!) - mDMG - set minimum damage counted - bLIMIT - set blowing limit - multiplier - set HP damage multiplier - changeDMGmode - set damage mode - race - regular This is currently for TESTING purposes and it is not here to work like its released. Expect a full release soon and join me with this, or leave your commentary about what I should add, or what have I missed. This is my first released script so please be constructive with your commentary. Download: https://community.multitheftauto.com/index.php?p= ... ils&id=113 Please comment my work, and advise me what should I change! Enjoy Nidza
  19. Ok lately tonight i managed to find it, but wasn't able to write it (forgot to write it). So the problem is now [sOLVED] The final code is (for those who wants to use it as XML coords writing framework): function loadScript(startedResource) if startedResource == getThisResource() then outputChatBox("MapMaker loaded...") outputConsole("MapMaker loaded...") end end addEventHandler("onResourceStart",getRootElement(),loadScript) function addLoc(playerSource) local rot = getPlayerRotation(playerSource) local posx,posy,posz = getElementPosition(playerSource) posNode = xmlLoadFile("Positions.xml") if posNode then local subnode = xmlCreateSubNode(posNode,"spawnpoint") xmlNodeSetAttribute(subnode,"posX",tostring(posx)) xmlNodeSetAttribute(subnode,"posY",tostring(posy)) xmlNodeSetAttribute(subnode,"posZ",tostring(posz)) xmlNodeSetAttribute(subnode,"rot",tostring(rot)) xmlSaveFile(posNode) xmlUnloadFile(posNode) outputChatBox("Saved 1") else posNode = xmlCreateFile("Positions.xml","positions") local subnode = xmlCreateSubNode(posNode,"spawnpoint") xmlNodeSetAttribute(subnode,"posX",tostring(posx)) xmlNodeSetAttribute(subnode,"posY",tostring(posy)) xmlNodeSetAttribute(subnode,"posZ",tostring(posz)) xmlNodeSetAttribute(subnode,"rot",tostring(rot)) xmlSaveFile(posNode) xmlUnloadFile(posNode) outputChatBox("Saved 2") end end addCommandHandler("saveloc",addLoc)
  20. Hankey's first example was written without testing and I followed it blindly Anyways thanks for the help of all of u, and Hankey thanks for pastebin code, i didn't spotted it... EDIT: I forgot xmlSave too EDIT 2: It writes only one line or replaces the same... http://mta.pastebin.com/d6504e355
  21. Well the good thing for scripters in MTA is /windowed could come handy to you guys I'm having MTA:DM on while writing this
  22. Maybe its usage of Windows Vista, or there was some errors like game won't show up dynamical menu. Any more clues could be useful to us to find solution. Also PC configuration will help us too to see what is the problem, performance or game.
  23. CodeMaster

    Freeroam

    Yeah you are right. My mistake, but I didn't used createvehicle because I had admin panel on, and I used fr gui and it still worked normally.
  24. Sorry for slow response (was preparing for exams), I have changed code to use XML. function loadScript(startedResource) if startedResource == getThisResource() then outputChatBox("MapMaker loaded...") outputConsole("MapMaker loaded...") end end addEventHandler("onResourceStart",getRootElement(),loadScript) function addLoc(playerSource) local rot = getPlayerRotation(playerSource) local posx,posy,posz = getElementPosition(playerSource) posNode = xmlLoadFile("Positions.xml") if posFile then local subnode = xmlCreateSubNode(posNode,"spawnpoint") xmlNodeSetAttribute(subnode,"posX",tostring(posx)) xmlNodeSetAttribute(subnode,"posY",tostring(posy)) xmlNodeSetAttribute(subnode,"posZ",tostring(posz)) xmlNodeSetAttribute(subnode,"rot",tostring(rot)) else posNode = xmlCreateFile("Positions.xml",positions) local subnode = xmlCreateSubNode(posNode,"spawnpoint") xmlNodeSetAttribute(subnode,"posX",tostring(posx)) xmlNodeSetAttribute(subnode,"posY",tostring(posy)) xmlNodeSetAttribute(subnode,"posZ",tostring(posz)) xmlNodeSetAttribute(subnode,"rot",tostring(rot)) outputChatBox("Saved") end end addCommandHandler("saveloc",addLoc) But from line 20 to line 25 there is Bad argument error. how can I fix it?
  25. CodeMaster

    Freeroam

    I used to do this way: start broph start fr That should do that. And that is pretty similar to freeroam, but broph enables some kind of "cheats" but if thats no problem for you its ok. But if u want to start any particularly gamemode use: changemode <modename> <map> start fr Example: changemode cdm cdm_ls start fr
×
×
  • Create New...