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

[b]View screenshot at "more images"[/b] [size=18][color=green][b]What am I?[/b][/color][/size] 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. [size=18][color=green][b]What does it do?[/b][/color][/size] 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. [size=18][color=green][b]Note[/b][/color][/size] 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) [i]Please note that this is my first (and most likely last) addon.[/i] [b]Code for adding maps:[/b] First go to this line (22): [code] if(server_var(thismap) in "scoutzknivez awp_snipertowers") do[/code] 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" }[/code] There just add like this: [code] if(server_var(thismap) equalto "MAPNAME") do { es_xsetinfo "allowed" "Allowed guns" }[/code]

Installation

[list=1] [*]Unzip the .ZIP in your Server folder (before cstrike) [*]Change to your likes (Add maps) [*]Add [b]es_load restrictuns[/b] to your autoexec.cfg (or type [b]ma_rcon es_load autoexec.cfg[/b] in console and change map) [/list]

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 )