Jump to content

Scooby

MTA Contributors
  • Posts

    976
  • Joined

  • Last visited

Everything posted by Scooby

  1. If you can do so much, why do u write like this: function createCar local createVehicle (416, -2591 584 15) -- ID X Y and Z setPedIntoCar(createVehicle) -- Warps the Player into the Created Car end every line is wrong apart from 'end'. this is 'one of' the most basic functions possible... and you cant even get that right. ive wasted enough time here... seems u dont want helping. Good luck with your script.
  2. Your script has more than a few mistakes... since you dont even know the basics, making triggers back and fourth from client and server and adding all this stuff wrong makes it almost impossible to explain to u how to fix it... especially when you cant even make a simple function. it seems ur trying to run and u cant even crawl yet. example: after under 1 hour of scripting or a few mins browsing the wikiu can see this function is already wrong... its missing the parameters... maybe u should learn something basic first? like how to output a line of text into the server withj some parameters. then make a small function to change a players team. then make the spray can heal people if theyre on a set team. then make a basic gui that works. when u can do these things, come back to ur script and im sure u will understand so much better. we could fix ur script but then next week you would be back wanting something else 'fixing'
  3. where are the loadplayerdata and saveplayerdata functions? i dont see them posted here.
  4. No offence Billy but the whole thing is a mess... u have client side functions in ur server side script, incomplete functions and errors in a lot of the script throughout. if i go ahead and fix it u wont learn a thing... so: look at these parts... the function from line 4 onwards is incomplete. line 5: this should be clientside and 'guiSetVisible' line 6: incomplete line 11: missing parameters line 13: incorrect function - warpPedIntoVehicle line 17: clientside and wrong. line 16: setTeam function is incomplete im guessing lines 25 onwards arent yours, even so, theres an error in line 35 clientside: lines 29,30,31..... wrong the rest of the script is missing..... If ur scripting, dont go to the wiki every 5 seconds... just keep it open until u memorise every function/parameter... (which u probably never will) the wiki is a bible for scripters!dont script without it
  5. The resource is called 'realdriveby' i think its only set up to work with smg's by default. (uzi - tec9 - mp5) as posted above, it comes with mta, u just need to make sure its running.
  6. Thats all u have added to ur code. if u want something to happen after that u will need to write it...
  7. how about 1 or 3? probably best to just make sure ur forwarding the ports on the pc ur using. check ur local ip with:Start > Run > cmd then type in: ipconfig make sure it shows ur on 2 like u have in those settings... if ur not, change it.
  8. after searching round and reading other posts about voice I noticed last night that my script was old so ive downloaded a newer version, i have no idea if that could have caused the crashes. Theyre not like the normal crash, with this the game just freezes up rather than closing. I'll know better tonight after some more use. thats good, thanks, at least i know it works for some people.
  9. hmmmm, TS servers are cheap enough and its what we normally use its just most players dont join.. only the regulars. I find it hard to believe the MTA team just gave up on Voice because of crashes since It must have taken some time to make. sadly if i dont find a way to stop the crashes I might have to go back to using Teamspeak.
  10. im talking about the voice built into MTA. https://wiki.multitheftauto.com/index.php?title=Resource:Voice we've had a teamspeak server until now, i just thought i would try this out instead.
  11. So Voice has been added to MTA for some time now, last night i decided to give it a try. I managed to get it working ok but soon noticed that people including myself are crashing a lot. the crashes are random, sometimes 5 times in 10 mins, other times... no crashes for an hour. Is this normal and we just have to live with it??? or is anyone else experiencing this??? config settings: 1 1 5
  12. just add some checks in it to make sure that the gui ur getting the text from contains a number.
  13. It's a known fact that you often dont reach the topspeed or general speed that you set it to. if your vehicle really reaches that, is depending on other factors. To learn more about those and how to make your vehicle reach the real speeds that you set it to, read HERE: https://forum.multitheftauto.com/topic/81280-helptop-speed/?do=findComment&comment=744003 if u want to get the top speed value u can use getModelHandling this will only show u values in table tho, i think u want to Increase vehicle top speeds.. if so, theres a few ways u can do it, either by altering top speed, drag or acceleration... example: to speed up the FCR-900: setModelHandling(521, "maxVelocity", 960) setModelHandling(521, "engineAcceleration",18) setModelHandling(521, "dragCoeff", 0.01) u can play around with the values to get the accel and speed u need, and of course change the ID (521) to the vehicle u need to change. this will make the fcr-900 do around 190mph with reasonable acceleration to match. this code will only change the handling on vehicles created after this is ran, not vehicles already created. run it before u create them if u need it that way.
  14. yeah what ur after isnt really possible to the accuracy u want. u can simulate it but thats as close as it gets.
  15. I dont think theres a function to get engine rpm, but for ur ped: isLineOfSightClear
  16. just look at the one that comes with mta or download one of the community tdm resources, u should be able to learn what u need to from one of those.
  17. yes u can do this, just replace the model on each client depending on which skin u want to see. eg: u replace the hydra with f-18, and ur friend replaces it with a mig, he will see urs as a mig and u will see his as a f-18. use: engineImportTXD engineReplaceModel
  18. if u read the wiki it tells u, since u clearly missed it or it didnt make sense, here it is again:
  19. ok thanks guys, i'll check out the resource.
  20. Does anyone know if its possible to change the vehicle name thats shown on screen when you enter a vehicle? Im replacing a model and dont want the old model name showing if possible.
  21. Scooby

    Jail for time

    another way would be to just save the player/account name to a table of jailed players along with the jail duration in mins then on reconnect check their name to see if it exists, if it does, rejail them. then u just have a function looped every 1min decreasing the jailed players mins left and releasing those who's time is up. this would save the need for mysql and be a lot quicker to make. of course, if u stop the script, the names are lost, so i guess it depends on what u really need.
  22. you could just do something like this before u set the players new position: setElementData(source,"justTeleported",true) setTimer(setElementData,1000,1,source,"justTeleported",nil) then add a check when u hit the marker, if not getElementData(source,"justTeleported") then this would stop anyone who has just teleported from instantly teleporting back and fourth.
  23. yeah the addEventHandler for GUIEditor_Button[2] needs to be in the same function where u create the button.
  24. from what i can see, players[source] is only defined in function setBlipColor which is already an mta function name, so this probably wont work, try another function name. also line 8... not sure why u have that there i would suggest just getting the team colours on spawn and using the colours from there. this looks a lot more complicated than it needs to be. also, u could name the blip, that would save time in the loop looking for the blip when they die. eg: onPlayerSpawn: playerBlip[player] = creatBlipAttachedTo(... then: onPlayerWasted: destroyElement(playerBlip[player])
×
×
  • Create New...