View Full Version : Bind rifles only
Dodger
04-19-2004, 01:39 PM
I wood like to bind a key to make map rifles only.
i have tryed to do it but all i get is the 1st one in the bind to work and i wood bind a 2nd key to put on the mg's :(
Create a rifles only config; put it on the server (in MAIN of course). Bind a key to execute that config and issue a map restart.
Here's what you can have in your rifles only config(let's save it as riflesonly.cfg) :
// Weapons - diable all weapons except for rifles
// "0" disables a weapon, "1" enables it
set scr_allow_bar 0
set scr_allow_bren 0
set scr_allow_enfield 1
set scr_allow_fg42 0
set scr_allow_kar98k 1
set scr_allow_kar98ksniper 0
set scr_allow_m1carbine 1
set scr_allow_m1garand 1
set scr_allow_mp40 0
set scr_allow_mp44 0
set scr_allow_nagant 1
set scr_allow_nagantsniper 0
set scr_allow_panzerfaust 0
set scr_allow_ppsh 0
set scr_allow_springfield 0
set scr_allow_sten 0
set scr_allow_thompson 0
//restart the map to ensure the settings are in effect
map_restart
Bind Key Example
/bind F5 "toggleconsole;rcon exec riflesonly.cfg;toggleconsole"
or
/bind F5 "rcon exec riflesonly.cfg"
There are many ways you can do this, I just fine this the simpliest.
Oh if you want to go back to normal, you could simply add another bind to re-execute your main server config:
i.e. /bind F6 "rcon exec dedicated.cfg" (or whatever your server config is named)
Dodger
04-19-2004, 07:10 PM
thanks
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.