How to make a counter strike source server that only allow a specific weapon to use?

How to make a counter strike source server that only allow a specific weapon to use? - Top view of various multicolored toys for fight arranged on pink background as representation of game

How to make a counter strike source server that prevent users' from buying any weapon or anything, just give them a specific weapon that used by the all players ?



Best Answer

Without plugins the best way to disable weapons in general is to do the following:

  1. go to the cstrike/scripts/ directory of your server
  2. rename or move all weapon_xy.ctx files of the weapons you do not wish to be used
  3. If the server complains about file consistency you might have to disable sv_pure, but it should be fine as-is.

Disclaimer:
This will make the weapon unusable, but people will still be charged money for trying to buy them. Also the removed weapons will be disabled globally on all maps.

Usually it is easier to use plugins for this, like Mattie Eventscripts or Mani Admin (where you can disable weapons in config files), but this is how you do it without them.




Pictures about "How to make a counter strike source server that only allow a specific weapon to use?"

How to make a counter strike source server that only allow a specific weapon to use? - Smiling blonde in white blouse squeezing fresh juice into stainless shaker while preparing cocktail in bar
How to make a counter strike source server that only allow a specific weapon to use? - Crop women rolling dough on board
How to make a counter strike source server that only allow a specific weapon to use? - Unrecognizable female cook flattening dough with rolling pin while standing at table with wooden board against blurred background in kitchen



Quick Answer about "How to make a counter strike source server that only allow a specific weapon to use?"

  • go to the cstrike/scripts/ directory of your server.
  • rename or move all weapon_xy. ctx files of the weapons you do not wish to be used.
  • If the server complains about file consistency you might have to disable sv_pure , but it should be fine as-is.




  • Counter-Strike: Source - Make A GunGame Server with Bots Tutorial - Custom Maps \u0026 Gameplay Showcase




    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Anna Shvets, Andrea Piacquadio, Katerina Holmes, Katerina Holmes