Jump to content
  • 0

[HELP] 1 place for special access and ability


Dominopi

Question

Hello, :)

I need help with edit scripts with player  custom loadouts and special zone (VIP).

How can write UID player in 1 files, because now I have to write UID in 2 other?

I want creat new files (vip.sqf) with UID and creat path from 2 files to this one (if ((getPlayerUID player) in [read from vip.sqf]) then {

if ((getPlayerUID player) in ["0","0","0]) then {
	DefaultMagazines = ["Skin_Soldier_Sniper_PMC_DZ","Skin_SurvivorW2_DZ","ItemBandage","ItemBandage","ItemBandage","30Rnd_9x19_UZI","ItemMorphine","ItemPainkiller","30Rnd_9x19_UZI","30Rnd_9x19_UZI","ItemWaterbottleBoiled","ItemWaterbottleBoiled","FoodSteakCooked","FoodSteakCooked"];
	DefaultWeapons = ["UZI_EP1","ItemGPS","ItemWatch","ItemKnife","Itemtoolbox","ItemCrowbar","ItemHatchet_DZE","ItemFlashlightRed","ItemMachete"];
	DefaultBackpack = "DZ_ALICE_Pack_EP1";
	DefaultBackpackWeapon = "";
	};

and

if ((getPlayerUID player) in ["0","0","0"]) exitWith {
titleText ["Welcome ViP", "PLAIN DOWN", 3]; //or,\\ titleText [format ["Welcome, %1", name player], "PLAIN DOWN"]; // welcomes you with your name
};
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

In "init.sqf" add this at the bottom:

Vips = [
   "0",
   "0",
   "0"
];

And then

if ((getPlayerUID player) in Vips) then {
   DefaultMagazines =["Skin_Soldier_Sniper_PMC_DZ","Skin_SurvivorW2_DZ","ItemBandage","ItemBandage","ItemBandage","30Rnd_9x19_UZI","ItemMorphine","ItemPainkiller","30Rnd_9x19_UZI","30Rnd_9x19_UZI","ItemWaterbottleBoiled","ItemWaterbottleBoiled","FoodSteakCooked","FoodSteakCooked"];
   DefaultWeapons = ["UZI_EP1","ItemGPS","ItemWatch","ItemKnife","Itemtoolbox","ItemCrowbar","ItemHatchet_DZE","ItemFlashlightRed","ItemMachete"];
   DefaultBackpack = "DZ_ALICE_Pack_EP1";
   DefaultBackpackWeapon = "";
};
if ((getPlayerUID player) in Vips) exitWith {
   titleText ["Welcome ViP", "PLAIN DOWN", 3]; //or,\\ titleText [format ["Welcome, %1", name player], "PLAIN DOWN"]; // welcomes you with your name
};

Basically we created a array to hold the vips uids. And then both the Loadouts and Dome check to see if the players uid is in the Vips array. If the uids are in the array then it works if not then it dose not work.

Link to comment
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
  • Advertisement
  • Discord

×
×
  • Create New...