Jump to content

Mr.unpredictable.

Members
  • Posts

    437
  • Joined

  • Last visited

Everything posted by Mr.unpredictable.

  1. Wow, Never knew guiSetEnabled can disable pasting in edit box lol
  2. Can you put the code between [lua ] [ /lua] tags? And also tell us What exactly are you trying to do. Teleport the heli or just move it.
  3. You have to use the function for that moveObject You can check the examples in the wiki.
  4. Well, Adding all the object into 3ds max, Placing them in the correct order and attaching them with be really very time consuming. It's not worth to spend that much on that. Anyway, I've just created few fake col's and deleted some of the collision files and it has reduced the lag. Thanks for your suggestion guys.
  5. You can replace weapon moda using Engine functions.
  6. Yea it is possible i will show an example when i'm on my pc.
  7. Ik and i did that but has i said before it is creating lag for me. Anyway, I'm attaching the col files with dff and the replacing them.
  8. Custom collision does work for some world objects but it is only getting bugged with liberty city objects.
  9. Idea internet network (It sucks tho) BIM
  10. Tank fires a projectile so you use the Id 59(tank grenade id) or 51 (explostion id - you should use this if you want to cancel event from all types of explostion other wise don't use this)
  11. The reason why i'm not suggesting him to use setteamfriendyfire function is because it has the following bugs -attacker can still kill with fire weapons -attacker can still kill with knife -attackera can still kill with vehicles And his question was how to set god mode to a team So i suggested him to use onClientPlayerDamage Even onClientPlayerDamage has a bug it still also allows attacker to kill with knife But it can easily be fixed by using the function onClientSteathKill.
  12. This will cancel the damage from fire, You should test it. function Ebc ( attacker, weapon, bodypart ) local pt = getPlayerTeam(source) if (pt) then if getTeamName(pt) == "Team name" then cancelEvent() end end addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), Ebc )
  13. Worst shit i ever made viewtopic.php?f=91&t=76572 viewtopic.php?f=108&t=86878
  14. <meta> <info type="map" name="Squalo Race" author="erorr404" version="0" description="A boat race around the San Fierro bay."></info> <map src="NOGATE.map" dimension="0"></map> <script src="gatescript.lua" ></script> <settings> <setting name="#maxplayers" value="[ 128 ]"></setting> <setting name="#useLODs" value="[ false ]"></setting> <setting name="#gamespeed" value="[ 1 ]"></setting> <setting name="#minplayers" value="[ 0 ]"></setting> <setting name="#gravity" value="[ 0.0080000003799796104 ]"></setting> <setting name="#waveheight" value="[ 0 ]"></setting> <setting name="#locked_time" value="[ false ]"></setting> <setting name="#weather" value="[ 0 ]"></setting> <setting name="#time" value="12:0"></setting> </settings> <script src="mapEditorScriptingExtension_s.lua" type="server"></script> <script src="mapEditorScriptingExtension_c.lua" type="client" validate="false"></script> </meta> Next time better read this https://wiki.multitheftauto.com/wiki/Meta.xml
  15. I guess he doesn't want that because he alredy asked about friendyfire here viewtopic.php?f=91&t=88187
  16. Thats not the way you ask for help in scripting board Read this viewtopic.php?f=91&t=47897
  17. Because it's a bug which has been already reported on mantis. Just test it.
  18. Simply no! addEventHandler('onResourceStart',resourceRoot, function () setTeamFriendlyFire(getTeamFromName('NAME'),false) end) Has i said before it will not cancel the damage coming from fire.
  19. I would just suggest to use this function Ebc ( attacker, weapon, bodypart ) local pt = getPlayerTeam(source) if (pt) then if getTeamName(pt) == "Team name" then cancelEvent() end end addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), Ebc )
×
×
  • Create New...