Knife only in CS:S maps?

wep restrictions

By Doctor Nuriel 1 year ago

It's probably obvious how to do this, but how exactly do I set a weapon restriction in my custom CS:S map, so that players only spawn with, for example, a knife?

I want to make a knife arena map, you see.

Thanks in advance!

4 posts 1,441 views
  • You must be a member

Replies

  • Ganryu's Levels
    • P2: Drudge
      Points: 3,588
    • E2: Guide
      EF: 30
    • C2: Treehouse Member
    • A4: Graduate
      Account Age: 3 years
    Username
    Ganryu
    Posted 1 year ago

    From what little knowledge of mapping and server setup I know, you will need 2 things. You will need:

    A. A script for the server that removes all weapons from the players except for the ones chosen.

    B. You need to leave out buy zones in the spawn areas for the map.

    When it comes to the script for the server, I'm sure most people will have that taken care of. As for the map, you just need to leave out the buy zones. I'll warn you now though, my info is limited when it comes to mapping so I would wait for someone else to say something in case I am wrong.

    User Title
    End a chapter, begin another.
  • Daan's Levels
    • P2: Drudge
      Points: 5,047
    • E1: Helper
      EF: 6
    • C1: Member
    • A4: Graduate
      Account Age: 4 years
    Posted 1 year ago
    1. Add the entity game_player_equip to your level.

    2. Disable SmartEdit

    3. Click on Add, and as Key the weapon you want (For example, weapon_knife)

    4. As value just use 0-1

    And this can be done with Server modding, Sourcemod had some restriction plugins.

    How to use the underscore again? Forgot how.

    • Agree x 3
    • Helpful x 2
    • Win x 1
    User Title
  • Doctor Nuriel's Levels
    • P2: Drudge
      Points: 2,041
    • C1: Member
    • A4: Graduate
      Account Age: 3 years
    Posted 1 year ago

    Thanks!

    Bananite
  • ASTFA's Levels
    • P2: Drudge
      Points: 3,415
    • E2: Guide
      EF: 38
    • C1: Member
    • A4: Graduate
      Account Age: 2 years
    Posted 1 year ago

    Posted by DoctorWaffles

    1. Add the entity gameplayerequip to your level.

    2. Disable SmartEdit

    3. Click on Add, and as Key the weapon you want (For example, weapon_knife)

    4. As value just use 0-1

    And this can be done with Server modding, Sourcemod had some restriction plugins.

    How to use the underscore again? Forgot how.

    I used a method very similar to the step by step guide by Doctor Waffles.

    To get underscores (_) showing you need place a backslash (\) before the underscore - (\_) << hopefully this will show.

    • Helpful x 1
    Ima noob n I help other noobs
  • You must be a member