Jump to content

xbenny2506x

Members
  • Posts

    98
  • Joined

  • Last visited

Everything posted by xbenny2506x

  1. i have new creat a script where read the .map file but the object dont move now can someone help me plz!!! BIG THX function loadObjects() allObjects = getElementsByType ( "turtle" ) -- the object id is turtle for key, theObject in ipairs ( allObjects ) do local origX, origY, origZ = getElementPosition ( theObject ) --get the origanal position local newX = 855.62 -- make a new X position local newY = -3110.33 -- make a new Y position local newZ = 593.85 -- make a new Z position moveObject ( theObject, 20000, newX, newY, newZ ) --move the object to this position in 20 seconds. end end setTimer ( loadObjects, 20000, 0 ) addEventHandler("onResourceStart", getRootElement(), loadObjects) addCommandHandler("setTimer", loadObjects)
  2. I have now: function loadObjects() myobject = createObject ( 1609, 809.96142578125, -3110.8703613281, 593.13952636719, 0, 0, 273.76263427734 ) end addEventHandler("onResourceStart", getRootElement(), loadObjects) function moveObjects() moveObject(myobject, 10000, 855.62, -3110.33, 593.85 ) end setTimer ( moveObjects, 20000, 0 ) setTimer ( loadObjects, 20000, 0 ) addCommandHandler("setTimer", moveObjects) and the object move but now the server create all the time a new object Can i load the object from the .map file so that the server not creat all the time a new object?
  3. ok when nobody can say me that is there a way that the object move from 809.96142578125, -3110.8703613281, 593.13952636719, 0, 0, 273.76263427734 to 855.62, -3110.33, 593.85 and then the server delete the object and this all 1min? or that the object move back to start point and this all 1min too? I hope with that can someone help me THX
  4. I want that the object 1609 move from: 809.96142578125, -3110.8703613281, 593.13952636719, 0, 0, 273.76263427734 to 855.62, -3110.33, 593.85 and make there a 180° rotation and move back to 809.96142578125, -3110.8703613281, 593.13952636719 this all 1min
  5. Hi I have this script: function loadObjects() myobject = createObject ( 1609, 809.96142578125, -3110.8703613281, 593.13952636719, 0, 0, 273.76263427734 ) end addEventHandler("onResourceStart", getRootElement(), loadObjects) function moveObjects() moveObject(myobject, 10000, 855.62, -3110.33, 593.85 ) end addCommandHandler("showobject", moveObjects) Its work good but i want that the obeject 1609 move to the first point then make a 180° rotation and move back to the start and that all 60 sec. atm i must start the script but i wanna that the object move all the time without "showobject" I hope someone can help me THX!!!!
  6. I found the problem BIG THX for the help WORK
  7. function idleRespawn () for i,vehicle in ipairs(getElementsByType("vehicle")) do toggleVehicleRespawn(vehicle, true) setVehicleIdleRespawnDelay(vehicle, 5000) end end addEventHandler("onResourceStart", getRootElement(), idleRespawn ) ahhhhh this dont work too plz help... this script make me crazy... the last script for my server a small idle vehicle respawn on the .map place
  8. Ok i have now function doNotRespawn ( thePlayer ) local theVehicle = getPlayerOccupiedVehicle ( thePlayer ) if ( theVehicle ) then toggleVehicleRespawn ( theVehicle, true ) -- tell the server not to respawn this vehicle end end addCommandHandler("donotrespawn", doNotRespawn) function idleRespawn () for i,vehicle in ipairs(getElementsByType("vehicle")) do setVehicleIdleRespawnDelay(vehicle, 5000) end end addEventHandler("onResourceStart", getRootElement(), idleRespawn ) and not work Have i do something wrong?
  9. ok i have found "Idle" so that the vehicle respawn when is it no on the .map place. but with this: theVehicle = createVehicle ( 400, 1, 1, 1 ) -- create us a new vehicle if ( theVehicle ) then setVehicleIdleRespawnDelay ( theVehicle, 20000 ) -- tell the server to respawn the vehicle 20 seconds after it's been left. end i must add a vehicle but i want that the vehicle from my .map respawn. So i found this function idleRespawn () for i,vehicle in ipairs(getElementsByType("vehicle")) do setVehicleIdleRespawnDelay(vehicle, 20000) end end addEventHandler("onGamemodeMapStart", getRootElement(), idleRespawn ) But i drive the vehicle back from the .map place stop and leave the vehicle alone but no respawn to the .map place Have i foget something or whatever? Or can someone here make me a script? Respawns the vehicle when someone left it after 20-30 sec on the .map file place. I hope someone can help me
  10. BIG THX now work fix and flip THX for the help!!!! I have make a little stunt server and add some vehilces with the new map editor. Its not funny when some hours later no vehicles more on the map and all in the water When the vehicle is in the water then is no player more in the vehicle, is there a way when the vehicle is not more on the place where i add it and nobody is in the vehicle that the vehicle respawn on the old place???
  11. BIG THX for the help But i add now keys for repair the car and that work very good!! My problem is the flip, i have test many things but nothing work Can someone add me in this script a flip plz function flipVehicle (carflip) if isPlayerInVehicle(carflip) then -- If the player is in a vehicle... flip? end outputChatBox ( "Car is Flip", carflip, 0, 255, 0 ) else -- If the player isn't in a vehicle... outputChatBox ( "You are not in a vehicle", carflip, 0, 255, 0 ) end end addCommandHandler('flip', flipVehicle) addCommandHandler('f', flipVehicle) And about the vehicle underwater, is there a way when the vehicle is under water that the vehicle explode? I have a respawn for explode vehicles. THX for the Help!
  12. I have some questions lol nothing new 1. I have use this when the car explode that the car spawn back addEventHandler( "onVehicleExplode", getRootElement( ), function( ) local parent = getElementParent( source ) if getElementType( parent ) == "map" and getElementID( parent ) ~= "dynamic" then setTimer( respawnVehicle, 40000, 1, source ) else setTimer( destroyElement, 5000, 1, source ) end end ) But the problem is when the car is in the water the script dont work Can someone help me when the car is the water that the car respawn back. 2. Is there a way that a player can repair a vehicle with he press a key and flip the vehicle? r = repair the vehicle and f = flip the vehicle can someone here help me too 3. and is this normal that no tune garage or paint and fix garage is open? or need i for that a special script too? BIG THX for the help!!!
  13. BIG THX for your help!!!!! Work i see no map!!!!!
  14. I have the Freeroam GUI from here https://community.multitheftauto.com/index.php?p= ... ails&id=43 But i dont want that the user when he login and die see the Map. I have now spawnpoints and when a use die or login he spawn on my places. So i dont need the Map on login and death. I hope someone can help me with that problem too!!! BTW nice work guys i found a lot scripts and many help here BIG THX for that!!!
  15. BIG THX too all for the help but i need no randomspawn i have 8 spawn points and want that the player when they login spawn on one of the 8 points I hope you can help me with that too!! BIG THX!!!
  16. omg Gamesnert you are my HERO BIG THX!!!! I hope so someone here can help me with the 7-8 start spawn points and when a player die he respawn on one of this 7-8 places!!!
  17. HI! I have add this as teleport point: function hjwarp (source) setElementPosition ( source, 886.24, 2479.17, 258.32 ) outputChatBox ( "You're warped to Hight Jump hj!", source, 0, 255, 0 ) end addCommandHandler ( "hj", hjwarp ) But that script teleport only a player where is not in a vehicle, is the a way that the player can warp with a car to my teleport points? I have a Freeroam server and want that the üöayer warp when they login on one of my 6 spawn points and when somone die he warp back to one of this point. PLZ can someone here say me how i can do that???? BIG THXXXXXX
  18. I wanna play a little bit with my friend on my little server but i get all the time a error!? I have edit the mtaserver.conf and add my IP and on my router i open the port 22004. But only what i see is that: =========================================================== = Multi Theft Auto: San Andreas Deathmatch v1.0-dp2 = =========================================================== = Server name : BennyBunnys Server = Server IP address : '88.xxx.xx.xxx' = Server port : 22004 = = Log file : ..reas/server/mods/deathmatch/logs/server.log = Maximum players : 32 = MTU packet size : 1264 =========================================================== [21:34:13] Could not parse 'settings.xml' file (Invalid file). Starting with an empty settings registry. [21:34:14] Resources: 102 loaded, 0 failed [21:34:15] Starting resources............ [21:34:15] ERROR: Could not bind the server on interface '88.xxx.xx.xxx' and port '22004'! [21:34:15] Server stopped! [21:34:15] Stopping resources.............. [21:34:15] Closing SQLite3 database
  19. Hi! I have download this Freeroam GUI https://community.multitheftauto.com/index.php?p= ... ails&id=43 for a Freeroam Server But i dont want that the on the start comes the the map, i wanna that the player spawn on one of my 6 spawn places and when he die he respawn on one of this too And i need a warp window where i can add places, so that the player can press F4 or a other F key and then the player see a window with all spawn places where i have add With a easy add new warp places for me I hope someone can help me I am a big noob in make scrips i test so many things sinces weeks but i am to bad BIG BIG BIG THX when someone help me
  20. This is the best map editor where i have ever seen But how i make a Freeroam server? In the menu i found only DM and many other things but no Freeroam!? And can i add a spawn points for the players so that when they login the server they spawn on 3-5 places where i want. 3-5 places are better so that not all spawn on the same place and when a player die he spawn on a other point from this 3-5 That i need sorry for my crazy english lol
  21. I have download this version of Freeroam: https://community.multitheftauto.com/index.php?p= ... ails&id=43 and have copy all files in MTA\server\mods\deathmatch\resources but when i start the server and the game i see only black!? Can someone say what i must do for start a Freeroam map? This is my server log: =========================================================== = Multi Theft Auto: San Andreas Deathmatch v1.0-dp2 = =========================================================== = Server name : Default MTA Server = Server IP address : = Server port : 22004 = = Log file : ..reas/server/mods/deathmatch/logs/server.log = Maximum players : 32 = MTU packet size : 1264 =========================================================== [23:55:05] Could not parse 'settings.xml' file (Invalid file). Starting with an empty settings registry. [23:55:09] Resources: 100 loaded, 0 failed [23:55:09] Starting resources............ [23:55:10] All Seeing Eye listing enabled. Port 22127 (UDP) must be accessible from the internet [23:55:10] Querying game-monitor.com master server... success! [23:55:10] Server started and is ready to accept connections! [23:55:58] CONNECT: BennyBunny connected (IP: 127.0.0.1) [23:56:04] JOIN: BennyBunny joined the game (IP: 127.0.0.1) [23:56:20] QUIT: BennyBunny left the game [Quit]
  22. ok i found the problem lol stupid me thx for the help
  23. I have read 2h long the Forum and do all things in the posts and nothing help When i start the Map Editor i see only black And many error I hope someone here can help me and this is my server window
×
×
  • Create New...