Server will not restrict items
-
When I have the server try to restrict weapons or scorestreaks, it is not restricting/replacing them. I am new to server hosting, so I apologize if this is a newbie mistake, let me show what my configs looks like:
Note: I am trying to restrict EMP and Swarm Scorestreaks along with C4 and MMS. Setting up the configs like this is not restricting anything though.
restricted.cfg:
////////////////////////////////////////////////// // SYNTAX // ////////////////////////////////////////////////// // First line of a replacement group must be the// // weapon that will be given. With replacement // // as token. After that line there must be at // // LEAST ONE weapon that will be replaced. // // There is virtually no limit to how many // // weapons you can replace. // ////////////////////////////////////////////////// // EXAMPLES // ////////////////////////////////////////////////// // Weapons that will be replaced with a Beretta 93R replacement beretta93r_mp+extclip smaw_mp usrpg_mp // Weapons that will be replaced with a smoke grenade replacement willy_pete_mp concussion_grenade_mp proximity_grenade_mp flash_grenade_mp // Weapons that will be removed replacement none satchel_charge_mp claymore_mp ////////////////////////////////////////// // SPECIAL "WEAPONS" // ////////////////////////////////////////// //none // Only removes the gun //ai_tank_drone_gun_mp // Primary gun of the AGR //ai_tank_drone_rocket_mp // Secondary gun of the AGR //briefcase_bomb_defuse_mp // SD bomb on defusal //briefcase_bomb_mp // SD bomb on pickup //defaultweapon_mp // Default Weapon aka Finger Gun //destructible_car_mp // Exploding cars //explodable_barrel_mp // Exploding barrels //explosive_bolt_mp // Exploding crossbow bolt ////////////////////////////////////////// // SUBMACHINE WEAPONS // ////////////////////////////////////////// //mp7_mp // MP7 //pdw57_mp // PDW-57 //vector_mp // Vector K10 //insas_mp // MSMC //qcw05_mp // Chicom QCB //evoskorpion_mp // Scorpion EVO //peacekeeper_mp // Peacekeeper ////////////////////////////////////////// // ASSAULT RIFLES WEAPONS // ////////////////////////////////////////// //tar21_mp // MTAR //type95_mp // Type25 //sig556_mp // SWAT-556 //sa58_mp // FAL-OSW //hk416_mp // M27 //scar_mp // SCAR-H //saritch_mp // SMR //xm8_mp // M8A1 //an94_mp // AN94 ////////////////////////////////////////// // SHOTGUNS WEAPONS // ////////////////////////////////////////// //870mcs_mp // R870 MCS //saiga12_mp // S12 //ksg_mp // KSG //srm1216_mp // M1216 ////////////////////////////////////////// // LIGHT MACHINE WEAPONS // ////////////////////////////////////////// //mk48_mp // Mk 48 //qbb95_mp // QBB LSW //lsat_mp // LSAT //hamr_mp // HAMR ////////////////////////////////////////// // SNIPER RIFLES WEAPONS // ////////////////////////////////////////// //svu_mp // SVU-AS //dsr50_mp // DSR-50 //ballista_mp // Ballista //as50_mp // XPR-50 ////////////////////////////////////////// // SPEICAL WEAPONS // ////////////////////////////////////////// //riotshield_mp // Riot Shield //crossbow_mp // Crossbow //knife_ballistic_mp // Ballistic Knife //knife_held_mp // Held Knife ////////////////////////////////////////// // SECONDARY PISTOLS WEAPONS // ////////////////////////////////////////// //fiveseven_mp // Five-Seven //fnp45_mp // TAC-45 //beretta93r_mp // B23R //judge_mp // Executioner //kard_mp // KAP-40 ////////////////////////////////////////// // SECONDARY LAUNCHERS WEAPONS // ////////////////////////////////////////// //smaw_mp // Smaw //fhj18_mp // FHJ-18 //usrpg_mp // RPG ////////////////////////////////////////// // TACTICALS // ////////////////////////////////////////// //concussion_grenade_mp // Concussion Grenade - Disorients enemies and slows movement. //willy_pete_mp // Smoke Grenade - Produces a smoke screen immediately upon impact. //sensor_grenade_mp // Sensor Grenade - Detects enemy soldiers within line of sight. //emp_grenade_mp // EMP Grenade - Disables nearby enemy electronic systems. //proximity_grenade_mp // Shock Charge - Proximity triggered mine that electrocutes and stuns nearby enemies. //pda_hack_mp // Black Hat - Hack equipment and care packages, or disable enemy vehicles. //flash_grenade_mp // Flash Grenade - Blinds enemies and impairs hearing. //trophy_system_mp // Destroys incoming enemy projectiles within 10 meters. Vehicle missiles have a chance to penetrate //tactical_insertion_mp // Tactical Insertion (3rc Recommend to restrict on FFA) ////////////////////////////////////////// // LETHALS // ////////////////////////////////////////// //frag_grenade_mp // Frag Grenade - Produces lethal radius damage upon detonation. //sticky_grenade_mp // Semtex Grenade - that sticks to surfaces or the player before detonating. //hatchet_mp // Combat Axe - Retrievable axe that causes instant death on impact. //bouncingbetty_mp // Bouncing Betty - Proximity mine that launches into the air before detonating. Avoided by crouch & prone. replacement frag_grenade_mp satchel_charge_mp // C4 - A plastic explosive that is detonated remotely by double-tapping F for respects. //claymore_mp // Claymore - Directional anti-personnel mine that triggers a proximity-based explosion. ////////////////////////////////////////// // SCORE STREAKS // ////////////////////////////////////////// //spyplane_mp // UAV //rcbomb_mp // RC-XD //missile_drone_mp // Hunter Killer //supply_drop_mp // Care Package //counteruav_mp // Counter Uav //microwave_turret_mp // Guardian //remote_missile_mp // Hellstorm Missile //planemortar_mp // Lightning Strike (Confirmed) //auto_turret_mp // Sentry Gun //minigun_mp // Death Machine //m32_mp // War Machine //qrdrone_mp // Dragonfire //ai_tank_drop_mp // AGR //comlink_mp // Stealth Chopper (Confirmed) //spyplane_direction_mp // Orbital VSAT //helicopter_guard_mp // Escort Drone replacement supply_drop_mp emp_mp // EMP Systems //straferun_mp // Warthog //remote_mortar_mp // Lodestar //player_gunner_mp // VTOL Warship (Confirmed) //dogs_mp // K9 Unit missile_swarm_mp // Swarm //////////////////////////////////////////
Dedicated.cfg
/////////////////////////////////////////////////// /// PlutoT6 MP Server Configuration file // /////////////////////////////////////////////////// // This config best view with Notepad++ OR // // other *nix compatible editors of your choice. // /////////////////////////////////////////////////// // Remove "//" in front of lines to allow the // // server to read them. // // Anything after "//" is a comment. // /////////////////////////////////////////////////// ////////////////////////////////////////////////// // GENERAL CONFIGURATION // ////////////////////////////////////////////////// //g_password "" // Require a password to join your server. (Use "password <yourpassword>" to set it on the client before connecting) //sv_maxclients 18 // How many players can join your server. (1-18) //scr_showperksonspawn 1 // Display currently equipped perks on HUD when spawning (1 = On, 0 = Off) //scr_deleteexplosivesonspawn 1 // Remove thrown lethal explosives when killed (1 = On, 0 = Off) //sv_minPing 0 // Minimum ping needed to the server? (NOT recommended to edit, terribly broken and inaccurate since ages!) //sv_maxPing 400 // Maximum ping allowed to the server? (NOT recommended to edit, terribly broken and inaccurate since ages!) //scr_disable_cac 1 // Disable Custom Classes? //scr_max_rank 0 // Block every player with a level up this value //scr_min_prestige 0 // Block every player with a prestige below this value //sv_restrictionList "restricted.cfg" // Sets the file name for our restriction system. //sv_enableItemRestriction 1 // Enables our custom restriction system. //g_customteamnames "allies,Team 1|axis,Team 2" // Set custom team names on scoreboard. sv_voice "2" // Allow Voice Chat (0 = Disable 1 = Everyone hears you. 2 = Teams only) sv_voicequality "3" // Voice Chat Quality. (0-9) Default is 3 (= Steam/Console quality). Use 9 for the best quality. sv_allowAimAssist 1 // Allow Aim Assist on gamepads. (0 = Will lock the option on gamepad controls menu.) sv_allowDof 0 // Disallows the clients from having DoF to prevent a few DoF related glitches + gains a few frames. (0 = force off DoF on the clients, 1 = let the client decide) demo_enabled 1 // Record matches as demo files? 1 = Enabled, 0 = Disabled (Very efficient <5MB per match for a full server) sv_sayname "Console" // name server-side 'say' commands show up as sv_patch_dsr50 true // Apply DSR-50 patches on this server? (true = stock game, false = pre-patch DSR-50) ////////////////////////////////////////////////// ////////////////////////////////////////////////// // B3, IW4MADMIN, GAME LOG & RCON SETTINGS // ////////////////////////////////////////////////// g_logSync 2 // 0 only flush on game end, 1 flush when buffer full, 2 always flush after a write, 3 append to old logs. (Keep this at 2 if you plan on using a 3rd party admin tool) g_log "logs\games_mp.log" // IMPORTANT! Make sure the filename is unique for each server you clone! rcon_password "REDACTED" // RemoteCONtrol password. !!Do NOT skip if you plan on using a 3rd party admin tool such as B3 or IW4m-Admin!! ////////////////////////////////////////////////// ////////////////////////////////////////////////// // RESTRICTIONS CONFIGURATION // ////////////////////////////////////////////////// // BANNED ATTACHMENTS // ////////////////////////////////////////////////// //restrict_attachment "reflex" // Reflex //restrict_attachment "steadyaim" // Laser sight //restrict_attachment "silencer" // Suppressor/Silencer //restrict_attachment "dualclip" // Fast Mag //restrict_attachment "holo" // EOTech Sight //restrict_attachment "grip" // Grip //restrict_attachment "fastads" // Quickdraw //restrict_attachment "fmj" // Full Metal Jacket //restrict_attachment "extbarrel" // Long Barrel //restrict_attachment "rangefinder" // Target Finder //restrict_attachment "stalker" // Stock //restrict_attachment "extclip" // Extended Clip //restrict_attachment "dualoptic" // Hybrid Optic //restrict_attachment "sf" // Select Fire //restrict_attachment "rf" // Rapid Fire //restrict_attachment "gl" // Grenade Launcher restrict_attachment "mms" // Millimeter Scanner //restrict_attachment "acog" // ACOG Sight //restrict_attachment "swayreduc" // Ballistics CPU //restrict_attachment "vzoom" // Variable Zoom //restrict_attachment "ir" // Dual Band Scope //restrict_attachment "dw" // Dual Wield //restrict_attachment "tacknife" // Tactical Knife //restrict_attachment "stackfire" // Tri-Bolt (Crossbow) ////////////////////////////////////////////////// // RESTRICT PERK 1 // ////////////////////////////////////////////////// ////////////////////////////////////////////////// // Lightweight // // Move Faster. Take no damage when falling. // ////////////////////////////////////////////////// //restrict_item "specialty_movefaster|specialty_fallheight" ////////////////////////////////////////////////// // Hardline // // Earn Scorestreaks faster. // ////////////////////////////////////////////////// //restrict_item specialty_earnmoremomentum ////////////////////////////////////////////////// // Blind Eye // // Undetectable by AI controlled air support. // ////////////////////////////////////////////////// //restrict_item "specialty_nottargetedbyairsupport" ////////////////////////////////////////////////// // Flak Jacket // // Take less explosive damage // ////////////////////////////////////////////////// //restrict_item "specialty_flakjacket" ////////////////////////////////////////////////// // Ghost // // Cannnot be detected by enemy UAVs. // ////////////////////////////////////////////////// //restrict_item "specialty_gpsjammer" ////////////////////////////////////////////////// // RESTRICT PERK 2 // ////////////////////////////////////////////////// // Toughness // // Flinch less when shot. // ////////////////////////////////////////////////// //restrict_item "specialty_bulletflinch" ////////////////////////////////////////////////// // Cold Blooded // // Resistant to targeting systems. // // No name or red crosshair // ////////////////////////////////////////////////// //restrict_item "specialty_immunenvthermal|specialty_noname|specialty_immunerangefinder|specialty_nokillstreakreticle|specialty_immunemms|specialty_nomotionsensor" ////////////////////////////////////////////////// // Fast Hands // // Swap weapons and use equipment fast. // // Reset pin grenades. // ////////////////////////////////////////////////// //restrict_item "specialty_fastweaponswitch|specialty_pin_back|specialty_fasttoss|specialty_fastequipmentuse" ////////////////////////////////////////////////// // Hardwire // // Immune to counter-UAV and EMP // ////////////////////////////////////////////////// //restrict_item "specialty_immunecounteruav|specialty_immuneemp" ////////////////////////////////////////////////// // Scavenger // // Refill ammo on people you killed. // ////////////////////////////////////////////////// //restrict_item "specialty_scavenger" ////////////////////////////////////////////////// // RESTRICT PERK 3 // ////////////////////////////////////////////////// // Dexterity // // Aim faster after sprinting. // // Mantle and climb faster. // ////////////////////////////////////////////////// //restrict_item "specialty_fastmantle|specialty_fastladderclimb|specialty_sprintrecovery|specialty_fastmeleerecovery" ////////////////////////////////////////////////// // Extreme Conditioning // // Aim faster after sprinting. // // Mantle and climb faster. // ////////////////////////////////////////////////// //restrict_item specialty_longersprint ////////////////////////////////////////////////// // Engineer // // Reroll & booby trap Care Packages. // // Show enemy equipment in the world. // // Delay explosives. // ////////////////////////////////////////////////// //restrict_item "specialty_showenemyequipment|specialty_delayexplosive" ////////////////////////////////////////////////// // Tactical Mask // // Reduces effects of flashbangs,Concussion, // // Shock Charges. // ////////////////////////////////////////////////// //restrict_item "specialty_stunprotection|specialty_flashprotection|specialty_proximityprotection" ////////////////////////////////////////////////// // Dead Silence // // Move silently and be very sneaky sneaky. // ////////////////////////////////////////////////// //restrict_item "specialty_quieter" ////////////////////////////////////////////////// // Awareness // // Enemy movements are easier to hear. // ////////////////////////////////////////////////// //restrict_item "specialty_loudenemies" ////////////////////////////////////////////////// ////////////////////////////////////////////////// //Wild Card Perks // ////////////////////////////////////////////////// //restrict_item "bonuscard_perk_1_greed" // Perk 1 Greed - Take a second perk. //restrict_item "bonuscard_perk_2_greed" // Perk 2 Greed - same as a above. //restrict_item "bonuscard_perk_3_greed" // Perk 3 Greed - sigh...same as above. //restrict_item "bonuscard_overkill" // Overkill - Take a primary weapon as your second weapon. //restrict_item "bonuscard_secondary_gunfighter"// Secondary Gunfighter - Take a 2nd attachment for your second weapon. //restrict_item "bonuscard_primary_gunfighter" // Primary Gunfighter - Take a 2nd attachment for your second weapon. //restrict_item "bonuscard_two_tacticals" // Tactician - Take a tactical grenade in place of your lethal grenade. //restrict_item "bonuscard_danger_close" // Danger Close - Take a second lethal. ////////////////////////////////////////////////// ////////////////////////////////////////////////// // GAMETYPES LIST // ////////////////////////////////////////////////// // // // Free-for-all - exec dm.cfg // // Team Deathmatch - exec war.cfg // // Domination - exec dom.cfg // // Demolition - exec dem.cfg // // Search & Destory - exec sd.cfg // // Kill Confirmed - exec conf.cfg // // Headquarters - exec hq.cfg // // Capture the Flag - exec ctf.cfg // // Hardpoint - exec koth.cfg // // One-flag CTF - exec onflag.cfg // // // // PARTY GAMEMODES // // // // One in the chamber - exec oic.cfg // // Gun Game - exec gun.cfg // // Sharpshooter - exec shrp.cfg // // Stick and Stones - exec sas.cfg // // // // INFORMATION // // // // If you want to edit your time & score limit. // // Go to your "gamsettings" folder edit those // // configs after you finish your server.cfg // // // ////////////////////////////////////////////////// // MAP SHORT NAMES ROTATION LIST // ////////////////////////////////////////////////// // // // Aftermath - mp_la // // Cargo - mp_dockside // // Carrier - mp_carrier // // Drone - mp_drone // // Express - mp_express // // Hijacked - mp_hijacked // // Meltdown - mp_meltdown // // Overflow - mp_overflow // // Plaza - mp_nightclub // // Raid - mp_raid // // Slums - mp_slums // // Standoff - mp_village // // Turbine - mp_turbine // // Yemen - mp_socotra // // // // BONUS MAP // // // // Nuketown 2025 - mp_nuketown_2020 // // // // // // REVOLUTION DLC 1 // // // // Downhill - mp_downhill // // Mirage - mp_mirage // // Hydro - mp_hydro // // Grind - mp_skate // // // // UPRISING DLC 2 // // // // Encore - mp_concert // // Magma - mp_magma // // Vertigo - mp_vertigo // // Studio - mp_studio // // // // VENGEANCE DLC 3 // // // // Uplink - mp_uplink // // Detour - mp_bridge // // Cove - mp_castaway // // Rush - mp_paintball // // // // APOCALYPSE DLC 4 // // // // Dig - mp_dig // // Frost - mp_frostbite // // Pod - mp_pod // // Takeoff - mp_takeoff // // // ////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// // EXAMPLE MAP+GAMETYPES ROTATIONS // ///////////////////////////////////////////////////////////////////// // Single Game Mode + Maps: // // sv_maprotation "exec tdm.cfg map mp_dig map mp_pod map mp_raid" // // // // Several Mix Game Modes + Maps: // // sv_maprotation "exec tdm.cfg map mp_la exec dm.cfg map mp_dig" // ///////////////////////////////////////////////////////////////////// // MAP ROTATION (Edit the below to your liking) // ///////////////////////////////////////////////////////////////////// sv_maprotation "exec tdm.cfg map mp_la map mp_dockside map mp_drone map mp_express map mp_hijacked map mp_meltdown map mp_overflow map mp_nightclub map mp_raid map mp_slums map mp_village map mp_socotra map mp_nuketown_2020 map mp_downhill map mp_mirage map mp_hydro map mp_skate map mp_concert map mp_magma map mp_vertigo map mp_studio map mp_uplink map mp_paintball map mp_frostbite map mp_takeoff exec dm.cfg map mp_la map mp_dockside map mp_drone map mp_express map mp_hijacked map mp_meltdown map mp_overflow map mp_nightclub map mp_raid map mp_slums map mp_village map mp_socotra map mp_nuketown_2020 map mp_downhill map mp_mirage map mp_hydro map mp_skate map mp_concert map mp_magma map mp_vertigo map mp_studio map mp_uplink map mp_paintball map mp_frostbite map mp_takeoff exec koth.cfg map mp_la map mp_dockside map mp_drone map mp_express map mp_hijacked map mp_meltdown map mp_overflow map mp_nightclub map mp_raid map mp_slums map mp_village map mp_socotra map mp_nuketown_2020 map mp_downhill map mp_mirage map mp_hydro map mp_skate map mp_concert map mp_magma map mp_vertigo map mp_studio map mp_uplink map mp_paintball map mp_frostbite map mp_takeoff" // Congratulations. You reached the end of this file. Leave map_rotate down below or else the server will not start after launch... map_rotate
-
tommy61157 said in Server will not restrict items:
//sv_restrictionList "restricted.cfg" // Sets the file name for our restriction system.
//sv_enableItemRestriction 1 // Enables our custom restriction system.You might want to remove the // in from of those two lines.
-
I literally just realized that, lol, sorry, but now when I do that, it won't restrict MMS, Swarm, or EMP, they still show up for people even though the console says they should be getting replaced. Is there anything else I did wrong? Sorry, I just got started with this stuff.
-
Do they just show up on the class selection screen or can you use them?
-
Someone was using MMS, and Swarm and EMP were showing up in the scorestreak list in game (Not sure what would happen when the person tries to use them though) Also, noticed in the console that it acknowledged the scorestreaks EMP and Swarm should be replaced with a care package, but it still did not have an effect. But replacing the C4 with a frag grenade is working.
The MMS removal is not even acknowledged in the console and is freely usable.
-
tommy61157
To restrict weapon attachments, you must place the following inside each game mode .cfg file. This is an example of my "tdm.cfg" file which is in the "gamesettings" folder. This will apply by restricting weapon attachments for TDM game mode, if you want to pair to another mode, you must set the same to the other mode. Note that whatever you want to restrict, you must remove the "//"// BANNED ATTACHMENTS // ////////////////////////////////////////////////// //restrict_attachment "reflex" // Reflex //restrict_attachment "steadyaim" // Laser sight //restrict_attachment "silencer" // Suppressor/Silencer //restrict_attachment "dualclip // Fast Mag //restrict_attachment "holo" // EOTech Sight //restrict_attachment "grip" // Grip //restrict_attachment "fastads" // Quickdraw //restrict_attachment "fmj" // Full Metal Jacket //restrict_attachment "extbarrel" // Long Barrel restrict_attachment "rangefinder" // Target Finder //restrict_attachment "stalker" // Stock //restrict_attachment "extclip" // Extended Clip //restrict_attachment "dualoptic" // Hybrid Optic //restrict_attachment "sf" // Select Fire //restrict_attachment "rf" // Rapid Fire restrict_attachment "gl" // Grenade Launcher restrict_attachment "mms" // Millimeter Scanner //restrict_attachment "acog" // ACOG Sight //restrict_attachment "swayreduc" // Ballistics CPU //restrict_attachment "vzoom" // Variable Zoom //restrict_attachment "ir" // Dual Band Scope //restrict_attachment "dw" // Dual Wield //restrict_attachment "tacknife" // Tactical Knife //restrict_attachment "stackfire" // Tri-Bolt (Crossbow)
-
Kalitos said in Server will not restrict items:
tommy61157
To restrict weapon attachments, you must place the following inside each game mode .cfg file. This is an example of my "tdm.cfg" file which is in the "gamesettings" folder. This will apply by restricting weapon attachments for TDM game mode, if you want to pair to another mode, you must set the same to the other mode. Note that whatever you want to restrict, you must remove the "//"// BANNED ATTACHMENTS // ////////////////////////////////////////////////// //restrict_attachment "reflex" // Reflex //restrict_attachment "steadyaim" // Laser sight //restrict_attachment "silencer" // Suppressor/Silencer //restrict_attachment "dualclip // Fast Mag //restrict_attachment "holo" // EOTech Sight //restrict_attachment "grip" // Grip //restrict_attachment "fastads" // Quickdraw //restrict_attachment "fmj" // Full Metal Jacket //restrict_attachment "extbarrel" // Long Barrel restrict_attachment "rangefinder" // Target Finder //restrict_attachment "stalker" // Stock //restrict_attachment "extclip" // Extended Clip //restrict_attachment "dualoptic" // Hybrid Optic //restrict_attachment "sf" // Select Fire //restrict_attachment "rf" // Rapid Fire restrict_attachment "gl" // Grenade Launcher restrict_attachment "mms" // Millimeter Scanner //restrict_attachment "acog" // ACOG Sight //restrict_attachment "swayreduc" // Ballistics CPU //restrict_attachment "vzoom" // Variable Zoom //restrict_attachment "ir" // Dual Band Scope //restrict_attachment "dw" // Dual Wield //restrict_attachment "tacknife" // Tactical Knife //restrict_attachment "stackfire" // Tri-Bolt (Crossbow)
Does this also apply to scorestreaks as well? They aren't properly replacing for me either.
-
tommy61157 said in Server will not restrict items:
a a las rachas de puntos? Tampoco me reemplazan correctamente.
No, you have that in "restricted.cfg", but try there too
-
It's working... not as expected, but I think it is working, this can be closed now, thanks