OffRoader23
Members-
Posts
68 -
Joined
-
Last visited
Everything posted by OffRoader23
-
We have a box in our server (Free Roam Chaos/NR Gaming) It's the digital speedometer by 50p, it's smaller and more compact then the huge needle one, link: https://community.multitheftauto.com/index.php?p= ... tails&id=5 pic: http://img147.imageshack.us/img147/5725 ... 078sl5.png Modified background because the brown was fugly.
-
I've been looking at the camera functions and wanting to know if theres a way to make the camera an element so it can be attach to a vehicle at any x/y/z position I want. Is this possible with this version of MTA? I know I could run a timer to move the camera to the player every 50ms, but the delay of 50ms is way too long IMO, and makes the camera very jerky. I want to do this to make like, in vehicle cameras and anything like that. The camera commands don't seem to be working for me at all? I was just testing them and it would NOT change my camera, and my console returned no errors. function dropCamera (player) local x, y, z = getElementPosition ( player ) setCameraMode ( player, "player" ) setCameraPosition ( player, x, y, z ) end addCommandHandler ( "dropcamera", dropCamera) Just supposed to drop the camera in place, and follow the player, but it doesn't work on foot or in vehicle, and returns no console errors.
-
Yea that removes all blur, I have that done on player join because I hate the blur, and haven't gotten any complaints from people that joined saying "WHERE TEH FUX MY BLUR!?!?!?!!111////11/"
-
That's because GTA doesn't process the dummies correctly. It only processes the physics on rear and front wheels, the middles are just clones of the rear ones, and they change no effects on the cars suspension performance. So basically just for looks.
-
Yep that's me, and the Buffalaro, SuperSabre, 4 Door Sadler, and some Chevys, and an F150 and some other cars I don't remember.
-
Also, textures on mods aren't smooth so you see every pixel and they aren't mixed together...not sure what thats caused from, but yea the dummies not loading makes the seats, lights, and exhaust mess up. Sometimes the cars show up white and they just have to be reloaded, and sometimes the dummies work just fine until you leave the area your in....not sure why that would be. And wow, talk about the ugliest Infernus/Buffalo I've ever seen. How can you screw a car up that badly??? Paint job/rims look good. Everything else sucks. Worst. Exhaust. System. Ever. Damn ricers...
-
Yeah that would take a complex math calculation, Me and LeetWoovie are trying to work on it now but it has to calculate the cars position and the players position and the cars rotation then has to find exactly where your standing and since GTA uses relative N S E W not relative to the car its kind of hard to do it without some complex math calculation...of some sort, that I'm not exactly sure on. I will see what happens with our script.
-
Works in our script...not sure, I'm working on it right now, to get it to store if the player is stuck or not, and then it will check when you try to /stick again so it can unstick you then restick automatically, or just unstick all together if no parameters specified. If it errors on line 4 and 10 then its not sending the player variable correctly when the player does the command. Are you doing /stick name 0 0 0 ? Heres the updated code that is running/working on our server [Free Roam Chaos]: function cmd_stick ( player, commandName, player2nick, x, y, z ) local player2 = getPlayerFromNick ( player2nick ) local vehicle = getPlayerOccupiedVehicle ( player2 ) if isPlayerInVehicle ( player ) then removePlayerFromVehicle ( player ) detachElementFromElement( player ) attachElementToElement ( player, vehicle, x, y, z ) else detachElementFromElement( player ) attachElementToElement ( player, vehicle, x, y, z ) end end addCommandHandler ( "stick", cmd_stick ) function cmd_stickv ( player, commandName, player2nick, x, y, z ) if isPlayerInVehicle ( player ) then local playerv = getPlayerOccupiedVehicle ( player ) local player2 = getPlayerFromNick ( player2nick ) local vehicle = getPlayerOccupiedVehicle ( player2 ) detachElementFromElement( playerv ) attachElementToElement ( playerv, vehicle, x, y, z ) else detachElementFromElement( player ) attachElementToElement ( player, vehicle, x, y, z ) end end addCommandHandler ( "stickv", cmd_stickv ) function cmd_unstick ( player ) element = getElementAttachedTo ( player ) detachElementFromElement( player ) if isPlayerInVehicle ( player2 ) then local vehicle = getPlayerOccupiedVehicle ( player ) detachElementFromElement( vehicle ) else detachElementFromElement( player ) end end addCommandHandler ( "unstick", cmd_unstick ) /stick Playername X Y Z - sticks you to the players vehicle only (removes you from vehicle if your in one) /stickv Playername X Y Z - sticks you and your vehicle to the players vehicle /unstick - unsticks your car/player X Y Z is the offset from the other players car, usually start out with a Z of 1 and you should be good. Play with the X (left/right) Y(front/back) Z (above/below) to get exactly where you want to be on the car. Hope this works for someone.
-
Script spamming with errors after some time...
OffRoader23 replied to OffRoader23's topic in Scripting
Wow, so that's how you store variables in an array. Sweet. Thanks for the help! Is there a way to compact this though, so it runs ONE timer that just checks it for every player, rather then making a separate timer for each player? Also, I tried this code, it is working, but is still spamming me with an isPlayerInVehicle error still, I joined and left the server and it's still running the timer, it gives me a bad Arguement @ killTimer. Edit: Nevermind, I think I got it, I removed timer[source] = nil from the timer, and that seems to have stopped it for now. I'll see what kind of results I get tomorrow when theres more people on the server. Thanks again for the help. -
OK, so this code works, most of the time, but sometimes it seems when a player Quits it doesn't fully cancel out the timer which causes the console to get spammed with errors. Here is my code: function playerJoin () moneys = setTimer ( GiveMoneys, 500, 0, source ) setPlayerMoney( source, 25000 ) end function playerLeave () killTimer ( moneys ) end function GiveMoneys ( source ) if (isPlayerInVehicle( source ) == true) then local value = getPlayerSpeed ( source, 1 ) local speeds = math.ceil(value * 0.3) givePlayerMoney ( source, speeds ) end end addEventHandler ( "onPlayerJoin", getRootElement(), playerJoin ) addEventHandler ( "onPlayerQuit", getRootElement(), playerLeave ) And I get spammed with this error after the servers been up and people have left/joined a lot. [23:43:23] WARNING: fr.lua: Bad 'player' pointer @ 'isPlayerInVehicle'(1) - Line: 46 [23:43:23] WARNING: fr.lua: Bad 'player' pointer @ 'isPlayerInVehicle'(1) - Line: 46 [23:43:23] WARNING: fr.lua: Bad 'player' pointer @ 'isPlayerInVehicle'(1) - Line: 46 [23:43:23] WARNING: fr.lua: Bad 'player' pointer @ 'isPlayerInVehicle'(1) - Line: 46 [23:43:23] WARNING: fr.lua: Bad 'player' pointer @ 'isPlayerInVehicle'(1) - Line: 46 [23:43:23] WARNING: fr.lua: Bad 'player' pointer @ 'isPlayerInVehicle'(1) - Line: 46 Isn't the player pointer the SOURCE of the timer, which was originally sent when the player joins the server, and should kill the timer when they leave? What am I doing wrong here. Any help would be appreciated. Or a way to disable error reporting to the console, because the script seems to work just fine, it errors when someone leaves the server and for some reason the timer hasn't stopped. Edit: Sorry if this is in the wrong section. Edit: OK this code doesn't work at all anymore...it sorta dies a lot.
-
Also, the textures aren't filtered on the vehicles, so they are all blocky looking. Is there any way to preload it before it loads into the server, so it smooths the textures?
-
Yeah I guess this just means MTA should release everything right now, because they will be the only online GTA mod out there, and so they don't need to be perfect anymore, even though EVERYTHING they have shown has been absolutely amazing.
-
Found a big bug on this forum skin...
OffRoader23 replied to zion's topic in Site/Forum/Discord/Mantis/Wiki related
Also I think you can scroll over if you put the mouse close to the picture like your selecting it and drag it over, it will move the page over. -
OK, I use the PRS script, it seems to work, but I have too many maps, and the server doesn't like them at all. When I Connect, it works, the stats work, levels, everything like that. The only problem is that I have a LOT of maps, and when the mIRC script updates the maps until it finds them all, but it ends up not finding them all, and for some reason it will disconnect after updating only a certain number of maps, and it will say: Disconnect: 6 Name In Use Which is really annoying also because it will not reconnect, so the script is pretty much dead. Any way to at least make it automatically reconnect immediately? Or a more stable script for the maps?
-
This game is FUN as hell. I played the demo, thinking it would suck, but I got addicted. The demo time limit really sucks!! Can't wait until tuesday, I am definetaly going to buy this. The online Co-Op makes it worth it too. You can even play that in the demo, me and my friends have played it online countless times. I wonder though if they will have DM in multiplayer, or other modes like that. The Halo 3 beta just seals the deal too, because it will be worth playing that after CrackDown is old and beaten. But they have to finish it so we can play it first... I do like the music, but only the Mexican Rap, their techno stuff kind of sucks, I want to know what it will be like in the real game though, beacuse I know there will be lots more Mexican Rap.
-
Yeah, that is what kind of sucks though...Is it still going to be on in DM?
-
The frame limiter is so OBVIOUSLY on...This is the only huge downfall about MTA in my opinion. I play SA-MP (sorry if those are forbidden words, lol) and the LOWEST framerate I have EVER gotten was 35...and that was in smoke...because I have a 512 MB GDDR3 x1800 XT... Usually I get around 70 or so. MTA has the frame limiter on...and it REALLY makes the game less playable...I wish it was at least turned up to like 40 or 45...because 25 makes my eyes angry. I really hope this is an option in DM or is chagned or something because that will REALLY suck if it is still on.
-
Any way to use this for MTA:SA?? I wanna use my Logitech Driving Force Pro for this awesome racing mod
