Jump to content

Search the Community

Showing results for tags 'safezone'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Altis Life RPG
    • Headquarters
    • Introductions
    • RULES
  • Altis Life RPG Community
    • General Discussion
    • Helper Recruitment
    • Altis Life Server Advertising
    • Discord (join us for discuss)
  • Tools and Administration
    • Altis Life RPG (official Framework)
    • Altis Life Wiki
    • Server Setup and Configuration
    • Database
    • Security
    • Maintenance
  • Altis Life Customization
    • Server & Scripting Help Desk
    • Releases & Download
    • Misc & Tools
  • Kool Kids Klub's Oof
  • Kool Kids Klub's Secret Spot

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


CPU


Memory


Hard Drive


Graphic Card


PSU


Case


Monitor


Description - Other Accessories

Found 5 results

  1. I thought people could use this on their server against people trolling the function KNOCK-OUT. Pleas if you re-share this don't forget to write the credits. Tested on: 4.4r4 but should work for everyone. # CREDITS # Me (LeventHAN) (and KLM for his corrections via Discord) # DIFFICULTY : Easy Peasy Lemons Squeezy # Tutorial: 1) Open: core\civilian\fn_knockoutAction.sqf 2) Find: #include "..\..\script_macros.hpp" 2.1) Add under that code snippet this: (Change the markers names for your favor.) #define SAFETY_ZONES_knockout [["Safe_Kavala", 425], ["Safe_Athira", 300], ["Safe_Pyrgos", 425], ["Safe_Sofia", 250], ["Safe_Zaros", 250], ["Safe_Vip", 190], ["Safe_Rebel_1", 140], ["Safe_Rebel_2", 140], ["Safe_Rebel_3", 140], ["marker_241", 30], ["Safe_sakir", 450], ["spawnsafe", 425]] 3) Now find this code: life_knockout = true; 3.1) And now add UPSIDe that code snipped this: if ({((position player) distance (getMarkerPos (_x select 0))) < (_x select 1)} count SAFETY_ZONES_knockout > 0) exitWith {}; Done! Now civilians can't use KNOCK-OUT action when they are on a safezone. PS: Sorry for bad england
  2. Latouth

    [UNIVERSAL] Safezone Script

    Author: Bake (Originally, but Rarek optimized it, and I added a warning message when you enter the done) This script takes markers on the map (Defined on LINE 13 at #define SAFETY_ZONES) Then if they are in within the radius specified, it will pop up a message when you enter, warning you. It will protect against bullets, grenades against players, AI, vehicles (And should work for buildings, haven't tested. Line 13 has #define SAFETY_ZONES These are some examples for diff amount of safezones. 1 Safezone #define SAFETY_ZONES [["Rebel_North_Marker", 300]] 2 Safezones #define SAFETY_ZONES [["Rebel_North_Marker", 300], ["Rebel_South_Marker", 150]] 3 Safezones #define SAFETY_ZONES [["Rebel_North_Marker", 300], ["Rebel_South_Marker", 150], ["Marker-Variable-Name", 250]] 4 Safezones #define SAFETY_ZONES [["Rebel_North_Marker", 300], ["Rebel_South_Marker", 150], ["Marker-Variable-Name", 250], ["Marker-Variable-Name2", 250]] NOTE; You will NEED To add the empty markers in game and put properly assign/name the markers, to make sure the defined variables are the actual variables you entered in the Eden Editor. --- TUTORIAL --- Difficulty: Easy (Putting a file in the mission file, and copy and pasting one line into a file) Put safezone.sqf into Altis_Life.Altis/scripts/ folder. Then go inside Altis_Life.Altis/init.sqf and add: [] execVM "scripts\safezone.sqf"; Note: Make sure you put the execVM after all the other execVMs, after the execVM for KRON Strings. And make sure you have the markers on the map. (mission.sqm) safezone.sqf
  3. I have a safe zone script. the gun can not be fired. But still hitting people with vehicles The car could explode and The vehicle may be injured. How can I prevent this? Please let me know how to add it.
  4. Hello ! My Safety Zone Script I have a safe zone script. But I want to add more to the script. A script that does not harm people with vehicles Therefore, Files in a file I would appreciate it if you could solve the problem by adding a script that does not know how to drive. I am Korean. Thank you for your patience. ---------------------------------------------------------------------------- /* File: safezone.sqf Edited by: Tyler - ALRPG Profile: http://goo.gl/VmgCB0 Description: Allows you to setup markers that execute the SafeZone script. Note: A lot of this is just C&P with different code. It's kinda simple to add / remove stuff */ #define CIV_ZONES [["safezone_1", 280]] #define PZ_MSG hintC "Shooting Inside Police HQ Is Not Allowed!" #define CIV_MSG hintC "You are In a Civilian Safezone! Stop Shooting or you can be banned or kicked!" if (isDedicated) exitWith {}; waitUntil {!isNull player}; switch (playerSide) do { case civilian: { player addEventHandler ["Fired", { if ({(_this select 0) distance getMarkerPos (_x select 0) < _x select 1} count POLICE_ZONES > 0) then { deleteVehicle (_this select 6); titleText [PZ_MSG, "PLAIN", 3]; diag_log format ["%1 Shot Inside Of A Safezone At %2", profileName, time]; [0,format["%1 - Is Shooting Inside Of Police HQ Safezone!",profileName]] remoteExec ["life_fnc_broadcast",0]; }; }]; player addEventHandler ["Fired", { if ({(_this select 0) distance getMarkerPos (_x select 0) < _x select 1} count CIV_ZONES > 0) then { deleteVehicle (_this select 6); titleText [CIV_MSG, "PLAIN", 3]; diag_log format ["%1 Shot Inside Of A Safezone At %2", profileName, time]; [0,format["%1 - Is Shooting Inside Of A Safezone!",profileName]] remoteExec ["life_fnc_broadcast",0]; }; }]; }; case west: { player addEventHandler ["Fired", { if ({(_this select 0) distance getMarkerPos (_x select 0) < _x select 1} count POLICE_ZONES > 0) then { deleteVehicle (_this select 6); titleText [PZ_MSG, "PLAIN", 3]; diag_log format ["%1 Shot Inside Of A Safezone At %2", profileName, time]; [0,format["%1 - Is Shooting Inside Of Police HQ Safezone!",profileName]] remoteExec ["life_fnc_broadcast",0]; }; }]; }; };
  5. bankinwmak

    Safezone script

    I want Safezone script to ues for Altis Life 5.0 please Help
×