Jump to content

IIYAMA

Moderators
  • Posts

    6,089
  • Joined

  • Last visited

  • Days Won

    216

Everything posted by IIYAMA

  1. yes I know it is terible to find that. Once I had an object without rotation and another time I had wrong spawnpoints. These stuppit things can disable loading the map. Very annoying when you don't know the problem
  2. Hey I got a question! I need to know which players are in a vehicle. It would be nice if they are in ipairs. vehicle > player I don't need this https://wiki.multitheftauto.com/wiki/Get ... iedVehicle because: Player > vehicle I only have the vehicle and not the player. Any suggestions or you know some tool to get this information. Thx
  3. When you have very much objects, is it not posible for creating an object with a client script, at all posisions eagle? (not vehicle's/peds) The server is streaming objects form .map to our pc's, why can't we use objects on client side? Client side scripts can be stolen, but it will reduce lagg. Or does it not? About destroy able objects, you also have that problem on server side
  4. Use this one> https://community.multitheftauto.com/ind ... ils&id=646 password for using in game as a kind of admin is "director"
  5. It is not the script! I already told you what the problem is.
  6. It is the map file. If it was the meta the map would not start at all. I saw this > obj health="588" Is this able to read for mta?
  7. + Info: Player/resource can be add with addobject. > user. resource.
  8. models/mods could be damaged. You have to find out which one cause the crash. use --[[ ]] for disable the script and do it untill you know the one/two or more. --> client script. I had same problem with a mod/model that replaced tec9.
  9. IIYAMA

    parachute

    Because the model is not right I guess. Is this model Col + texture? Try to set this mod on another object and see if it works. Els the model does not work correcly.
  10. IIYAMA

    Add sound

    You know this is cliend side?
  11. IIYAMA

    Car spawn

    I am not a pro scripter, I am more a beginner/normal. But debugscript is a very handy tool. 1. give your self andmin. 2. write "/debug 3" for understanding all the trouble in the server. (wiki) debug * 0: Custom message 1: Error message 2: Warning message 3: Information message (default) It is also handy for testing scripts, you can use outputDebugString inside your scripts. Put it in a line that needs to be checked and call your string like that. https://wiki.multitheftauto.com/wiki/OutputDebugString
  12. IIYAMA

    Add sound

    maybe you must put it in an unzipped folder?
  13. IIYAMA

    Add sound

    https://wiki.multitheftauto.com/wiki/PlaySound local sound = playSound("alarm.mp3") Make sure your mta sounds are ON. (settings) It does work. if (highlevel > -0.2) then outputChatBox ( "ALERT: A FLOOD IS EMERGING! WE ESTIMATE A WATER LEVEL OF "..tostring(highlevel).." meters", getRootElement(), 255, 0, 0 ) local sound = playSound("alarm.mp3") else
  14. IIYAMA

    Car spawn

    Well it means the one that integrading this code did something wrong, because the code is the same... I have to remind you to use debugscript for checking the folder you put it in. I haven't seen in your reaction what whent wrong with it.
  15. IIYAMA

    Car spawn

    Man you so..... that I have to upload my script. You guys get it from here... the same script I write down on this topic. This one works other you are failing so badly to manage your scripts... 20 seconds for respawn. http://www.2shared.com/file/O1iauaZe/re ... hicle.html
  16. IIYAMA

    Car spawn

    If your script also does not work, it means that you made a mistake with putting the script inside your folder and start it. You started the script? YES folder or .zip > meta and script. NO .zip > folder > meta and script
  17. IIYAMA

    Car spawn

    well for me my script just works fine afther 20 seconds.
  18. IIYAMA

    Car spawn

    ofcourse it works, when the vehicle has been destroyed. Do you know how to use a script?
  19. It does works te same... You can't see element data as a trigger. It is just saved data. Je bedoeld dit als toevoeging? (NL) function Spawn ( thePlayer ) if getElementData(thePlayer,"invincible") then setElementAlpha(source, 0) end end addEventHandler ( "onPlayerSpawn", getRootElement(), Spawn )
  20. IIYAMA

    Car spawn

    ---meta-- call this "meta.xml" <meta> <info author="NONE" description="respawn" version="1" type="script" /> <script src="respawn.lua" /> </meta> --server--call this "respawn.lua" function respawn() for i,vehicle in ipairs(getElementsByType("vehicle")) do toggleVehicleRespawn(vehicle, true) setVehicleRespawnDelay(vehicle, 20000) end end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), respawn) Put the meta and the server script inside a folder. > setVehicleRespawnDelay(vehicle, 20000) 20000 = 20 seconds for respawn.
  21. IIYAMA

    Car spawn

    I can help you. I am right now at school.... Afther school I will send you a script that can respawn these cars greets IIYAMA
  22. See this topic it may help you. https://forum.multitheftauto.com/viewtop ... 0&p=398037
  23. Yes client side would be better. Server side will only calculate this as a hit when it is visible at server side.
×
×
  • Create New...