Jump to content
HappyDuckie

[Tutorial] Protect your mission

Recommended Posts

Hi :)

So I had used this piece of script for a long time now and today I want to release it to your guys. Keep in mind, it will only be useful if you lock your pbo. Use for example https://armaservices.maverick-applications.com/Products/Obfuscator/ 

You can find the script here and the newest version if I change it. Feel free to customize it and change it to your needs. 

The rightful owner of this script have I forgot and if you are the person and you can proof it I would gladly put your credits in the code :)

https://github.com/HappyDuckie/Arma-3---Protect-your-mission

What the script does, is that when you spawn in as a player you are getting killed and kick out to the lobby. You can only use the mission if the server name is the same as the server name in the fn_stealmission.sqf. 

Duck out <3

Edited by HappyDuckie
  • Like 4

Share this post


Link to post
Share on other sites

This is a good script and no it won't be very helpful if you don't lock the pbo , But as he stated " it will only be useful if you lock your pbo." so once the pbo is locked not only can they not edit it but they will have the script keep ending the mission..Great job @HappyDuckie

 

  • Like 1

Share this post


Link to post
Share on other sites
On 11/18/2017 at 1:53 PM, HappyDuckie said:

They can still use your mission. With this script they can not use the mission because every player that connect getting killed and kick out to the lobby. 

They cannot use your missions without the life_server, their server will also need the obfusqf key (servermod) to even read the mission file

Share this post


Link to post
Share on other sites
Guest
On 11/18/2017 at 11:51 AM, [IL] KingCrazyHunter said:

This makes no sense if you lock it using maverick then no one will be able to steal it in the first place or even read the mission file, this script is completely useless...

There already way around maverick's pbo locking. I've seen first hand someone take someone files that was using it. 

Share this post


Link to post
Share on other sites
7 minutes ago, Deadlesszombie said:

Your server name needs to be exactly the same in the top line

Thanks for responding but I want to make sure, is this how its supposed to look like?

Spoiler
/*
  File: fn_stealmission.sqf
  Author: HappyDuckie
  Date: 18.11.2017
  */
  if (!isMultiplayer) exitWith {};
  _servername = [ENG] FuriousRP (In Development);
  if (_servername != "[ENG] FuriousRP (In Development)") exitWith {
  [] spawn {
  while {true} do {
  _layer = "normal" cutText ["This mission belongs to commmunity!","PLAIN"];
  sleep 30;
  if(vehicle player != player) then { vehicle player setDamage 1; };
  _veh = "Bo_GBU12_LGB" createVehicle position player;
  sleep 5;
  _layer = "normal" cutText ["This mission belongs to commmunity!","PLAIN"];
  player setDamage 1;
  sleep 2;
  "shit" cutText ["", "BLACK", 0.5, true];
  sleep 10;
  ["stealmission",false,true] call BIS_fnc_endMission;
  };
  };
  };

Not sure exactly how its supposed to look like, my server name is [ENG] FuriousRP (In Development)

Share this post


Link to post
Share on other sites

Hi there Daniel, 

As @Deadlesszombie already had said. You need to change the _servername to your exactly what it's in your server config file. 


Do NOT edit the line 7.  Line 7 is taking your server name and check it what you have posted in the script. If it's not the same, it will kill the player. Fx if someone took your mission file and put it on their server and changed their server name. It will not match with the server name you had put in the IF statement so they will get killed all the time.

if (!isMultiplayer) exitWith {};
_servername = serverName;
if (_servername != "[ENG] FuriousRP (In Development)") exitWith {
	[] spawn {
		while {true} do {
		_layer = "normal" cutText ["This mission belongs to FuriousRP!","PLAIN"];
		sleep 30;
		if(vehicle player != player) then { vehicle player setDamage 1; };
		_veh = "Bo_GBU12_LGB" createVehicle position player;
		sleep 5;
    _layer = "normal" cutText ["This mission belongs to FuriousRP!","PLAIN"];
		player setDamage 1;
    sleep 2;
    "shit" cutText ["", "BLACK", 0.5, true];
		sleep 10;
		["stealmission",false,true] call BIS_fnc_endMission;
		};
	};
};

I had changed it for you.

Kind regards

HappyDuckie

  • Like 1

Share this post


Link to post
Share on other sites
42 minutes ago, HappyDuckie said:

Hi there Daniel, 

As @Deadlesszombie already had said. You need to change the _servername to your exactly what it's in your server config file. 


Do NOT edit the line 7.  Line 7 is taking your server name and check it what you have posted in the script. If it's not the same, it will kill the player. Fx if someone took your mission file and put it on their server and changed their server name. It will not match with the server name you had put in the IF statement so they will get killed all the time.

if (!isMultiplayer) exitWith {};
_servername = serverName;
if (_servername != "[ENG] FuriousRP (In Development)") exitWith {
	[] spawn {
		while {true} do {
		_layer = "normal" cutText ["This mission belongs to FuriousRP!","PLAIN"];
		sleep 30;
		if(vehicle player != player) then { vehicle player setDamage 1; };
		_veh = "Bo_GBU12_LGB" createVehicle position player;
		sleep 5;
    _layer = "normal" cutText ["This mission belongs to FuriousRP!","PLAIN"];
		player setDamage 1;
    sleep 2;
    "shit" cutText ["", "BLACK", 0.5, true];
		sleep 10;
		["stealmission",false,true] call BIS_fnc_endMission;
		};
	};
};

I had changed it for you.

Kind regards

HappyDuckie

Oh okay thanks man!

Share this post


Link to post
Share on other sites
2 minutes ago, Daniel K. said:

Oh okay thanks man!

Make sure you understand what he fixed for you, you were missing quotes if you needed to change the top, which is not the case 

Edited by Deadlesszombie
  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×