bajaboy1972
Well-Known Member
Don't know if this has been covered before. What im looing to do is add a protective dome over each base.....but instead of killing players who aren't added by their uid I want to allow players in bases based on their humanity. So if a player is a bandit he is automatically allowed in bandit base but will die if they try and enter a hero base (based on certain set time ) and visa versa .The below code is currently what I use but is based on uid's being manually added.
This is activated by this code....
Any help would be greatly appreciated
Code:
if ((getPlayerUID player) in ["123456789"]) then {
titleText ["Hello Player. Welcome back.", "PLAIN DOWN", 3];
} else {
titleText ["You are entering an Admin Base, please turn back now or DIE!!!", "PLAIN DOWN", 3];
sleep 5;
titleText ["You have 25 seconds to turn back...", "PLAIN DOWN", 3];
sleep 5;
titleText ["You have less than 20seconds to leave..", "PLAIN DOWN", 3];
sleep 5;
titleText ["You have less than 15 seconds to leave.. We aren't kidding!", "PLAIN DOWN", 3];
removeAllWeapons player;
sleep 5;
titleText ["You have less than 10 seconds to leave (You're about to die!)...", "PLAIN DOWN", 3];
sleep 5;
titleText ["You were warned..!", "PLAIN DOWN", 3];
sleep 5;
player setDamage 1;
};
This is activated by this code....
Code:
This is activated by this code....
class Sensors
{
items=7;
class Item0
{
position[]={8109.0664, -0.00017738342, 7633.4717};
a=350;
b=350;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="AdminBase_1";
expCond="(vehicle player) in thislist";
expActiv="adminbase = [] execVM ""domes\adminbase.sqf"";";
expDesactiv="terminate adminbase; titleText [""You have left the admin Base!"", ""PLAIN DOWN"", 3];";
class Effects
{
};
};
Any help would be greatly appreciated