View Single Post
darkallience32
Junior Member
Join Date: Jan 2018
Old 01-18-2023 , 14:39   Re: Restrict weapons on specific maps
Reply With Quote #3

Exemplu: awp_bycastor32
In cstrike/addons/amxmodx/configs creezi un folder gol, cu numele maps
Adaugi awp_bycastor32.cfg in cstrike/addons/amxmodx/configs/maps
In cstrike/addons/amxmodx/configs/csdm creezi un folder cu numele items
Adaugi awp_bycastor32.cfg in cstrike/addons/amxmodx/configs/csdm/items
- Un awp_bycastor32.cfg contine linia care citeste celalalt .cfg din items

Quote:
csdm_reload "csdm\items\awp_bycastor32.cfg"
Celalalt awp_bycastor32.cfg contine meniu cu armele permise, in exemplu primesti armura/HE/Deagle/AWP
Quote:
[equip]

;Equip Menu flags:
; p - primary
; s - secondary
; a - armor
; g - grenade
; b - buy
menus = psag

;Autoitem flags:
; a - armor
; h - helmet
; g - grenades
; d - defusekit (CTs only!)
; n - nightvision
autoitems = ahg

;Grenade flags:
; f - flashbang
; h - he grenade
; s - smoke grenade
grenades = h

;Sets number of flashbangs given if
; grenades are enabled
fnadesnum = 0

;;;;;;;;;;;;;;;;
;;WEAPON MENUS;;
;;;;;;;;;;;;;;;;

;Format for weapon menus is:
;shortname "Display Name" menupage
;Change the '1' to a '0' to block the weapon
;Removing or moving things
; from the list will change the order of the menus!

[secondary]
deagle Deagle 1

[primary]
awp AWP 1


;List weapons here the bots can randomly have
;The short name must match one in the list above
[botsecondary]
deagle

[botprimary]
awp
Partea mai "grea" cu aceste restrictii intervine atunci cand nu poti face restrictia tuturor mapelor awp_ in folderul items. Am luat ca
exemplu awp_bycastor32, pentru awp_zigzag, awp_map, awp_garden, awp_metro de exemplu, trebuie sa le faci restrictia in:
CODE: SELECT ALL
Quote:
cstrike/addons/amxmodx/configs/csdm/extraconfigs
Mereu am testat cu CSDM 2.1.2 pe serverul de teste, posibil ca tu pe acel BUILD cu CSDM 2.1.3 sa nu ai probleme, sau la tine poate
fi invers, unde eu am restrictia in items, tu sa o ai in extraconfigs. Pana nu incerci, nu stii. Nu se intampla nimic, doar ca nu merge
restrictia + apare mesaj de avertizare in chat.
Tu incerci la orice mapa cu primul pas (items), daca nu merge restrictia o sa primesti automat in chat:
Quote:
Unable to load config file...
In acest caz, o sa rezolvi restrictia urmand pasii de mai sus, dar in loc de items, alegi extraconfigs (acesta trebuie creat langa items).
Iti dau eu cateva mape cu restrictie atat in items cat si in extraconfigs, ca sa intelegi!
Dupa ce urci restrictiile, ramane doar sa iti descarci mapele, restrictiile actuale sunt pentru:
Quote:
35hp_4
awp_bycastor32
awp_csromania
awp_dunhill
awp_dust32
awp_garden
awp_hekstrike
awp_linkmania
awp_lol
awp_map
awp_metro
awp_zigzag
Download :http://www.mediafire.com/download/6w...TION_iNdio.rar
__________________
Connect : CSDM.ZEROHP.RO
IP SERVER : 162.19.195.149:27015
Mod: Respawn | Status: Online | Owner: [COLOR="Lime"]SeeTherr

darkallience32 is offline