Jump to content

Search the Community

Showing results for tags 'antidm'.

  • 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 MTA Community, i've made a script which Makes the Team "name" undamageable until they get a wanted level, i've tried it in many ways and i'm still having this error : ANTIDM/Server.lua:3: syntax error near 'end' Client Side : dmteam = { ["Emergency"] = true, } function antidm (Player) Player = getLocalPlayer() if dmteam[getTeamName(getPlayerTeam(Player))] and triggerServerEvent("Dm", Player, Player) then cancelEvent() end end addEventHandler("onClientPlayerDamage", getRootElement(), antidm) Server Side : function check(Player) (exports.SACGpolice:getWantedLevel(Player) == 0) end addEvent("Dm",true) addEventHandler("Dm", getRootElement(Player), check) Note : i've done this TriggerServerEvent, cause the "SACGpolice" is exportable with Server Side. Thank you.
×
×
  • Create New...