Jump to content

Search the Community

Showing results for tags 'challenges area'.

  • 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 , I Created A script ! it's work but the problem that ! the minigun not allowed in all the server how can i make it not allowed only in "Challenges area" Challenges area ! Deathmatch Make you make event vs other player ! Use any gun but not minigun !! this is the script --- --- function antiminigun ( previousWeaponID, currentWeaponID ) --when a player switches his weapon if currentWeaponID == 38 then local name = getClientName ( source ) local weapon = getWeaponNameFromID ( currentWeaponID ) outputChatBox ( "You Can not use This Weapon in this Area", source, 255, 100, 0,true ) PN = getPlayerFromNick (name) toggleControl (source, "fire", false) else toggleControl (source, "fire", true) end end addEventHandler ( "onPlayerWeaponSwitch", getRootElement(), antiminigun ) -- -- this is the area local skintable = { [10] = true, [11] = true, [12] = true, [13] = true, [14] = true, [15] = true, [17] = true, [16] = true, [18] = true, [19] = true, [20] = true, [21] = true, [22] = true, [24] = true} --Zombie Skinszone1 = createColCuboid ( 112.9927444458, 1337.1772460938, 10, 170, 150, 255 ) safeZoneRadar = createRadarArea ( 112.9927444458, 1337.1772460938, 170, 150, 0, 0, 0, 0 ) setElementData (safeZoneRadar, "zombieProof", true) function outZone(hitPlayer,thePlayer) function inZone(hitPlayer,thePlayer) local skin = getElementModel (hitPlayer) if not skintable[getElementModel(hitPlayer)] then --if not zombie toggleControl (hitPlayer, "fire", true) toggleControl (hitPlayer, "next_weapon", true) toggleControl (hitPlayer, "previous_weapon", true) toggleControl (hitPlayer, "prelaus_weapon", true) toggleControl (hitPlayer, "aim_weapon", true) toggleControl (hitPlayer, "vehicle_fire", false) else --if zombie killPed (hitPlayer) --kill zombie end end addEventHandler( "onColShapeHit", zone1, inZone ) local skin = getElementModel (hitPlayer) toggleControl (hitPlayer, "fire", true) toggleControl (hitPlayer, "next_weapon", true) toggleControl (hitPlayer, "previous_weapon", true) toggleControl (hitPlayer, "prelaus_weapon", true) toggleControl (hitPlayer, "aim_weapon", true) toggleControl (hitPlayer, "vehicle_fire", true) if skintable[getElementModel(hitPlayer)] then killPed (hitPlayer) --kill zombie end end addEventHandler( "onColShapeLeave", zone1, outZone )
×
×
  • Create New...