README
Visit our Discord / Homepage / Store !
Requirements / Dependencies
The following resources are required for nss_block_weapons to work:
Changelog
See CHANGELOG.md for more information.
Features
- Block using weapons for a specific time after respawn from death.
- Persistent blocking time for offline characters (until server or resource restart).
- Completely configurable:
- Configure block time.
- Configure notification texts (in your own language).
- Configure notification icons.
- Enable status indicator with progress bar.
- Configure status indicator style via config file.
- Status indicator icon is replaceable (transparent png file).
- Configure debug mode.
- Good performance on server and client side.
- And more...
Open ToDo's
- Nothing 😉
Known issues
- Currently, no known issues.
Setup script
- Ensure that the
nss_block_weaponsfolder is in yourresourcesfolder. - Rename config.demo.lua to
config.luaand fill in the values. - Add
ensure nss_block_weaponsto yourserver.cfg. - Restart your server.
Commands
[xyz] is required, (abc) is optional.
Admin commands
Only available for players with admin permissions.
block_weapon_show_dazed_players- Shows all players who are currently blocked from using weapons.block_weapon_daze_player [player_id] (duration_in_seconds)- Blocks the given player from using weapons for the given duration (in seconds). If no duration is given, the default duration from the config will be used.block_weapon_undaze_player [player_id]- Unblocks the given player from using weapons.block_weapon_daze_all_players (duration_in_seconds)- Blocks all players from using weapons for the given duration (in seconds). If no duration is given, the default duration from the config will be used.block_weapon_undaze_all_players- Unblocks all players from using weapons.
Debug mode commands
Only available if debug mode is enabled in the configuration.
For testing with yourself:
block_weapon_show_block_messageblock_weapon_show_unblock_messageblock_weapon_show_try_blocking_messageblock_weapon_add_ammoblock_weapon [duration_in_seconds]duration_in_seconds is optionalunblock_weapon
Test the notifications:
block_weapon_show_block_messageblock_weapon_show_unblock_messageblock_weapon_show_try_blocking_message
FAQ
What happens if the player dies during the blocking time?
The blocking time resets and starts again from the beginning.
What happens if the player re-join the game during the blocking time?
The blocking time is persistent on the server and will not reset.
What happens if I restart the server or the resource during the blocking time?
All blocking times will be reset.
Can a doctor stop the blocking time?
Currently, no.
