Addon Details

Watch - Add Favorite


Does this version work for you?
0
w00ts
w00t!2

Restrict guns - Version v.1.0

posted on 2008-06-12 03:19:51
by Floppy-NL



Description

View screenshot at "more images"

What am I?

This addon can be handy if you run a no summoning server (For example: Don't allow deagles on scoutzknivez). That's why I made this.

What does it do?
Whenever somebody shoots a gun which is forbidden on the map, it'll activate.

To prevent people getting punished using a gun which wasn't allowed on an old map, the allowed var resets every round.

Note
This is most likely only handy for mods where you're able to spawn guns on maps you don't want them to. (See below)

Please note that this is my first (and most likely last) addon.

Code for adding maps:

First go to this line (22):
Code:
      if(server_var(thismap) in "scoutzknivez awp_snipertowers") do

Add the mapname (without .bsp) within the doublequotes.

Then go to this part:
Code:
         if(server_var(thismap) equalto "aim_deagle7k") do
         {
            es_xsetinfo "allowed" "weapon_knife weapon_deagle weapon_nade"
         }


There just add like this:
Code:
         if(server_var(thismap) equalto "MAPNAME") do
         {
            es_xsetinfo "allowed" "Allowed guns"
         }

Installation

  1. Unzip the .ZIP in your Server folder (before cstrike)
  2. Change to your likes (Add maps)
  3. Add es_load restrictuns to your autoexec.cfg (or type ma_rcon es_load autoexec.cfg in console and change map)

Version Notes For v.1.0

Updated on: 2008-06-13 02:27:19 EST by Floppy-NL (View Zip Contents)
- Uses Mani admin code
- Changed ZIP archive

( Previous Versions )