AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   CSDM (https://forums.alliedmods.net/forumdisplay.php?f=87)
-   -   Restrict weapons for certain maps (https://forums.alliedmods.net/showthread.php?t=46144)

KWo 03-06-2008 14:06

Re: Restrict weapons for certain maps
 
Just use my beta and Your per map config things and it should be OK...

Aje 03-06-2008 20:26

Re: Restrict weapons for certain maps
 
Quote:

Originally Posted by KWo (Post 593885)
Just use my beta and Your per map config things and it should be OK...

ok kool... Do i need to do anything elese other than installing ur version?

I want to play cs_deagle5 with deagles only

Cheers

KWo 03-07-2008 01:35

Re: Restrict weapons for certain maps
 
Yes - after isntalling You just need to read a bit the config files and also this topic here - about per map config things.

Aje 03-07-2008 19:12

Re: Restrict weapons for certain maps
 
Quote:

Originally Posted by KWo (Post 594103)
Yes - after isntalling You just need to read a bit the config files and also this topic here - about per map config things.

Wouldn't it work if i add the per map config file with the Official CSDM V2.1?

I have put in this file
C:\Counter-Strike\cstrike\addons\amxmodx\configs\maps

Code:

;;;;;;;;;;;;;;;;
;;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]
usp USP 0
glock18 Glock 0
deagle Deagle 1
p228 P228 0
elite Elite 0
fiveseven "Five Seven" 0

[primary]
m4a1 M4A1 0
ak47 AK47 0
aug AUG 0
sg552 SG552 0
galil Galil 0
famas Famas 0
scout Scout 0
awp AWP 0
sg550 SG550 0
m249 M249 0
g3sg1 G3SG1 0
ump45 "UMP 45" 0
mp5navy "MP5 Navy" 0
m3 M3 0
xm1014 XM1014 0
tmp TMP 0
mac10 "Mac 10" 0
p90 P90 0

mp_freezetime 0
mp_timelimit 0

Could you also help me with sv_downloadurl Please?

Thanks

Link: http://forums.alliedmods.net/showthread.php?t=67825

KWo 03-08-2008 14:54

Re: Restrict weapons for certain maps
 
Quote:

Originally Posted by Aje (Post 594328)
Wouldn't it work if i add the per map config file with the Official CSDM V2.1?

I have put in this file
C:\Counter-Strike\cstrike\addons\amxmodx\configs\maps

You need to have there the file called cs_deagle5.cfg with these lines:
Code:

csdm_reload "csdm\extraconfigs\items_cs_deagle5.cfg"
mp_freezetime 0
mp_timelimit 0

As You can see these cvars should be here, and the map specyfic configuration You have posted (except these 2 last lines they are already above) should be stored in the file items_cs_deagle5.cfg placed in csdm\extraconfigs folder (this what You have posted with all pistols greyed out except deagle and primary weapon grayed out).
There is also a better solution - instead have all grayed items in the menu You don't need to have them at all except deagle. All You need is this:
Code:

[secondary]
deagle Deagle 1

[primary]

[equip]
menus = s

Instead asking if it works with original 2.1 (You should use 2.1.1 if You are using AMX X 1.8.0) just try if it works - it will take You less time than waiting for my reply. It should, but with 2.1 version was a problem with too short path possible for extraconfig files (fixed a bit, but not finally in 2.1.1). In my version it works.

Aje 03-08-2008 18:43

Re: Restrict weapons for certain maps
 
will that disable the CSDM weapon choose?

Cos maps like cs_deagle5 provide deagle.. and i dont want others to buy anything elese... Similar with awp maps

KWo 03-09-2008 04:55

Re: Restrict weapons for certain maps
 
Quote:

Originally Posted by Aje (Post 594700)
will that disable the CSDM weapon choose?

Cos maps like cs_deagle5 provide deagle.. and i dont want others to buy anything elese... Similar with awp maps

Yes, it is supposed to do exactly that. The only thing You will be able to see in Equip menu will be the deagle. I don't know if You are leting the people to use nades or helmet and kevlar on cs_deagle5 map, but if not - You can also disable them this way,having these lines in items_cs_deagle5.cfg:
Code:

autoitems =
grenades =

Just try to change those settings to see what they have the influence for what, then You will be able understand better what I'm trying to explain You. You just need to do more tests.

Darknightcze2 10-03-2008 05:03

Re: Restrict weapons for certain maps
 
I have problem.
Restrict weapon per map working.
But when i connect fast(select team) after change map.
Show me original default weapon menu with all guns. (here i can choose primary weapon without problems.)
After show in chat "[CSDM] Config file reloaded" (config with etc. only dgl) AMXX late load map config.
When user connect late. He have menu with only deagle.

Code:

configs/maps/cs_deagle5.cfg
csdm_reload "csdm\extraconfigs\csdm-dgl.cfg"


configs/csdm/extraconfigs/csdm-dgl.cfg
[secondary]
;usp USP 1
;glock18 Glock 1
deagle Deagle 1
;p228 P228 1
;elite Elite 1
;fiveseven "Five Seven" 1

[primary]
m4a1 M4A1 0
;ak47 AK47 1
;aug AUG 1
;sg552 SG552 1
;galil Galil 1
;famas Famas 1
;scout Scout 1
;awp AWP 1
;sg550 SG550 1
;m249 M249 1
;g3sg1 G3SG1 1
;ump45 "UMP 45" 1
;mp5navy "MP5 Navy" 1
;m3 M3 1
;xm1014 XM1014 1
;tmp TMP 1
;mac10 "Mac 10" 1
;p90 P90 1
[equip]

;Equip Menu flags:
menus = sa

AMXX-modules
Code:

11:01:26 Currently loaded modules:
        name                    version    author              status   
        MySQL                  1.8.1.3746  AMX Mod X Dev Team  running   
        Fun                    1.8.1.3746  AMX Mod X Dev Team  running   
        Engine                  1.8.1.3746  AMX Mod X Dev Team  running   
        FakeMeta                1.8.1.3746  AMX Mod X Dev Team  running   
        CStrike                1.8.1.3746  AMX Mod X Dev Team  running   
        CSX                    1.8.1.3746  AMX Mod X Dev Team  running   
        Ham Sandwich            1.8.1.3746  AMX Mod X Dev Team  running   
        GeoIP                  1.8.1.3746  AMX Mod X Dev Team  running   
        CSDM2                  2.1.1      CSDM Team            running   
        9 modules


Teambash 10-18-2009 10:10

Re: Restrict weapons for certain maps
 
i need help.

I search a plugin who the terrorist no weapon glock have for jail mod can zou help me

the weapon glock and usp have all person a tt an ct can a block the weapon and beginn in the new round all knife no usp and glock pls help meee


sorry my englisch is very bad

The Art of War 01-28-2010 11:33

Re: Restrict weapons for certain maps
 
Lol, if you have a HLDS, just go to configs and then theres a map in which you can restrict weapons on certain maps. Even I (which is one of the greatest noobs in the universe of coding) did it :D


All times are GMT -4. The time now is 05:12.

Powered by vBulletin®
Copyright ©2000 - 2022, vBulletin Solutions, Inc.