Jump to content

OffRoader23

Members
  • Posts

    68
  • Joined

  • Last visited

Everything posted by OffRoader23

  1. Ok, so everything SEEMS to be scripted right in my script. It's a simple script that shoots a rocket out of your car when you shoot. I've modified it to be able to shoot grenades and stuff, but I will just post the basic code. function fireRocket(cmd) local vehicle = getPlayerOccupiedVehicle(getLocalPlayer()) local driver = getVehicleOccupant ( vehicle, 0 ) if (driver == getLocalPlayer()) then local sX, sY, sZ = getElementPosition ( vehicle ) createProjectile ( getLocalPlayer(), 19, sX, sY, sZ + 3, 1.0 ) end end addCommandHandler("supersecretcommandthatnoonewilleverfigureout", fireRocket) It works great... until you have a passenger. Then it won't stop shooting until they get out. The rockets originate from where your car was sitting when you first fired the rocket and you had the passenger in, so if you drive away, they still shoot FROM where you were sitting before. Is this my script or MTA? Because from what I can see, it seems to be scripted correctly. I tried it without the driver checks, etc. and it still fails. Any help/comments would be appreciated.
  2. Good. Thanks a lot. I'll report any others that come in my server and after a serial ban somehow come back also.
  3. Car Speed Boost script By: OffRoader23 Command: /carspeed [Acceleration Boost] [Top Speed in MPH] Example: /carspeed 10 150 Sets the Acceleration Boost to 10, and the top speed (when using boost) to 150 MPH. Acceleration Boost ranges from 0-100, 100 being VERY fast, 10 being a moderate acceleration boost. Top Speed has no range, but many cars have "Drag" which stop them from going over a certain speed (Usually 15000MPH-20000MPH). Download
  4. Well you can easily edit it yourself, I used that program in single player also but always changed the controls to these because it just makes it easier to remember unlike those controls. If you want to edit it to be those controls you just have to open the brake.lua and look at the if getKeyState("key") and change it to what you want. You can get all the key names from this page. http://development.mtasa.com/index.php?title=Key_names
  5. My Airbrake script I made for my MTA DM server and released it because it's quite useful. It's based off of s0beit's airbrake script where you can hover around in your car, but it's scripted for an MTA DM server and 100% hack free. It's a simple clientside script. Info: Vehicle Airbrake Script By: OffRoader23 Controls: 'B' Enable/Disable Airbrake 'Num Pad 8' - Move Forwards 'Num Pad 5' - Move Backwards 'Num Pad 4' - Rotate Car Left 'Num Pad 6' - Rotate Car Right 'Num Pad +' - Move Car Up 'Num Pad -' - Move Car Down Download
  6. Nice system. Good to build other scripts off of for storing variables as well. Thanks!
  7. I need to have a map started right on script load from CDM, it doesn't work when I add the map config, I even tried to script it with changeGamemodeMap ( cdm_ls ) and it didn't work. What am I doing wrong? Heres the meta for both: CDM.zip - the source of the game mode <meta> <info author="Black Dragon" version="1.0" type="gamemode" name="Classic Death Match"/> <script src="cdm.lua" /> <script src="cdm_client.lua" type="client" /> <config src="help.xml" type="client" /> </meta> CDM_LS.zip - the map it SHOULD load on game mode start <meta> <info author="Black Dragon" version="1.0" type="map" description="Los Santos CDM" gamemodes="cdm"/> <map src="cdm_ls.map" /> <script src="cdm_ls.lua" /> </meta> It doesn't load the map with these, I tried making it include the resource and everything, and it doesn't work. And I tried changeGamemodeMap ( cdm_ls ) on resource start, nothing. When I load CDM I want it to automatically start the map and it will not start the map at all. I tried loading both resources through admin menu but it will not work at all. The ONLY way I can get it to work, is using the votemanager script but I do not want the votemanager script to be able to change the mode. Any help to get the map to load correctly on resource load would be really appreciated.
  8. I'm trying to use the classic deathmatch script to make a team system on my freeroam, but it's not working at all. What resources does CDM load outside of CDM and CDM_LS? mapmanager and spawnmanager are both running, but when I join the server the server gives an error that says teamRoot is nil. It won't load the script/work correctly at ALL. I just want to know why I can't even spawn. Using unmodified CDM scripts it won't define the players team correctly it seems or doesn't load the map file to get the teams. [23:37:50] ERROR: ...eas/server/mods/deathmatch/resourcecache/cdm/cdm.lua:107: attempt to index global 'teamRoot' (a nil value) Specific error. Is there somewhere this is defined in a different script?? Edit: Nevermind, it's not defined in a different script, it's in the map file. I got it to work with votemanager but if i just start the 2 resources it does NOT work? Any ideas why it's not loading the map file correctly?
  9. Wow nevermind, I'm stupid. I fixed it. Just added if upgrade ~= 1013 and ~= 1024 and it worked. This can be closed.
  10. OK, I'm trying to fix the freeroam gui because if theres a car with fog lights as an upgrade it shows NO upgrades, I want it to ignore the fog light upgrades when it finds the list, or just remove them from the list completely. Is there a way I can do this? Code: function upgradesInit() local vehicle = getPlayerOccupiedVehicle(g_Me) if not vehicle then errMsg('Please enter a vehicle to change the upgrades of.') closeWindow(wndUpgrades) return end local installedUpgrades = getVehicleUpgrades(vehicle) local compatibleUpgrades = {} local slotName, group for i,upgrade in ipairs(getVehicleCompatibleUpgrades(vehicle)) do slotName = getVehicleUpgradeSlotName(upgrade) group = table.find(compatibleUpgrades, 'name', slotName) if not group then group = { 'group', name = slotName, children = {} } table.insert(compatibleUpgrades, group) else group = compatibleUpgrades[group] end table.insert(group.children, { id = upgrade, installed = table.find(installedUpgrades, upgrade) ~= false }) end table.sort(compatibleUpgrades, function(a, b) return a.name < b.name end) bindGridListToTable(wndUpgrades, 'upgradelist', compatibleUpgrades, true) end Any help would be really be appreciated. The upgrade IDs for the fog lights, 1013 and 1024.
  11. I'm fairly sure he reinstalled MTA, and somehow made it give him a new serial, because when he came back his name was player, but it was the SAME user name, just a completely different serial. We have banned his serial at least 5 times, he keeps changing it, and it is not taking him long, I checked the server logs, and he had a new serial within 3 minutes and was back on the server.
  12. I recently got a server and am trying it out now, but it doesn't give you a way to restart your server through their web admin, so I need to remote console restart it, but there appears to be no way to do so? Or do I just have to contact the hosting and have them restart it for me? Can something be done with Execute Command in the Admin Menu?
  13. I banned his serial and like 30 seconds later he came right back with the user name kokoras and a completely different serial. I don't know how, but he did.
  14. What kind of script would cause it to only happen on the local hosts computer and work fine for everyone else?
  15. Yeah, everything works fine to other players but when your the server host it doesn't delete cars when we destroy them, only to the local host, works fine for everyone else, and randomly all objects when you /attach either 1 - Don't work, or 2 - Turn into ramps? I know we have a ramp script that spawns ramps but I've never had any problems joining his server and he has never had any when joining mine. But when we join our own local servers functions randomly change the time to midnight on a function execute, and some don't work correctly at all.
  16. Does anyone know where the http://www.samphost.com servers are located? Thats what we're thinking about using, but I need to know where the servers are located because I want something US oriented.
  17. Ohhhh never seen that page before. Very useful. Thanks!
  18. Nevermind, I'm dumb, I don't know what I did wrong before but it works fine now. I think I did if speed => 30 and <= 250. What is the key called for reverse/brakes when your in the car? if ( getControlState ( v, "accelerate") ) then works for accelerate if ( getControlState ( v, "brakes") ) then doesn't. Thanks for the help btw.
  19. But I tried and it it's like OMFG SYNTAX.... Maybe I did something wrong, I'll try it again and post results, thanks. And yea, I know, my script has getPlayerSpeed function released by that guy a while back, I have code that works already but am trying to get a range from 30-250 for a speed boost script when you hold accelerate.
  20. I'm trying to run a check if speed is higher then 30 MPH and under 250 MPH, how would I do that? I know it would be like function blah ( ) local shpeed = getPlayerSpeed ( player, 1) if shpeed >= 30 and shpeed <= 250 then do crap else dont do crap end end What would I replaced and with? &? ||? or?
  21. Yea the not being able to alt+tab is an issue, but I used windows classic login style window, which means when you hit Ctrl+Alt+Delete, it brings up the windows menu that allows you to go to task manager if the game crashes and be able to close the game. If you don't know what I'm talking about, think about Windows 2000 Pro when you do Ctrl+Alt+Delete, it comes up and says you are logged on and gives you 6 options, Change Password, Task Manager, Log Off, and some other crap, you can change it to this mode by going into Control Panel>User Accounts>Change the way users log on and off, and Uncheck "Use the Welcome Screen" and Uncheck "Fast User Switching". Then try Ctrl+Alt+Delete, and see if you like that, I do, because it pops it up over MTA, and allows you to run the task manager and end it quickly without having to restart your PC. This window will show up over ANY application thats open, even MTA. This is what I mean: (Just some example I found on google)
  22. If it uses player/source then it's server side. So, server side
  23. IMO 1655 is too big of a ramp, I have something like this in my server, it defaults to ramp 1632 which is smaller, but you can /setramp number, and theres no time limit between spawning ramps. It also uses Left Alt, and Numpad 0, and if your flying you can disable it with /setramp 0. 2 Seconds also is WAY too short of a time, mine is 10 sec, but good script for people to build off of.
  24. Yea, hackers suck. There is one thing I want to clear up. Troy is NOT in [NR], [NR] is NOT a hacking clan in MTA DM, nor SA-MP 0.2, Troy used hacks in an official server with the [NR] tag on, and that is when we dropped the clan tag, but [NR] is back and doesn't hack, nor have any of the members in MTA, except troy, but he was removed from the clan, shortly after hacking in an official server. So Troy having [NR] in his name is not true, and we are NOT a hacking clan. Our server is NOT a hacking server, if anyone joins it hacking they WILL be banned. So PLEASE do not accuse my clan of being a hacking clan, because they are not. We do not have any members that hack, will not allow any members that hack to join, and if we do find anyone in the clan that hacks, they will be kicked out instantly, and their serial reported. Thanks, and keep up the great MTA.
×
×
  • Create New...