Jump to content

Search the Community

Showing results for tags 'no damage'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 1 result

  1. hello all i need a help a help i want o disable minigun kills , for ex ;1 fire with minigun to 2,if 2 has enable minigun mode then 2 cant be killed & if 2 has disable minigun mode then he can get killed by 1 !! i scripted cilent.lua but not working instead there is no errors too, help me if you can client code; addCommandHandler("minigun", function () if ( getElementData(localPlayer, "Anti-minigun") ) then setElementData(localPlayer, "Anti-minigun", false) outputChatBox("Anti-minigun Disabled") else setElementData(localPlayer, "Anti-minigun", true) outputChatBox("Anti-minigun Enabled") end end ) function stopMinigunDamage ( attacker, weapon, bodypart ) if ( weapon == 38 ) then if (getElementData(localPlayer, "Anti-minigun")) then cancelEvent() end end end addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), stopMinigunDamage )
×
×
  • Create New...