Hi.
Erstelle eine Datei in addons/eventscripts/antiawp/ die antiawp.py heißt. (Ordner auch erstellen).
Danach fügst du noch "es_load antiawp" in die cfg/autoexec.cfg ein.
Folgendes Script reinkopieren und die SteamID(s) einfügen.
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import es
#
# Config
#
steamids = ["STEAM_X:X:XXXXXXXX"]
nachricht = "#lightgreen[AntiAWP]#green Es wurde dir verboten die AWP zu benutzen!"
#
# Code
#
def load():
es.addons.registerClientCommandFilter(ccf)
def unload():
es.addons.unregisterClientCommandFilter(ccf)
def ccf(userid, args):
if len(args) > 1 and args[0].lower().strip() == "buy" and args[1].lower().strip().count("awp") and es.getplayersteamid(userid) in steamids:
es.tell(userid, "#multi", nachricht)
return False
return True
|
Gruß