Jump to content

Gamesnert

MTA Contributors
  • Posts

    2,035
  • Joined

  • Last visited

Everything posted by Gamesnert

  1. First: Thanks that you tried it for me, but i don´t understand it, my object haves elementdata "moving". See here: function tanker_1_go() ... ... ... setTimer ( moveObject, 1000, 1, tanker_1, 25000, tanker_1_waypoint_1_x, tanker_1_waypoint_1_y, transport1_z, 0, 0, tanker_1_waypoint_1_rz ) setTimer ( moveObject, 26000, 1, tanker_1, 6000, tanker_1_waypoint_2_x, tanker_1_waypoint_1_y, transport1_z, 0, 0, tanker_1_waypoint_2_rz ) setTimer ( moveObject, 31000, 1, tanker_1, 30000, tanker_1_waypoint_3_x, tanker_1_waypoint_3_y, transport1_z, 0, 0, tanker_1_waypoint_3_rz ) setElementData(tanker_1,"moving",true) end addCommandHandler ( "go", tanker_1_go ) hm, now thats realy weird, can do you send me your serverside script, so i can test it with the same script as you. The player rotates around is own axis? Oh well i thought that already, but its nice that he rotates Hopeful we get a working workaround-script for this problem. ideas to get the player rotating around the objects axis? Trimentology or something. You need to calculate the distance (2D, meaning X and Y) between the player and the object and change the rotation of it. But I'm getting a start of it at chapter 5 or 6 with maths, while we're yet at 4... -.- I can send the script I used, you might have something not entirely good I guess? server: veh=createObject(9958,-42,-202,5) setElementData(veh,"moving",true) setTimer(function() local a,a,z=getObjectRotation(veh) setObjectRotation(veh,0,0,z+5) end,100,0) client: (exactly the one from a few posts ago) Try that? (Hint: climb on the sub in the middle, the rest is rotating a bit too fast... )
  2. I just tried it, it works fine. However, the object needs to have element data "moving"! And if you move, well, the rotation gets back to where you're moving towards. Too bad though the player still rotates round his own axis... Would love to see him rotating correctly with my superspeed rotating sub!!!! (only object ID I could find fast enough! ^^)
  3. Gamesnert

    Buttons...

    Why is it better to put it in a map file, actually? Usually more adaptable. Not really better if you want to keep something for yourself and don't want to change it, but in examples it's always better to show the map file way I think.
  4. The only thing I can still come up with is this... But I assume you already did that... =/
  5. Go to your GTA San Andreas install directory, go to folder MTA, open file coreconfig.xml with notepad, find ... and change it to 248. You could have found it by searching.
  6. A and B? Then the rotation part should be executed... There's obviously something wrong there... Problem is: What... I think the problem is in line 14 (setPlayerRotation ( localPlayer, (getPlayerRotation(localPlayer) + difference)%360 )), specifically one of the arguments of setPlayerRotation, since if it would be earlier, you would definetely see calculation errors. (or arithmetic or whatever ) By the way... What does %360 do? Isn't that supposed to be + or -?
  7. As long as he uses it on his OWN server and NOWHERE else, it's fine. But in DP3 the serial gen is back I guess, so if he then still uses it, he'll face problems anyway. (if he does that before DP3 he'll get them anyway, they'll ban him as soon as he comes online if they recognize him ) But well, joujou I do recommend uninstall of sobeit, using it will ban you anyway.
  8. ... Error? I don't see any errors... I only see a black screen with a download window... =/
  9. Try this: local localPlayer = getLocalPlayer() local lastRotation local root = getRootElement() addEventHandler("onClientRender",root, function() outputChatBox("A") local contactElement = getPlayerContactElement(localPlayer) if contactElement and getElementData(contactElement,"moving") and getElementType(contactElement) == "object" then outputChatBox("B") local a,a,z = getObjectRotation(contactElement) lastRotation = lastRotation or z local difference = z - lastRotation setPlayerRotation ( localPlayer, (getPlayerRotation(localPlayer) + difference)%360 ) lastRotation = z else outputChatBox("C") lastRotation = nil end end ) If you see B appearing in the chatbox, you know it SHOULD work. If you see C, you know there is something wrong with the checking if the player is on an element. If you only see A, well then it's weird! ^^ But it's just to see if you should or shouldn't rotate.
  10. Yeah, big nasty MTA crept into the DVD and corrupted the files. Probably a read error from the DVD, ever tried to listen to music on a scratched CD? Get a new (mind you, no illegal downloads or anything like that ) copy and it'll probably work. Lol, I can't even find it in the stores here anymore... I doubt a lot of shops still sell it... =/
  11. Interesting, but spamming about 300 times alot of "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(maybe even longer )" does nothing on my server thus far... Still trying to destroy my relatively high FPS... But well, I don't know how much chat there is for 10 people, but I think I already exceeded that... =/ (well ok, I'm on my own)
  12. Gamesnert

    Buttons...

    Well, this was actually an example. I do have a few resources taking it from map files. It was just to show my method.
  13. Ah ok, I thought the distance would have something to do with it. On the other hand, if CPU stays on 60-70% all the time, then that might be the problem? Apparently MTA doesn't take the full CPU like most games (especially full-screen ones) do. This might explain the drop, since it needs to process more with more people. If it won't, well then I understand why it can become a bit laggy...
  14. Gamesnert

    Buttons...

    Yes, I use this method: spawnpoint={{0,0,3}, {500,500,30}, {-500,-500,30}} --creates table/array spawnpoint with a few spawnpoints. (between { and }, xyz) function spawnThePlayerOfWhoIDontKnowTheNameYouSee(player) local spawnNo=math.random(1,#spawnpoint) -- this will draw a random ROUND number, starting at 1 and ending at how much spawnpoints the table contains. local a=spawnpoint[spawnNo] -- put the chosen spawnpoint in a local variable. Makes it a bit easier spawnPlayer(player,a[1],a[2],a[3]) -- spawn the player at the given spawnpoint end addCommandHandler("spawn",spawnThePlayerOfWhoIDontKnowTheNameYouSee) -- usually, I don't use command handlers in these cases So it might still have some bugs/typo's, but this is how I do it.
  15. Hmmm... Might it be that you were in a vehicle when the warning occurred? Since if you are in a vehicle, getPlayerRotation returns false.
  16. Hmmm... Interesting discovery! How about your CPU by the way? How is that affected by the number of people? Still, it's indeed weird it dropped... I mean how COULD it drop with more people... Might it be that you were at a fair distance from these people? And that the 30% was when everybody was close to eachother?
  17. It can't, but he was actually talking about gamefiles, not the DVD. But ehm... Your DVD might have damages? How could uninstalling MTA also uninstall GTA SA? Maybe you have to run GTA SA in compatibility mode like I read somewhere? (that doesn't solve it for MTA, which can't run in windows 98 compatibility mode...)
  18. Maybe there are these incredibly laggy functions including walking etc? I also wonder, but I don't think we'll get the answer soon... =/
  19. Try running a gamemode without vehicles. Seems to help.
  20. I don't know what the problem is... Is port 22005 forwarded? For as far as I know, the files will be send through the HTTP port. And this should also be the reason why it couldn't download it according to the error. Oh and please only type Dutch in PM's, there are more people experiencing this problem, and would like to know what you're saying too. But I'm indeed Dutch though.
  21. Ok, I have it now and looks good. However, again I only tested it alone... =/ If it doesn't work, I use the RC Cam method. (which I actually already made today until I saw your post... ) Anyway, Rhino's seem balanced now compared to other vehicles. Now I only yet have to solve Anti-Tank balance. But that's none of the community's worries. EDIT: Ok, it's getting more and more balanced! Thanks Ace, the gamemode is playable now beside some huge bugs
  22. Probably multiple GTA SA installs.
  23. There isn't much I know about MTA, but I DO know that it doesn't mess up files... It occurs even if you try and install it and don't install MTA?
  24. Oh great... Lol... Is it fixable? =/
  25. Ok so I have been using this for a while now, but now since I do it on a public server, I see it doesn't work most of the time... The rhino's can only damage themselves on this server, while on my own it worked correctly... I've been trying to edit things, resetting to default, reediting again, resetting, editing and nothing actually helped... Any ideas? =/ I'm also doing different damage per type, but well that's not a thing to worry about... I more would like to know why this doesn't work... =/
×
×
  • Create New...