open.mp forum
[Library] OpenGate (Open Proximity Gates) - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Releases (https://forum.open.mp/forumdisplay.php?fid=13)
---- Forum: Libraries (https://forum.open.mp/forumdisplay.php?fid=31)
---- Thread: [Library] OpenGate (Open Proximity Gates) (/showthread.php?tid=3669)



OpenGate (Open Proximity Gates) - Crazy_ArKzX - 2025-11-13

With This Include You Can Open Gates Only By Approaching Them 

Demonstration:
[Video: https://m.youtube.com/watch?si=jopC68YlkFwErGUg&v=NexNcZS4BEU&feature=youtu.be]

Download: https://github.com/crazy-arkzx/opengate

Syntax:
Code:
CreateAutoGate(
    modelid, // Object Model
    Float:closeX, Float:closeY, Float:closeZ, Float:closeRX, Float:closeRY, Float:closeRZ // Closed Gate Position
    Float:openX, Float:openY, Float:openZ, Float:openRX, Float:openRY, Float:openRZ // Open Gate Position
    Float:range = 10.0 // Distance to Open the Gate
    speed = 2 // Gate Opening Speed
    autoclose_time = 5000 // Time to Automatically Close the Gate
    bool:auto_open = true) // Opens Automatically for Anyone (true) or (false) to open only if the player meets a specific condition or performs a certain action

See More About on Github 
https://github.com/crazy-arkzx/opengate