View Full Version : Alarm when in spawn ONLY
LRB15
10-27-2014, 12:53 PM
There may already be a feature and i apologise if there is, but i was wondering if it was possible to enable alarms only between certain waypoints. Example:
Enable alarms between waypoints 'Hunt' and 'Leave'
LRB15
10-29-2014, 02:03 PM
bump#
Travis E
12-14-2014, 11:43 PM
Would be nice! :)
Y2Quakepc2
12-14-2014, 11:51 PM
ye broski
you just need the following:
- 2 labels
- 2 xbst
- a few lua lines
- a brain
good luck!
Kezzar
12-15-2014, 06:23 AM
ye broski
you just need the following:
- 2 labels
- 2 xbst
- a few lua lines
- a brain
good luck!
Suggestions board.... :P
Anyway Furpan (Pretty sure it was him :P) done a little one up awhile ago, you just need a bit of knowledge to set it up :P Basically you need to add 2 labels to your .xbst then add this code to your .lua config as a function.
if (labelName == "EnablePlayerDetection")
DetectPlayer(1)
elseif (labelName == "DisablePlayerDetection")
DetectPlayer(0)
end
function DetectPlayer(type)
local file = io.open("..\\Settings\\tmp-detect.xbst", "w")
if type then
file:write('<panel name="Alarms">\n <control name="playerAlarm" value="'..type..'"/>\n</panel>')
else
file:write('<panel name="Alarms">\n <control name="playerAlarm" value="'..type..'"/>\n</panel>')
end
file:flush()
file:close()
loadSettings("tmp-detect", "Alarms")
end
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.