Supported Games
Displays a warning message to the user when other players get within a set radius, and another message once they leave.
Permissions
proximityalert.use- Required to use the standard trigger range
Chat Commands
/prox- Activate/deactivate the function for the player using the command
Custom Permissions
To add a custom range simply add a new permission entry to the config making sure to note where quotation marks and commas are required. Also be sure your permission starts with "proximityalert." to avoid Oxide warning messages. There are 2 examples included to get you started. This requires the config option "UseCustomPermissions" to be set to true!
Configuration
- With the default configuration, the proximity will work only on players.
{
"CustomPermissions": {
"proximityalert.vip1": 50.0,
"proximityalert.vip2": 75.0
},
"DetectBanditNPCs": false,
"DetectHumanNPCs": false,
"DetectScientists": false,
"DetectSleepers": false,
"DetectTunnelNPCs": false,
"DetectZombies": false,
"FontSize": 18,
"GUI_X_Dim": 0.6,
"GUI_X_Pos": 0.2,
"GUI_Y_Dim": 0.16,
"GUI_Y_Pos": 0.1,
"TriggerRadius": 25.0,
"UseCustomPermissions": true
}
Credits
As requested by Tenpo89
k1lly0u, for being the original dev.
MIT License
Copyright (c) 2020 k1lly0u
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

