Jump to content

XetaQuake

Members
  • Posts

    561
  • Joined

  • Last visited

Everything posted by XetaQuake

  1. Hey all, thanks for help - it works a lot better now, here is my script: function GasTanksExplosible(source) local theVehicle = getPlayerOccupiedVehicle(source) local theSeat = getPlayerOccupiedVehicleSeat(source) if theSeat == 0 then setVehicleFuelTankExplodable(theVehicle, true) end end function GasTanksNotExplosible(source) local theVehicle = getPlayerOccupiedVehicle(source) local theSeat = getPlayerOccupiedVehicleSeat(source) if theSeat == 0 then setVehicleFuelTankExplodable(theVehicle, false) end end addEventHandler ( "onVehicleEnter", getRootElement(), GasTanksExplosible ) addEventHandler ( "onVehicleStartExit", getRootElement(), GasTanksNotExplosible ) But there is only one last Problem: When a car explodes and respawned, the tank is still explosible. I tried to fix this with many ways, like the event onVehicleRespawns or onVehicleExplode. But with the last two events the car don´t respawn anymore . Have anybody Ideas why, or other ideas to set the tank not explosible after the Car explodes?
  2. Hi, i don´t getting it working. my problem is, that i don´t know how i can get the vehicle the sourceplayer is in. Its needed because the argument from setVehicleFuelTankExplodable needs a vehicle name - because i don´t want that ANY cars gets explosible tanks, only the cars there a players in Any tipps pleas
  3. Don´t works Your idea with onElementCreated are nice, i found a wiki topic about this idea: from: http://development.mtasa.com/index.php? ... and_Events Hmm, any other ideas? //EDIT: I getting it working! with onVehicleStartEnter, but there a one thing thats are not so nice, now i need your help: When i spawning a Car, it don´t works - okay, thats no surprise, its because of onVehicleStartEnter - so i need to go in the car first. Now i have a funny and logical idea: explosible tanks only works when the engine are running. onVehicleStartEnter are near the same, but when i go in a car and triggering onVehicleStartEnter, all cars are explosible - the cars there a not running too. Have anybody a idea to realise my "engine idea"?
  4. Sexy command Works good, thanks Gamesnert. But there a problem: when do you create vehicles online (example: Freeroam GUI) there don´t explodes by shooting in the tank. I thinks its because of local vehicles=getElementsByType("vehicle") , there find just all vehicles from the map. How to fix this? XetaQuake
  5. Hello (BTW: Bäm, i am back we was moving house) For a week, i already tried this too with the test-script from the wiki, but it don´t works and i get warnings (don´t know there anymore, i already delete the little script) I am interesting in this script too, could somebody help us? PS: Are signatures deactivate?! have a good day, XetaQuake =)
  6. what do you mean? Changing the team name to nil? I don´t think that this destroy then (currently i am not able to test it)
  7. Hi I realy missing a function to destroy a team, like destroyTeam. I want to make a script that destroys a team when there have no members, but i don´t know how i can destroy a team. Any ideas? It would be VERY VERY nice.
  8. I thank you so mutch! Works great now thread a finish
  9. I have absolutly the same function you posted PS: You can test it alone to, just press F11 and search you in the map
  10. Hi and thanks for help! I want to change the blip color for a player I also tried setBlipColor ( source, r, g, b, 255 ) - but nothing happens, and this time there a no errors, warnings etc. After that, it tried this: local r, g, b r, g, b = getTeamColor ( teamtest ) local targetPlayer = getPlayerFromNick ( source ) setBlipColor ( targetPlayer, r, g, b, 255 ) ... and get Bad Argument warnings: Any ideas?
  11. Hi all I have a little question, how can i change the blip icon color from the source - the player? I tried this, but not work: local r, g, b r, g, b = getTeamColor ( teamtest ) destroyBlipsAttachedTo ( source ) createBlipAttachedTo ( source, 0, 2, r, g, b ) I think thats a good idea to change the blip color, right? But i get this error and the color don´t changes: I would be very happy when someone can help me, its required urgently
  12. BÄM - thanks! I already searching a function to get a team by the name, like getTeamFromName(teamName) but nothing found - that´s why its dont works. Now its works perfect, thanks!
  13. No, thats not waht i want, but thanks for help. I don´t want to sing out my script now, but i tried to create a dynamic command, so you can write team lol or team yeaateam - everything. I don´t want creates a team with the script, there should be dynamic teams. I just need a script to gets this command working: team anyteamnamehere but this don´t work: function assignNewTeam ( source, commandName, teamName ) setPlayerTeam ( source, teamName ) -- add the player to a team outputChatBox ( "test", source, 128, 206, 206 ) end addCommandHandler ( "team", assignNewTeam ) Any ideas?
  14. Hi, i have a other question. Thats a little bit off-topic but i don´t want to create a new topic for this: currently i tried to script a chat command "jointeam [name]". So wen a player types "jointeam testteam" in the chat, he gets in the team "testteam". but it don´t work, i don´t joins the team. Here is the code: function assignNewTeam ( source, commandName, teamName ) setPlayerTeam ( source, teamName ) -- add the player to a team outputChatBox ( "test", source, 128, 206, 206 ) end addCommandHandler ( "team", assignNewTeam ) But i gets the outputChatBox "test", so the script are called. I don´t get any warnings, infos or errors with /debugscript 3 Any ideas pleas?
  15. Thanks 50p for the information for lua now i getting it working =)
  16. I already tried it to add the function name directly in the setTimer, but then i get everytime a "bad argument @ setTimer" error. So i learned it to copy the complete function in a seTimer...but this don´t work too on my script (but on all others) Is there any eventHandlers to restart the script? I was searching for client-side Events in the wiki, but found nothing
  17. Hi, then i get this error: And the functions are don´t to see ingame
  18. No i don´t have msn Its not possibly for a player to show or hide the window (its a static little window), i searching for a way to reload the script every 2 minutes, so it will be a new random text every 2 minutes.
  19. Now i have a another question I tried now very long with the differents way to get the script restarts after a time. Because i want that the random text comes from time to time... Here is one from many ways i tried: ... setTimer ( function stufftest() ... ... end , 120000, 0) ... But it don´t work, i still get this error: http://b.imagehost.org/0436/hmmm.png Also i don´t know that the script loads a new node from the xml file when a timer launch them again? Can anybody help me?
  20. Thanks for new version! BUG REPORT: When you own a house and rent your own, you are not able to unrent it, it says "You are not able to unrent your own house" ^^ When you rent a house (whats don´t yours), and try to unrent it, it says nothing...so i am not sure that the unrent works I am not sure but i think i don´t need to pay rentals? (tried it with my own house and a house from a another player) SUGGESTIONS: The radar blip are shown OVER player blips (and thats not good because the house blips are not realy small), can you change it? I think its better when a player only can own ONE house, so its a fair share ambience on the server. Whats when a player buy a house, disconnected and come never back? I think its better when there is a fife-day-limit befor it will automaticaly sell or so, is that possibly?
  21. Thanks for new version! BUG REPORT: When you own a house and rent your own, you are not able to unrent it, it says "You are not able to unrent your own house" ^^ When you rent a house (whats don´t yours), and try to unrent it, it says nothing...so i am not sure that the unrent works I am not sure but i think i don´t need to pay rentals? (tried it with my own house and a house from a another player) SUGGESTIONS: The radar blip are shown OVER player blips (and thats not good because the house blips are not realy small), can you change it? I think its better when a player only can own ONE house, so its a fair share ambience on the server. Whats when a player buy a house, disconnected and come never back? I think its better when there is a fife-day-limit befor it will automaticaly sell or so, is that possibly?
  22. PERFECT! thanks you two! Works realy fanstastic, and thanks 50p for the scrolling text!
  23. PERFECT! thanks you two! Works realy fanstastic, and thanks 50p for the scrolling text!
×
×
  • Create New...