Jump to content

Search the Community

Showing results for tags 'Schwede'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements
  • DayZ
    • Discussion
    • Public Servers
    • DayZ SA Resources
    • Q&A Section
  • ArmA 3
    • Epoch Survival
    • Community Projects
    • Q&A Section
    • Terrain Discussion
    • Resources
  • Arma 3 Resources
  • ArmA 2
    • General Discussion.
    • Q&A Section
    • Resources
    • Legacy Resources
    • A2: Community Projects
    • A2 Community Servers
  • Space Engineers
    • General Discussion.
    • Public Servers
  • Other Games
    • Discussion
  • Off Topic
    • Off Topic

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. ================== Schwedes Map Marker UPDATE: 2015_04_01====================== UPDATE NOTES: Now with multiple marker support and easier to call Prologue This Script was born through some support and should help people with infistar and scripts which create Map Markers on Clients. Also it can be used by scripter to get simple markers without adding each on individually. I will not give much support for this, simply because i do not have much time to give support and this is for scripter/admins which know what they are doing. The Installation wont be a step by step instruction on how to get everything prepared, you need to know where some files are and some scripting skills! What it does? This Script simply lets create the server a marker on the map through a clientsided script. This should be used by anyone who is using antihack (infistar) and a script which should create a marker clientsided (like carepackages) What you need: public_EH.sqf compiles.sqf server_functions.sqf your Script where the marker should be created Instructions: Step 1: compiles.sqf Place this in the !isDedicated Section Schwedes_CreateMarker = compile preprocessFileLineNumbers "dayz_code\compile\schwedes_createmarker.sqf"; //Schwedes create Marker Safe and Done Step 2: public_EH.sqf Add this: //Schwedes Marker "PVDZE_SchwedesMarker" addPublicVariableEventHandler {(_this select 1) spawn Schwedes_ServerMarker}; "PVDZE_SchwedesMarkerRemove" addPublicVariableEventHandler {(_this select 1) spawn Schwedes_ServerMarkerRemove}; in the isServer section [A Section is allways something between {...input...};] Safe it and place it somewhere in your mission Step 3 init.sqf redirect the public_EH.sqf to your custom one Safe and Done Step 4 server_functions.sqf Place this somewhere near the bottom: http://pastebin.com/2Rx03bNw Safe it and place it in your dayz_server.pbo Step 5 create a new sqf and name it schwedes_createmarker put this know at the point you want to create the marker /*////////////////////////// Schwedes Marker How to call: [_unit,_markername,_text,_type,_brush,_sizeX,_sizeY,_color] spawn Schwedes_CreateMarker; Example 2 for a Shape [player,"MyMarkerName","DisplayTextonMap","RECTANGLE","Grid",50,100,"ColorGreen"] spawn Schwedes_CreateMarker; Example 1 for a cfgMarker (width and hight does not matter on cfgMarkers so just set to 0) [_box,"MyOtherMarkerName","Location Box","Flag","Solid",0,0,ColorOrange] spawn Schwedes_CreateMarker /-----------------------/ How to Remove: Put this in your Code where you called it from PVDZE_SchedesMarkerRemove = [_uniqueName,_markertext]; publicVariableServer "PVDZE_SchwedesMarkerRemove"; */////////////////////////// private ["_unit","_markername","_getPos","_text","_type","_brush","_sizeX","_sizeY","_color","_uniqueName","_markertext"]; //Getting the Variables _unit = _this select 0; _markername = _this select 1; _text = _this select 2; _type = _this select 3; //Possible Values: "ICON", "RECTANGLE", "ELLIPSE" << or >> [url=https://community.bistudio.com/wiki/cfgMarkers]https://community.bistudio.com/wiki/cfgMarkers[/url] //Only change this Values if using: "ICON", "RECTANGLE", "ELLIPSE" as a type _brush = _this select 4; _sizeX = _this select 5; //Needs to be a Number _sizeY = _this select 6; //Needs to be a Nubmer _color = _this select 7; //Possible Values: "Default", "ColorBlack", "ColorGrey", "ColorRed", "ColorGreen", "ColorBlue", "ColorYellow", "ColorOrange", "ColorWhite", "ColorPink", "ColorBrown", "ColorKhaki", "ColorWEST", "ColorEAST", "ColorGUER", "ColorCIV", "ColorUNKNOWN", "Color1_FD_F" (Light red), "Color2_FD_F" (Light khaki), "Color3_FD_F" (Light orange), "Color4_FD_F" (Light blue) //Making them Unique if (isPlayer _unit) then { _playerUID = getPlayerUID _unit; _uniqueName = _markername + _playerUID; } else { _ObjectID = _unit getvariable ['CharacterID','0']; //May change for CharacterID for another Variable you have set to the Object e.g. Mission, Sarge, etc. _uniqueName = _markername + _ObjectID; }; //get Position of _unit if !(typeName _unit == "ARRAY") then { _getPos = getPos _unit; } else { _getPos = _unit; }; //Unique Name for Markers type "ICON", "RECTANGLE", "ELLIPSE" _markertext = _uniqueName + "_shapeText"; PVDZE_SchwedesMarker = [_uniqueName,_getPos,_text,_type,_brush,_sizeX,_sizeY,_color,_markertext]; publicVariableServer "PVDZE_SchwedesMarker"; /* you also could set a Condition with a global variable or something to delete the marker waitUntil { GloabalVariable_Condition }; PVDZE_SchedesMarkerRemove = [_uniqueName,_markertext]; publicVariableServer "PVDZE_SchedesMarkerRemove"; */ STEP 6 Security Changes: You may want to rename the PVDZE_Schwede variables to something unique, so hackers cant exploit this to create marker all over the map :) Battleye Filters: You will need to edit your publicVariable.txt to prevent kicks from using this Script! Simply add !="PVDZE_SchwedesMarker", !="PVDZE_SchwedesMarkerRemove" to the Filter 5 "PVDZE_" If you still get kicked, try it yourself with this very good tut from ebay: BE-Filders HOW TO USE: You can find examples in schwedes_createmarker,sqf at the Top in the Comment Section and this at the point where it should delete the marker: PVDZE_SchwedesMarkerRemove = [_markername]; publicVariableServer "PVDZE_SchwedesMarkerRemove"; or use a condition in schwedes_createmarker example in in there. Done. Tested and worked :) Credits: DangerRuss infiSTAR UKMartin
×
×
  • Create New...