Sie sind nicht angemeldet.

1

Mittwoch, 8. Januar 2014, 16:40

Weapon Restricted

Hallo,

ich wollte diesen Mod nutzen: http://forums.alliedmods.net/showthread.php?p=950174

Mein Problem ist: Ich kann keine config-files erstellen, die die Waffen verbieten. Ich habe einen "only de_dust2"-Server. Und ich habe eine config erstellt die de_.cfg heißt, ebenso eine die dust2.cfg heißt und eine die de_dust2.cfg zu sein (nur um sicher zu gehen, dass es nicht am Namen liegt)
Eigentlich hätte ja die dust2.cfg reichen müssen, aber es funktioniert nicht so recht...

Was ich vorhabe ist folgendes: Ich möchte AWPs verbieten. Aber egal was ich mache, es kann trotzdem jeder, jederzeit AWPs kaufen.

So sieht meine dust2.cfg aus:

Spoiler Spoiler

Quellcode

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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
// This file was auto-generated by SourceMod (v1.4.0-dev)
// ConVars for plugin "weapon_restrict.smx"


// Set to 0 to allow awp pickup ONLY if it is under the max allowed. Set to 1 to use sm_allow_restricted_pickup method.
// -
// Default: "1"
sm_allow_awp_pickup "1"

// Set to 0 to ONLY allow pickup if under the max allowed. Set to 1 to allow restricted weapon pickup
// -
// Default: "0"
sm_allow_restricted_pickup "0"

// If enabled will count bots in per player restricts
// -
// Default: "1"
sm_perplayer_bots "1"

// If enabled will restrict awp per player count
// -
// Default: "0"
sm_perplayer_restrict "1"

// If enabled will count specs in per player restricts
// -
// Default: "1"
sm_perplayer_specs "0"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:ak47
// -
// Default: "-1"
sm_restrict_ak47_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:ak47
// -
// Default: "-1"
sm_restrict_ak47_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:aug
// -
// Default: "-1"
sm_restrict_aug_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:aug
// -
// Default: "-1"
sm_restrict_aug_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:awp
// -
// Default: "-1"
sm_restrict_awp_ct "0"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:awp
// -
// Default: "-1"
sm_restrict_awp_t "0"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:c4
// -
// Default: "-1"
sm_restrict_c4 "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:deagle
// -
// Default: "-1"
sm_restrict_deagle_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:deagle
// -
// Default: "-1"
sm_restrict_deagle_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:defuser
// -
// Default: "-1"
sm_restrict_defuser "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:elite
// -
// Default: "-1"
sm_restrict_elite_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:elite
// -
// Default: "-1"
sm_restrict_elite_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:famas
// -
// Default: "-1"
sm_restrict_famas_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:famas
// -
// Default: "-1"
sm_restrict_famas_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:fiveseven
// -
// Default: "-1"
sm_restrict_fiveseven_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:fiveseven
// -
// Default: "-1"
sm_restrict_fiveseven_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:flashbang
// -
// Default: "-1"
sm_restrict_flashbang_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:flashbang
// -
// Default: "-1"
sm_restrict_flashbang_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:g3sg1
// -
// Default: "-1"
sm_restrict_g3sg1_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:g3sg1
// -
// Default: "-1"
sm_restrict_g3sg1_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:galil
// -
// Default: "-1"
sm_restrict_galil_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:galil
// -
// Default: "-1"
sm_restrict_galil_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:glock
// -
// Default: "-1"
sm_restrict_glock_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:glock
// -
// Default: "-1"
sm_restrict_glock_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:hegrenade
// -
// Default: "-1"
sm_restrict_hegrenade_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:hegrenade
// -
// Default: "-1"
sm_restrict_hegrenade_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:knife
// -
// Default: "-1"
sm_restrict_knife_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:knife
// -
// Default: "-1"
sm_restrict_knife_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:m249
// -
// Default: "-1"
sm_restrict_m249_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:m249
// -
// Default: "-1"
sm_restrict_m249_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:m3
// -
// Default: "-1"
sm_restrict_m3_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:m3
// -
// Default: "-1"
sm_restrict_m3_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:m4a1
// -
// Default: "-1"
sm_restrict_m4a1_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:m4a1
// -
// Default: "-1"
sm_restrict_m4a1_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:mac10
// -
// Default: "-1"
sm_restrict_mac10_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:mac10
// -
// Default: "-1"
sm_restrict_mac10_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:mp5navy
// -
// Default: "-1"
sm_restrict_mp5navy_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:mp5navy
// -
// Default: "-1"
sm_restrict_mp5navy_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:nvgs
// -
// Default: "-1"
sm_restrict_nvgs_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:nvgs
// -
// Default: "-1"
sm_restrict_nvgs_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:p228
// -
// Default: "-1"
sm_restrict_p228_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:p228
// -
// Default: "-1"
sm_restrict_p228_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:p90
// -
// Default: "-1"
sm_restrict_p90_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:p90
// -
// Default: "-1"
sm_restrict_p90_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:scout
// -
// Default: "-1"
sm_restrict_scout_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:scout
// -
// Default: "-1"
sm_restrict_scout_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:sg550
// -
// Default: "-1"
sm_restrict_sg550_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:sg550
// -
// Default: "-1"
sm_restrict_sg550_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:sg552
// -
// Default: "-1"
sm_restrict_sg552_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:sg552
// -
// Default: "-1"
sm_restrict_sg552_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:smokegrenade
// -
// Default: "-1"
sm_restrict_smokegrenade_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:smokegrenade
// -
// Default: "-1"
sm_restrict_smokegrenade_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:tmp
// -
// Default: "-1"
sm_restrict_tmp_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:tmp
// -
// Default: "-1"
sm_restrict_tmp_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:ump45
// -
// Default: "-1"
sm_restrict_ump45_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:ump45
// -
// Default: "-1"
sm_restrict_ump45_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:usp
// -
// Default: "-1"
sm_restrict_usp_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:usp
// -
// Default: "-1"
sm_restrict_usp_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:vest
// -
// Default: "-1"
sm_restrict_vest_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:vest
// -
// Default: "-1"
sm_restrict_vest_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:vesthelm
// -
// Default: "-1"
sm_restrict_vesthelm_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:vesthelm
// -
// Default: "-1"
sm_restrict_vesthelm_t "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:xm1014
// -
// Default: "-1"
sm_restrict_xm1014_ct "-1"

// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:xm1014
// -
// Default: "-1"
sm_restrict_xm1014_t "-1"

// Sound to play when a weapon is restricted (leave blank to disable)
// -
// Default: "sound/admin_plugin/actions/restrictedweapon.wav"
sm_restricted_sound ""

// If 1 disables ff during warmup. If 0 leaves ff enabled
// -
// Default: "1"
sm_warmup_disable_ff "1"

// Enable warmup.
// -
// Default: "1"
sm_warmup_enable "1"

// Weather or not give infinite grenades if warmup weapon is grenades
// -
// Default: "1"
sm_warmup_infinite "1"

// Respawn players during warmup
// -
// Default: "1"
sm_warmup_respawn "1"

// Time after death before respawning player
// -
// Default: "0.5"
sm_warmup_respawn_time "0.5"

// How long in seconds warmup lasts
// -
// Default: "45"
sm_warmup_time "45"

// Enables admin immunity so admins can buy restricted weapons
// -
// Default: "0"
sm_weapon_restrict_immunity "0"


Kann mir jemand dabei weiterhelfen?

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »General« (8. Januar 2014, 18:05)


General

Super Moderator

Beiträge: 1 043

Wohnort: Mönchengladbach

Beruf: Brückenkranführer / Staplerfahrer

Rootserver vorhanden: Nein

  • Nachricht senden

2

Mittwoch, 8. Januar 2014, 18:11

du hast ein Dust2 Only server daher brauchst du keine cfg's anlegen, es reicht wenn du die ganz normale weapon_restrict.cfg hast.

änder das in deine cfg um siehe unten

weapon_restrict.cfg

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Set to 0 to allow awp pickup ONLY if it is under the max allowed. Set to 1 to use sm_allow_restricted_pickup method.
// -
// Default: "1"
sm_allow_awp_pickup "0"

// Set to 0 to ONLY allow pickup if under the max allowed. Set to 1 to allow restricted weapon pickup
// -
// Default: "0"
sm_allow_restricted_pickup "0"

// If enabled will count bots in per player restricts
// -
// Default: "1"
sm_perplayer_bots "0"

// If enabled will restrict awp per player count
// -
// Default: "0"
sm_perplayer_restrict "0"

// If enabled will count specs in per player restricts
// -
// Default: "1"
sm_perplayer_specs "0"

3

Mittwoch, 8. Januar 2014, 18:45

Ausprobiert - funktioniert nicht.

In /addons/sourcemod/configs/restrict muss es aber schon rein, oder?

Edit: Dumm muss man sein. Hab eindeutig den falschen Ordner erwischt... Sorry. :-D
Jetzt funktioniert es :-D

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Christian« (8. Januar 2014, 18:53)


General

Super Moderator

Beiträge: 1 043

Wohnort: Mönchengladbach

Beruf: Brückenkranführer / Staplerfahrer

Rootserver vorhanden: Nein

  • Nachricht senden

4

Mittwoch, 8. Januar 2014, 19:53

ne das Plugin erstellt automatisch eine weapon_restrict.cfg in cstrike/cfg/sourcemod/..

Ähnliche Themen