Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Trigger:
- BLUEFOR, REPEATEDLY, PRESENT, "THIS", ONACT: base = execVM "scripts\base_lock.sqf";
- base_lock.sqf:
- WaitUntil{!isNull player};
- waitUntil {(getPlayerUID player) != ""};
- _uid = getPlayerUID player;
- if(!(_uid in PIDArray) && Status == 1) then {
- hintC "You are in a restricted area! Go back immeditately!";
- sleep 5;
- hint "You are in a restricted area! Go back immeditately!";
- sleep 5;
- player setDamage 1;
- }
- else
- {
- alarm_on = player addAction["<t color='#ff0000'>Disable All Kill Zones</t>","scripts\alarm.sqf","",1,false,true,"","Status >= 1"];
- alarm_off = player addAction["<t color='#ff0000'>Enable All Kill Zones</t>","scripts\alarm.sqf","",1,false,true,"","Status <= 0"];
- };
- alarm.sqf:
- switch(Status)
- do{
- case 1:
- {
- Status = 0;
- hintC "You have disabled the kill zones in restricted areas!";
- player removeaction alarm_on;
- };
- case 0:
- {
- Status = 1;
- hintC "You have enabled the kill zones in restricted areas!";
- sleep 5;
- player removeaction alarm_off;
- };
- default
- {
- player removeaction alarm_on;
- player removeaction alarm_off;
- };
- };
- exit;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement