blob: 67b6aa97a0c0bfba9292d0cb9521d85ac6f900ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# No #TF2
Kick players with "#___TF2" in their name
## Requirements
- Sourcemod and Metamod
## Installation
1. Download the file `notf2.smx` and place it in your `serverfiles/tf/addons/sourcemod/plugins` folder
2. Restart the server or type `sm plugins load notf2` in the console to load the plugin.
## Usage
NoTF2 works automatically and will kick players if they have a TF2 related hashtag in their name. The regex pattern used to detect inappropriate names is: `#.*tf2` using [PCRE](https://pcre.org/), and is case insensitive. Some example hashtags that will be kicked include: `#SaveTF2`, `#savetf2`, `#KillTF2`, `#dpuashduawhd TF2`
## ConVars
```raw
ntf_enabled <0/1> (Default: 1) - Kick players with inappropriate names
ntf_admins <0/1> (Default: 0) - Kick admins with inappropriate names
```
|