Raised This Month: $12 Target: $400
 3% 

[CSS/CS:GO] Weapon Restrict


Post New Thread Reply   
 
Thread Tools Display Modes
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-25-2011 , 15:31   Re: [CSS] Weapon Restrict
Reply With Quote #701

Quote:
Originally Posted by gwhooooey View Post
The weapon_restrict.cfg file, as I don't want it on per-player basis, I want those guns restricted permanently. Not getting any errors other than it not actually restricting the weapons.

All the changes I've made since installing it were mentioned in my above post.
This is how your config should look if you want to limit AWPs and Autos to 0 for all players on your server:

Code:
// This file was auto-generated by SourceMod (v1.3.3-dev)
// ConVars for plugin "weapon_restrict.smx"


// If set to 1 it will NOT remove restricted weapons on pickup but rather on Round start, if set to 0 it will remove on pickup
// -
// Default: "0"
sm_allow_restricted_pickup "0"

// If enabled will restrict awp per player count
// -
// Default: "0"
sm_perplayer_restrict "0"

// Restrict/Unrestrict -1 unrestricts ak47 for ct
// -
// Default: "-1"
sm_restrict_ak47_ct "-1"

// Restrict/Unrestrict -1 unrestricts ak47 for t
// -
// Default: "-1"
sm_restrict_ak47_t "-1"

// Restrict/Unrestrict -1 unrestricts aug for ct
// -
// Default: "-1"
sm_restrict_aug_ct "-1"

// Restrict/Unrestrict -1 unrestricts aug for t
// -
// Default: "-1"
sm_restrict_aug_t "-1"

// Restrict/Unrestrict -1 unrestricts awp for ct
// -
// Default: "-1"
sm_restrict_awp_ct "0"

// Restrict/Unrestrict -1 unrestricts awp for t
// -
// Default: "-1"
sm_restrict_awp_t "0"

// Restrict/Unrestrict -1 unrestricts c4 for t
// -
// Default: "-1"
sm_restrict_c4 "-1"

// Restrict/Unrestrict -1 unrestricts deagle for ct
// -
// Default: "-1"
sm_restrict_deagle_ct "-1"

// Restrict/Unrestrict -1 unrestricts deagle for t
// -
// Default: "-1"
sm_restrict_deagle_t "-1"

// Restrict/Unrestrict -1 unrestricts defuser for ct
// -
// Default: "-1"
sm_restrict_defuser "-1"

// Restrict/Unrestrict -1 unrestricts elite for ct
// -
// Default: "-1"
sm_restrict_elite_ct "-1"

// Restrict/Unrestrict -1 unrestricts elite for t
// -
// Default: "-1"
sm_restrict_elite_t "-1"

// Restrict/Unrestrict -1 unrestricts famas for ct
// -
// Default: "-1"
sm_restrict_famas_ct "-1"

// Restrict/Unrestrict -1 unrestricts famas for t
// -
// Default: "-1"
sm_restrict_famas_t "-1"

// Restrict/Unrestrict -1 unrestricts fiveseven for ct
// -
// Default: "-1"
sm_restrict_fiveseven_ct "-1"

// Restrict/Unrestrict -1 unrestricts fiveseven for t
// -
// Default: "-1"
sm_restrict_fiveseven_t "-1"

// Restrict/Unrestrict -1 unrestricts flashbang for ct
// -
// Default: "-1"
sm_restrict_flashbang_ct "-1"

// Restrict/Unrestrict -1 unrestricts flashbang for t
// -
// Default: "-1"
sm_restrict_flashbang_t "-1"

// Restrict/Unrestrict -1 unrestricts g3sg1 for ct
// -
// Default: "-1"
sm_restrict_g3sg1_ct "0"

// Restrict/Unrestrict -1 unrestricts g3sg1 for t
// -
// Default: "-1"
sm_restrict_g3sg1_t "0"

// Restrict/Unrestrict -1 unrestricts galil for ct
// -
// Default: "-1"
sm_restrict_galil_ct "-1"

// Restrict/Unrestrict -1 unrestricts galil for t
// -
// Default: "-1"
sm_restrict_galil_t "-1"

// Restrict/Unrestrict -1 unrestricts glock for ct
// -
// Default: "-1"
sm_restrict_glock_ct "-1"

// Restrict/Unrestrict -1 unrestricts glock for t
// -
// Default: "-1"
sm_restrict_glock_t "-1"

// Restrict/Unrestrict -1 unrestricts hegrenade for ct
// -
// Default: "-1"
sm_restrict_hegrenade_ct "-1"

// Restrict/Unrestrict -1 unrestricts hegrenade for ct
// -
// Default: "-1"
sm_restrict_hegrenade_t "-1"

// Restrict/Unrestrict -1 unrestricts m249 for ct
// -
// Default: "-1"
sm_restrict_m249_ct "-1"

// Restrict/Unrestrict -1 unrestricts m249 for t
// -
// Default: "-1"
sm_restrict_m249_t "-1"

// Restrict/Unrestrict -1 unrestricts m3 for ct
// -
// Default: "-1"
sm_restrict_m3_ct "-1"

// Restrict/Unrestrict -1 unrestricts m3 for t
// -
// Default: "-1"
sm_restrict_m3_t "-1"

// Restrict/Unrestrict -1 unrestricts m4a1 for ct
// -
// Default: "-1"
sm_restrict_m4a1_ct "-1"

// Restrict/Unrestrict -1 unrestricts m4a1 for t
// -
// Default: "-1"
sm_restrict_m4a1_t "-1"

// Restrict/Unrestrict -1 unrestricts mac10 for ct
// -
// Default: "-1"
sm_restrict_mac10_ct "-1"

// Restrict/Unrestrict -1 unrestricts mac10 for t
// -
// Default: "-1"
sm_restrict_mac10_t "-1"

// Restrict/Unrestrict -1 unrestricts mp5navy for ct
// -
// Default: "-1"
sm_restrict_mp5navy_ct "-1"

// Restrict/Unrestrict -1 unrestricts mp5navy for t
// -
// Default: "-1"
sm_restrict_mp5navy_t "-1"

// Restrict/Unrestrict -1 unrestricts nvgs for ct
// -
// Default: "-1"
sm_restrict_nvgs_ct "-1"

// Restrict/Unrestrict -1 unrestricts nvgs for t
// -
// Default: "-1"
sm_restrict_nvgs_t "-1"

// Restrict/Unrestrict -1 unrestricts p228 for ct
// -
// Default: "-1"
sm_restrict_p228_ct "-1"

// Restrict/Unrestrict -1 unrestricts p228 for t
// -
// Default: "-1"
sm_restrict_p228_t "-1"

// Restrict/Unrestrict -1 unrestricts p90 for ct
// -
// Default: "-1"
sm_restrict_p90_ct "-1"

// Restrict/Unrestrict -1 unrestricts p90 for t
// -
// Default: "-1"
sm_restrict_p90_t "-1"

// Restrict/Unrestrict -1 unrestricts scout for ct
// -
// Default: "-1"
sm_restrict_scout_ct "-1"

// Restrict/Unrestrict -1 unrestricts scout for t
// -
// Default: "-1"
sm_restrict_scout_t "-1"

// Restrict/Unrestrict -1 unrestricts sg550 for ct
// -
// Default: "-1"
sm_restrict_sg550_ct "0"

// Restrict/Unrestrict -1 unrestricts sg550 for t
// -
// Default: "-1"
sm_restrict_sg550_t "0"

// Restrict/Unrestrict -1 unrestricts sg552 for ct
// -
// Default: "-1"
sm_restrict_sg552_ct "-1"

// Restrict/Unrestrict -1 unrestricts sg552 for t
// -
// Default: "-1"
sm_restrict_sg552_t "-1"

// Restrict/Unrestrict -1 unrestricts smokegrenade for ct
// -
// Default: "-1"
sm_restrict_smokegrenade_ct "-1"

// Restrict/Unrestrict -1 unrestricts smokegrenade for t
// -
// Default: "-1"
sm_restrict_smokegrenade_t "-1"

// Restrict/Unrestrict -1 unrestricts tmp for ct
// -
// Default: "-1"
sm_restrict_tmp_ct "-1"

// Restrict/Unrestrict -1 unrestricts tmp for t
// -
// Default: "-1"
sm_restrict_tmp_t "-1"

// Restrict/Unrestrict -1 unrestricts ump45 for ct
// -
// Default: "-1"
sm_restrict_ump45_ct "-1"

// Restrict/Unrestrict -1 unrestricts ump45 for t
// -
// Default: "-1"
sm_restrict_ump45_t "-1"

// Restrict/Unrestrict -1 unrestricts usp for ct
// -
// Default: "-1"
sm_restrict_usp_ct "-1"

// Restrict/Unrestrict -1 unrestricts usp for t
// -
// Default: "-1"
sm_restrict_usp_t "-1"

// Restrict/Unrestrict -1 unrestricts vest for ct
// -
// Default: "-1"
sm_restrict_vest_ct "-1"

// Restrict/Unrestrict -1 unrestricts vest for t
// -
// Default: "-1"
sm_restrict_vest_t "-1"

// Restrict/Unrestrict -1 unrestricts vesthelm for ct
// -
// Default: "-1"
sm_restrict_vesthelm_ct "-1"

// Restrict/Unrestrict -1 unrestricts vesthelm for t
// -
// Default: "-1"
sm_restrict_vesthelm_t "-1"

// Restrict/Unrestrict -1 unrestricts xm1014 for ct
// -
// Default: "-1"
sm_restrict_xm1014_ct "-1"

// Restrict/Unrestrict -1 unrestricts xm1014 for t
// -
// Default: "-1"
sm_restrict_xm1014_t "-1"

// If 1 disables ff during warmup. If 0 leaves ff enabled
// -
// Default: "1"
sm_warmup_disable_ff "1"

// Enable warmup.
// -
// Default: "1"
sm_warmup_enable "1"

// Weather or not give infinite grenades if warmup weapon is grenades
// -
// Default: "1"
sm_warmup_infinite "1"

// Respawn players during warmup
// -
// Default: "1"
sm_warmup_respawn "1"

// Time after death before respawning player
// -
// Default: "0.5"
sm_warmup_respawn_time "1"

// How long in seconds warmup lasts
// -
// Default: "45"
sm_warmup_time "30"

// Enables admin immunity so admins can buy restricted weapons
// -
// Default: "0"
sm_weapon_restrict_immunity "0"
TnTSCS is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 04-25-2011 , 16:17   Re: [CSS] Weapon Restrict
Reply With Quote #702

Quote:
Originally Posted by gwhooooey View Post
The weapon_restrict.cfg file, as I don't want it on per-player basis, I want those guns restricted permanently. Not getting any errors other than it not actually restricting the weapons.

All the changes I've made since installing it were mentioned in my above post.
Change map and in console type sm cvars <plugin #> Plugin # the number next to weapon restrict on sm plugins list and paste it here.

Quote:
Originally Posted by mausetot View Post
Hi drifter,

my provider is strato, with linux server, OS? i donīt know...
here is the rest:

Protocol version 15
Exe version 1.0.0.60 (cstrike)
Exe build: 11:28:44 Apr 15 2011 (4539) (240)

SourceMod Version Information:
SourceMod Version: 1.3.7

[SM] Listing 16 plugins:
01 "Anti-Flood" (1.3.7) by AlliedModders LLC
02 "Nextmap" (1.3.7) by AlliedModders LLC
03 "Quake Sounds" (2.7) by dalto, Grrrrrrrrrrrrrrrrrrr, and psychonic
04 "SoDStats" (1.0.11) by ]SoD[ Frostbyte
05 "Rulez_Mod" (1.0.1) by {7~11} Troll
06 "Admin Menu" (1.3.7) by AlliedModders LLC
07 "Admin Help" (1.3.7) by AlliedModders LLC
08 "Basic Commands" (1.3.7) by AlliedModders LLC
09 "Admin File Reader" (1.3.7) by AlliedModders LLC
10 "Basic Comm Control" (1.3.7) by AlliedModders LLC
11 "Basic Chat" (1.3.7) by AlliedModders LLC
12 "Basic Info Triggers" (1.3.7) by AlliedModders LLC
13 "Basic Ban Commands" (1.3.7) by AlliedModders LLC
14 "Basic Votes" (1.3.7) by AlliedModders LLC
15 "Client Preferences" (1.3.7) by AlliedModders LLC
16 "Hostage Penalty-Slay" (0.1) by Bacardi


[SM] Displaying 8 extensions:
[01] Automatic Updater (1.3.7): Updates SourceMod gamedata files
[02] Webternet (1.3.7): Extension for interacting with URLs
[03] CS:S Tools (1.3.7): CS:S extended functionality
[04] BinTools (1.3.7): Low-level C/C++ Calling API
[05] Client Preferences (1.3.7): Saves client preference settings
[06] SQLite (1.3.7): SQLite Driver
[07] SDK Tools (1.3.7): Source SDK Tools
[08] Top Menus (1.3.7): Creates sorted nested menus



Listing 4 plugins:
[01] SourceMod (1.3.7) by AlliedModders LLC
[02] CS:S Tools (1.3.7) by AlliedModders LLC
[03] BinTools (1.3.7) by AlliedModders LLC
[04] SDK Tools (1.3.7) by AlliedModders LLC

Metamod:Source version 1.8.6
Build ID: 762:c9e30df8fd84
Loaded As: GameDLL (gameinfo.txt)
Compiled on: Apr 15 2011
Plugin interface version: 15:14
SourceHook version: 5:5
http://www.metamodsource.net/


no other errors

best regards
mausetot
Hmm I run it on many linux server and with mostly the same plugins as you. Do any errors occur when you start the server with weapon restrict or does it just not start? Also im not sure if this will fix the problem i dont think it will but it is recommended to load metamod via vdf.
Dr!fter is offline
gwhooooey
Junior Member
Join Date: Apr 2011
Old 04-25-2011 , 17:51   Re: [CSS] Weapon Restrict
Reply With Quote #703

Quote:
Originally Posted by Dr!fter View Post
Change map and in console type sm cvars <plugin #> Plugin # the number next to weapon restrict on sm plugins list and paste it here.
When I type in sm plugins list, it lists things, but there's no numbers in front of them. What would be causing this?

Quote:
"Admin File Reader" (1.3.7) by AlliedModders LLC
"Admin Help" (1.3.7) by AlliedModders LLC
"Basic Comm Control" (1.3.7) by AlliedModders LLC
"SQL Admins (Threaded)" (1.3.1) by AlliedModders LLC
"Basic Commands" (1.3.7) by AlliedModders LLC
"Admin Menu" (1.3.7) by AlliedModders LLC
"Basic Info Triggers" (1.3.7) by AlliedModders LLC
"Anti-Flood" (1.3.7) by AlliedModders LLC
"Fun Votes" (1.3.7) by AlliedModders LLC
"Nextmap" (1.3.7) by AlliedModders LLC
"Player Commands" (1.3.7) by AlliedModders LLC
"Reserved Slots" (1.3.7) by AlliedModders LLC
"Sound Commands" (1.3.7) by AlliedModders LLC
"Team Bets" (2.6) by GrimReaper - Original by ferret
"Bounty" (1.2.1) by Dr!fter
"Weapon Restrict" (2.3.5) by Dr!fter
So I can't do the sm cvars <plugin #> part yet.
gwhooooey is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-25-2011 , 18:01   Re: [CSS] Weapon Restrict
Reply With Quote #704

Then you're typing sm plugins list in console w/o rcon.

rcon_password yourRCONpassword
rcon sm plugins list

or, type sm plugins list from HLSW
TnTSCS is offline
gwhooooey
Junior Member
Join Date: Apr 2011
Old 04-25-2011 , 18:12   Re: [CSS] Weapon Restrict
Reply With Quote #705

Code:
[SM] Listing 24 plugins:
  01 "Admin File Reader" (1.3.7) by AlliedModders LLC
  02 "SQL Admins (Threaded)" (1.3.1) by AlliedModders LLC
  03 "Admin Help" (1.3.7) by AlliedModders LLC
  04 "Admin Menu" (1.3.7) by AlliedModders LLC
  05 "Anti-Flood" (1.3.7) by AlliedModders LLC
  06 "Basic Ban Commands" (1.3.7) by AlliedModders LLC
  07 "Basic Chat" (1.3.7) by AlliedModders LLC
  08 "Basic Comm Control" (1.3.7) by AlliedModders LLC
  09 "Basic Commands" (1.3.7) by AlliedModders LLC
  10 "Basic Info Triggers" (1.3.7) by AlliedModders LLC
  11 "Basic Votes" (1.3.7) by AlliedModders LLC
  12 "Client Preferences" (1.3.7) by AlliedModders LLC
  13 "Fun Commands" (1.3.7) by AlliedModders LLC
  14 "Fun Votes" (1.3.7) by AlliedModders LLC
  15 "Nextmap" (1.3.7) by AlliedModders LLC
  16 "Player Commands" (1.3.7) by AlliedModders LLC
  17 "Reserved Slots" (1.3.7) by AlliedModders LLC
  18 "Sound Commands" (1.3.7) by AlliedModders LLC
  19 "tv_record demoname fix" (0.1) by otstrel.ru team
  20 "C4 Countdown Timer" (1.0.0.0) by sslice
  21 "Sm_Cash" (1.2) by ferret
  22 "Bounty" (1.2.1) by Dr!fter
  23 "Team Bets" (2.6) by GrimReaper - Original by ferret
  24 "Weapon Restrict" (2.3.5) by Dr!fter

] sm cvars <plugin 24>
To see running plugins, type "sm plugins"
SourceMod 1.3.7, by AlliedModders LLC
To see credits, type "sm credits"
Visit http://www.sourcemod.net/
:-/ Is that what's meant to appear? I have admin flag z and immunity 99, so should be able to do everything.

Last edited by gwhooooey; 04-25-2011 at 18:51.
gwhooooey is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-25-2011 , 18:21   Re: [CSS] Weapon Restrict
Reply With Quote #706

just sm cvars 24 - use rcon in front of it if you're executing the command in-game with the console

mine is:
Code:
15:25:03 [SM] Listing 72 convars for: Weapon Restrict
           [Name]                           [Value]
           sm_allow_restricted_pickup       0
           sm_perplayer_restrict            0
           sm_restrict_ak47_ct              -1
           sm_restrict_ak47_t               -1
           sm_restrict_aug_ct               -1
           sm_restrict_aug_t                -1
           sm_restrict_awp_ct               2
           sm_restrict_awp_t                2
           sm_restrict_c4                   -1
           sm_restrict_deagle_ct            -1
           sm_restrict_deagle_t             -1
           sm_restrict_defuser              -1
           sm_restrict_elite_ct             -1
           sm_restrict_elite_t              -1
           sm_restrict_famas_ct             -1
           sm_restrict_famas_t              -1
           sm_restrict_fiveseven_ct         -1
           sm_restrict_fiveseven_t          -1
           sm_restrict_flashbang_ct         -1
           sm_restrict_flashbang_t          -1
           sm_restrict_g3sg1_ct             2
           sm_restrict_g3sg1_t              2
           sm_restrict_galil_ct             -1
           sm_restrict_galil_t              -1
           sm_restrict_glock_ct             -1
           sm_restrict_glock_t              -1
           sm_restrict_hegrenade_ct         -1
           sm_restrict_hegrenade_t          -1
           sm_restrict_m249_ct              -1
           sm_restrict_m249_t               -1
           sm_restrict_m3_ct                -1
           sm_restrict_m3_t                 -1
           sm_restrict_m4a1_ct              -1
           sm_restrict_m4a1_t               -1
           sm_restrict_mac10_ct             -1
           sm_restrict_mac10_t              -1
           sm_restrict_mp5navy_ct           -1
           sm_restrict_mp5navy_t            -1
           sm_restrict_nvgs_ct              -1
           sm_restrict_nvgs_t               -1
           sm_restrict_p228_ct              -1
           sm_restrict_p228_t               -1
           sm_restrict_p90_ct               -1
           sm_restrict_p90_t                -1
           sm_restrict_scout_ct             -1
           sm_restrict_scout_t              -1
           sm_restrict_sg550_ct             2
           sm_restrict_sg550_t              2
           sm_restrict_sg552_ct             -1
           sm_restrict_sg552_t              -1
           sm_restrict_smokegrenade_ct      -1
           sm_restrict_smokegrenade_t       -1
           sm_restrict_tmp_ct               -1
           sm_restrict_tmp_t                -1
           sm_restrict_ump45_ct             -1
           sm_restrict_ump45_t              -1
           sm_restrict_usp_ct               -1
           sm_restrict_usp_t                -1
           sm_restrict_vest_ct              -1
           sm_restrict_vest_t               -1
           sm_restrict_vesthelm_ct          -1
           sm_restrict_vesthelm_t           -1
           sm_restrict_xm1014_ct            -1
           sm_restrict_xm1014_t             -1
           sm_warmup_disable_ff             1
           sm_warmup_enable                 1
           sm_warmup_infinite               1
           sm_warmup_respawn                1
           sm_warmup_respawn_time           1
           sm_warmup_time                   45
           sm_weapon_restrict_immunity      0
           sm_weaponrestrict_version        2.3.4
TnTSCS is offline
gwhooooey
Junior Member
Join Date: Apr 2011
Old 04-25-2011 , 18:26   Re: [CSS] Weapon Restrict
Reply With Quote #707

Thanks.

Code:
[SM] Listing 72 convars for: Weapon Restrict
  [Name]                           [Value]
  sm_allow_restricted_pickup       0
  sm_perplayer_restrict            0
  sm_restrict_ak47_ct              -1
  sm_restrict_ak47_t               -1
  sm_restrict_aug_ct               -1
  sm_restrict_aug_t                -1
  sm_restrict_awp_ct               -1
  sm_restrict_awp_t                -1
  sm_restrict_c4                   -1
  sm_restrict_deagle_ct            -1
  sm_restrict_deagle_t             -1
  sm_restrict_defuser              -1
  sm_restrict_elite_ct             -1
  sm_restrict_elite_t              -1
  sm_restrict_famas_ct             -1
  sm_restrict_famas_t              -1
  sm_restrict_fiveseven_ct         -1
  sm_restrict_fiveseven_t          -1
  sm_restrict_flashbang_ct         -1
  sm_restrict_flashbang_t          -1
  sm_restrict_g3sg1_ct             -1
  sm_restrict_g3sg1_t              -1
  sm_restrict_galil_ct             -1
  sm_restrict_galil_t              -1
  sm_restrict_glock_ct             -1
  sm_restrict_glock_t              -1
  sm_restrict_hegrenade_ct         -1
  sm_restrict_hegrenade_t          -1
  sm_restrict_m249_ct              -1
  sm_restrict_m249_t               -1
  sm_restrict_m3_ct                -1
  sm_restrict_m3_t                 -1
  sm_restrict_m4a1_ct              -1
  sm_restrict_m4a1_t               -1
  sm_restrict_mac10_ct             -1
  sm_restrict_mac10_t              -1
  sm_restrict_mp5navy_ct           -1
  sm_restrict_mp5navy_t            -1
  sm_restrict_nvgs_ct              -1
  sm_restrict_nvgs_t               -1
  sm_restrict_p228_ct              -1
  sm_restrict_p228_t               -1
  sm_restrict_p90_ct               -1
  sm_restrict_p90_t                -1
  sm_restrict_scout_ct             -1
  sm_restrict_scout_t              -1
  sm_restrict_sg550_ct             -1
  sm_restrict_sg550_t              -1
  sm_restrict_sg552_ct             -1
  sm_restrict_sg552_t              -1
  sm_restrict_smokegrenade_ct      -1
  sm_restrict_smokegrenade_t       -1
  sm_restrict_tmp_ct               -1
  sm_restrict_tmp_t                -1
  sm_restrict_ump45_ct             -1
  sm_restrict_ump45_t              -1
  sm_restrict_usp_ct               -1
  sm_restrict_usp_t                -1
  sm_restrict_vest_ct              -1
  sm_restrict_vest_t               -1
  sm_restrict_vesthelm_ct          -1
  sm_restrict_vesthelm_t           -1
  sm_restrict_xm1014_ct            -1
  sm_restrict_xm1014_t             -1
  sm_warmup_disable_ff             1
  sm_warmup_enable                 1
  sm_warmup_infinite               1
  sm_warmup_respawn                1
  sm_warmup_respawn_time           0.5
  sm_warmup_time                   45
  sm_weapon_restrict_immunity      0
  sm_weaponrestrict_version        2.3.5
Looking at that, they're not restricted. But my config file is like this.
Code:
// This file was auto-generated by SourceMod (v1.3.3-dev)
// ConVars for plugin "weapon_restrict.smx"


// If set to 1 it will NOT remove restricted weapons on pickup but rather on Round start, if set to 0 it will remove on pickup
// -
// Default: "0"
sm_allow_restricted_pickup "0"

// If enabled will restrict awp per player count
// -
// Default: "0"
sm_perplayer_restrict "0"

// Restrict/Unrestrict -1 unrestricts ak47 for ct
// -
// Default: "-1"
sm_restrict_ak47_ct "-1"

// Restrict/Unrestrict -1 unrestricts ak47 for t
// -
// Default: "-1"
sm_restrict_ak47_t "-1"

// Restrict/Unrestrict -1 unrestricts aug for ct
// -
// Default: "-1"
sm_restrict_aug_ct "-1"

// Restrict/Unrestrict -1 unrestricts aug for t
// -
// Default: "-1"
sm_restrict_aug_t "-1"

// Restrict/Unrestrict -1 unrestricts awp for ct
// -
// Default: "-1"
sm_restrict_awp_ct "0"

// Restrict/Unrestrict -1 unrestricts awp for t
// -
// Default: "-1"
sm_restrict_awp_t "0"

// Restrict/Unrestrict -1 unrestricts c4 for t
// -
// Default: "-1"
sm_restrict_c4 "-1"

// Restrict/Unrestrict -1 unrestricts deagle for ct
// -
// Default: "-1"
sm_restrict_deagle_ct "-1"

// Restrict/Unrestrict -1 unrestricts deagle for t
// -
// Default: "-1"
sm_restrict_deagle_t "-1"

// Restrict/Unrestrict -1 unrestricts defuser for ct
// -
// Default: "-1"
sm_restrict_defuser "-1"

// Restrict/Unrestrict -1 unrestricts elite for ct
// -
// Default: "-1"
sm_restrict_elite_ct "-1"

// Restrict/Unrestrict -1 unrestricts elite for t
// -
// Default: "-1"
sm_restrict_elite_t "-1"

// Restrict/Unrestrict -1 unrestricts famas for ct
// -
// Default: "-1"
sm_restrict_famas_ct "-1"

// Restrict/Unrestrict -1 unrestricts famas for t
// -
// Default: "-1"
sm_restrict_famas_t "-1"

// Restrict/Unrestrict -1 unrestricts fiveseven for ct
// -
// Default: "-1"
sm_restrict_fiveseven_ct "-1"

// Restrict/Unrestrict -1 unrestricts fiveseven for t
// -
// Default: "-1"
sm_restrict_fiveseven_t "-1"

// Restrict/Unrestrict -1 unrestricts flashbang for ct
// -
// Default: "-1"
sm_restrict_flashbang_ct "-1"

// Restrict/Unrestrict -1 unrestricts flashbang for t
// -
// Default: "-1"
sm_restrict_flashbang_t "-1"

// Restrict/Unrestrict -1 unrestricts g3sg1 for ct
// -
// Default: "-1"
sm_restrict_g3sg1_ct "0"

// Restrict/Unrestrict -1 unrestricts g3sg1 for t
// -
// Default: "-1"
sm_restrict_g3sg1_t "0"

// Restrict/Unrestrict -1 unrestricts galil for ct
// -
// Default: "-1"
sm_restrict_galil_ct "-1"

// Restrict/Unrestrict -1 unrestricts galil for t
// -
// Default: "-1"
sm_restrict_galil_t "-1"

// Restrict/Unrestrict -1 unrestricts glock for ct
// -
// Default: "-1"
sm_restrict_glock_ct "-1"

// Restrict/Unrestrict -1 unrestricts glock for t
// -
// Default: "-1"
sm_restrict_glock_t "-1"

// Restrict/Unrestrict -1 unrestricts hegrenade for ct
// -
// Default: "-1"
sm_restrict_hegrenade_ct "-1"

// Restrict/Unrestrict -1 unrestricts hegrenade for ct
// -
// Default: "-1"
sm_restrict_hegrenade_t "-1"

// Restrict/Unrestrict -1 unrestricts m249 for ct
// -
// Default: "-1"
sm_restrict_m249_ct "-1"

// Restrict/Unrestrict -1 unrestricts m249 for t
// -
// Default: "-1"
sm_restrict_m249_t "-1"

// Restrict/Unrestrict -1 unrestricts m3 for ct
// -
// Default: "-1"
sm_restrict_m3_ct "-1"

// Restrict/Unrestrict -1 unrestricts m3 for t
// -
// Default: "-1"
sm_restrict_m3_t "-1"

// Restrict/Unrestrict -1 unrestricts m4a1 for ct
// -
// Default: "-1"
sm_restrict_m4a1_ct "-1"

// Restrict/Unrestrict -1 unrestricts m4a1 for t
// -
// Default: "-1"
sm_restrict_m4a1_t "-1"

// Restrict/Unrestrict -1 unrestricts mac10 for ct
// -
// Default: "-1"
sm_restrict_mac10_ct "-1"

// Restrict/Unrestrict -1 unrestricts mac10 for t
// -
// Default: "-1"
sm_restrict_mac10_t "-1"

// Restrict/Unrestrict -1 unrestricts mp5navy for ct
// -
// Default: "-1"
sm_restrict_mp5navy_ct "-1"

// Restrict/Unrestrict -1 unrestricts mp5navy for t
// -
// Default: "-1"
sm_restrict_mp5navy_t "-1"

// Restrict/Unrestrict -1 unrestricts nvgs for ct
// -
// Default: "-1"
sm_restrict_nvgs_ct "-1"

// Restrict/Unrestrict -1 unrestricts nvgs for t
// -
// Default: "-1"
sm_restrict_nvgs_t "-1"

// Restrict/Unrestrict -1 unrestricts p228 for ct
// -
// Default: "-1"
sm_restrict_p228_ct "-1"

// Restrict/Unrestrict -1 unrestricts p228 for t
// -
// Default: "-1"
sm_restrict_p228_t "-1"

// Restrict/Unrestrict -1 unrestricts p90 for ct
// -
// Default: "-1"
sm_restrict_p90_ct "-1"

// Restrict/Unrestrict -1 unrestricts p90 for t
// -
// Default: "-1"
sm_restrict_p90_t "-1"

// Restrict/Unrestrict -1 unrestricts scout for ct
// -
// Default: "-1"
sm_restrict_scout_ct "-1"

// Restrict/Unrestrict -1 unrestricts scout for t
// -
// Default: "-1"
sm_restrict_scout_t "-1"

// Restrict/Unrestrict -1 unrestricts sg550 for ct
// -
// Default: "-1"
sm_restrict_sg550_ct "0"

// Restrict/Unrestrict -1 unrestricts sg550 for t
// -
// Default: "-1"
sm_restrict_sg550_t "0"

// Restrict/Unrestrict -1 unrestricts sg552 for ct
// -
// Default: "-1"
sm_restrict_sg552_ct "-1"

// Restrict/Unrestrict -1 unrestricts sg552 for t
// -
// Default: "-1"
sm_restrict_sg552_t "-1"

// Restrict/Unrestrict -1 unrestricts smokegrenade for ct
// -
// Default: "-1"
sm_restrict_smokegrenade_ct "-1"

// Restrict/Unrestrict -1 unrestricts smokegrenade for t
// -
// Default: "-1"
sm_restrict_smokegrenade_t "-1"

// Restrict/Unrestrict -1 unrestricts tmp for ct
// -
// Default: "-1"
sm_restrict_tmp_ct "-1"

// Restrict/Unrestrict -1 unrestricts tmp for t
// -
// Default: "-1"
sm_restrict_tmp_t "-1"

// Restrict/Unrestrict -1 unrestricts ump45 for ct
// -
// Default: "-1"
sm_restrict_ump45_ct "-1"

// Restrict/Unrestrict -1 unrestricts ump45 for t
// -
// Default: "-1"
sm_restrict_ump45_t "-1"

// Restrict/Unrestrict -1 unrestricts usp for ct
// -
// Default: "-1"
sm_restrict_usp_ct "-1"

// Restrict/Unrestrict -1 unrestricts usp for t
// -
// Default: "-1"
sm_restrict_usp_t "-1"

// Restrict/Unrestrict -1 unrestricts vest for ct
// -
// Default: "-1"
sm_restrict_vest_ct "-1"

// Restrict/Unrestrict -1 unrestricts vest for t
// -
// Default: "-1"
sm_restrict_vest_t "-1"

// Restrict/Unrestrict -1 unrestricts vesthelm for ct
// -
// Default: "-1"
sm_restrict_vesthelm_ct "-1"

// Restrict/Unrestrict -1 unrestricts vesthelm for t
// -
// Default: "-1"
sm_restrict_vesthelm_t "-1"

// Restrict/Unrestrict -1 unrestricts xm1014 for ct
// -
// Default: "-1"
sm_restrict_xm1014_ct "-1"

// Restrict/Unrestrict -1 unrestricts xm1014 for t
// -
// Default: "-1"
sm_restrict_xm1014_t "-1"

// If 1 disables ff during warmup. If 0 leaves ff enabled
// -
// Default: "1"
sm_warmup_disable_ff "1"

// Enable warmup.
// -
// Default: "1"
sm_warmup_enable "0"

// Weather or not give infinite grenades if warmup weapon is grenades
// -
// Default: "1"
sm_warmup_infinite "1"

// Respawn players during warmup
// -
// Default: "1"
sm_warmup_respawn "1"

// Time after death before respawning player
// -
// Default: "0.5"
sm_warmup_respawn_time "1"

// How long in seconds warmup lasts
// -
// Default: "45"
sm_warmup_time "30"

// Enables admin immunity so admins can buy restricted weapons
// -
// Default: "0"
sm_weapon_restrict_immunity "0"
So I'm not sure why it's different. Maybe my host have uploaded it in the wrong place or something?


Edit - Also weird, is that it says warm up is enabled under sm cvars 24, yet when playing on the server, there is no warm up.

Last edited by gwhooooey; 04-25-2011 at 22:35.
gwhooooey is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 04-25-2011 , 21:20   Re: [CSS] Weapon Restrict
Reply With Quote #708

Quote:
Originally Posted by gwhooooey View Post
Thanks.

Code:
[SM] Listing 72 convars for: Weapon Restrict
  [Name]                           [Value]
  sm_allow_restricted_pickup       0
  sm_perplayer_restrict            0
  sm_restrict_ak47_ct              -1
  sm_restrict_ak47_t               -1
  sm_restrict_aug_ct               -1
  sm_restrict_aug_t                -1
  sm_restrict_awp_ct               -1
  sm_restrict_awp_t                -1
  sm_restrict_c4                   -1
  sm_restrict_deagle_ct            -1
  sm_restrict_deagle_t             -1
  sm_restrict_defuser              -1
  sm_restrict_elite_ct             -1
  sm_restrict_elite_t              -1
  sm_restrict_famas_ct             -1
  sm_restrict_famas_t              -1
  sm_restrict_fiveseven_ct         -1
  sm_restrict_fiveseven_t          -1
  sm_restrict_flashbang_ct         -1
  sm_restrict_flashbang_t          -1
  sm_restrict_g3sg1_ct             -1
  sm_restrict_g3sg1_t              -1
  sm_restrict_galil_ct             -1
  sm_restrict_galil_t              -1
  sm_restrict_glock_ct             -1
  sm_restrict_glock_t              -1
  sm_restrict_hegrenade_ct         -1
  sm_restrict_hegrenade_t          -1
  sm_restrict_m249_ct              -1
  sm_restrict_m249_t               -1
  sm_restrict_m3_ct                -1
  sm_restrict_m3_t                 -1
  sm_restrict_m4a1_ct              -1
  sm_restrict_m4a1_t               -1
  sm_restrict_mac10_ct             -1
  sm_restrict_mac10_t              -1
  sm_restrict_mp5navy_ct           -1
  sm_restrict_mp5navy_t            -1
  sm_restrict_nvgs_ct              -1
  sm_restrict_nvgs_t               -1
  sm_restrict_p228_ct              -1
  sm_restrict_p228_t               -1
  sm_restrict_p90_ct               -1
  sm_restrict_p90_t                -1
  sm_restrict_scout_ct             -1
  sm_restrict_scout_t              -1
  sm_restrict_sg550_ct             -1
  sm_restrict_sg550_t              -1
  sm_restrict_sg552_ct             -1
  sm_restrict_sg552_t              -1
  sm_restrict_smokegrenade_ct      -1
  sm_restrict_smokegrenade_t       -1
  sm_restrict_tmp_ct               -1
  sm_restrict_tmp_t                -1
  sm_restrict_ump45_ct             -1
  sm_restrict_ump45_t              -1
  sm_restrict_usp_ct               -1
  sm_restrict_usp_t                -1
  sm_restrict_vest_ct              -1
  sm_restrict_vest_t               -1
  sm_restrict_vesthelm_ct          -1
  sm_restrict_vesthelm_t           -1
  sm_restrict_xm1014_ct            -1
  sm_restrict_xm1014_t             -1
  sm_warmup_disable_ff             1
  sm_warmup_enable                 1
  sm_warmup_infinite               1
  sm_warmup_respawn                1
  sm_warmup_respawn_time           0.5
  sm_warmup_time                   45
  sm_weapon_restrict_immunity      0
  sm_weaponrestrict_version        2.3.5
Looking at that, they're not restricted. But my config file is like this.
Code:
// This file was auto-generated by SourceMod (v1.3.3-dev)
// ConVars for plugin "weapon_restrict.smx"


// If set to 1 it will NOT remove restricted weapons on pickup but rather on Round start, if set to 0 it will remove on pickup
// -
// Default: "0"
sm_allow_restricted_pickup "0"

// If enabled will restrict awp per player count
// -
// Default: "0"
sm_perplayer_restrict "0"

// Restrict/Unrestrict -1 unrestricts ak47 for ct
// -
// Default: "-1"
sm_restrict_ak47_ct "-1"

// Restrict/Unrestrict -1 unrestricts ak47 for t
// -
// Default: "-1"
sm_restrict_ak47_t "-1"

// Restrict/Unrestrict -1 unrestricts aug for ct
// -
// Default: "-1"
sm_restrict_aug_ct "-1"

// Restrict/Unrestrict -1 unrestricts aug for t
// -
// Default: "-1"
sm_restrict_aug_t "-1"

// Restrict/Unrestrict -1 unrestricts awp for ct
// -
// Default: "-1"
sm_restrict_awp_ct "0"

// Restrict/Unrestrict -1 unrestricts awp for t
// -
// Default: "-1"
sm_restrict_awp_t "0"

// Restrict/Unrestrict -1 unrestricts c4 for t
// -
// Default: "-1"
sm_restrict_c4 "-1"

// Restrict/Unrestrict -1 unrestricts deagle for ct
// -
// Default: "-1"
sm_restrict_deagle_ct "-1"

// Restrict/Unrestrict -1 unrestricts deagle for t
// -
// Default: "-1"
sm_restrict_deagle_t "-1"

// Restrict/Unrestrict -1 unrestricts defuser for ct
// -
// Default: "-1"
sm_restrict_defuser "-1"

// Restrict/Unrestrict -1 unrestricts elite for ct
// -
// Default: "-1"
sm_restrict_elite_ct "-1"

// Restrict/Unrestrict -1 unrestricts elite for t
// -
// Default: "-1"
sm_restrict_elite_t "-1"

// Restrict/Unrestrict -1 unrestricts famas for ct
// -
// Default: "-1"
sm_restrict_famas_ct "-1"

// Restrict/Unrestrict -1 unrestricts famas for t
// -
// Default: "-1"
sm_restrict_famas_t "-1"

// Restrict/Unrestrict -1 unrestricts fiveseven for ct
// -
// Default: "-1"
sm_restrict_fiveseven_ct "-1"

// Restrict/Unrestrict -1 unrestricts fiveseven for t
// -
// Default: "-1"
sm_restrict_fiveseven_t "-1"

// Restrict/Unrestrict -1 unrestricts flashbang for ct
// -
// Default: "-1"
sm_restrict_flashbang_ct "-1"

// Restrict/Unrestrict -1 unrestricts flashbang for t
// -
// Default: "-1"
sm_restrict_flashbang_t "-1"

// Restrict/Unrestrict -1 unrestricts g3sg1 for ct
// -
// Default: "-1"
sm_restrict_g3sg1_ct "0"

// Restrict/Unrestrict -1 unrestricts g3sg1 for t
// -
// Default: "-1"
sm_restrict_g3sg1_t "0"

// Restrict/Unrestrict -1 unrestricts galil for ct
// -
// Default: "-1"
sm_restrict_galil_ct "-1"

// Restrict/Unrestrict -1 unrestricts galil for t
// -
// Default: "-1"
sm_restrict_galil_t "-1"

// Restrict/Unrestrict -1 unrestricts glock for ct
// -
// Default: "-1"
sm_restrict_glock_ct "-1"

// Restrict/Unrestrict -1 unrestricts glock for t
// -
// Default: "-1"
sm_restrict_glock_t "-1"

// Restrict/Unrestrict -1 unrestricts hegrenade for ct
// -
// Default: "-1"
sm_restrict_hegrenade_ct "-1"

// Restrict/Unrestrict -1 unrestricts hegrenade for ct
// -
// Default: "-1"
sm_restrict_hegrenade_t "-1"

// Restrict/Unrestrict -1 unrestricts m249 for ct
// -
// Default: "-1"
sm_restrict_m249_ct "-1"

// Restrict/Unrestrict -1 unrestricts m249 for t
// -
// Default: "-1"
sm_restrict_m249_t "-1"

// Restrict/Unrestrict -1 unrestricts m3 for ct
// -
// Default: "-1"
sm_restrict_m3_ct "-1"

// Restrict/Unrestrict -1 unrestricts m3 for t
// -
// Default: "-1"
sm_restrict_m3_t "-1"

// Restrict/Unrestrict -1 unrestricts m4a1 for ct
// -
// Default: "-1"
sm_restrict_m4a1_ct "-1"

// Restrict/Unrestrict -1 unrestricts m4a1 for t
// -
// Default: "-1"
sm_restrict_m4a1_t "-1"

// Restrict/Unrestrict -1 unrestricts mac10 for ct
// -
// Default: "-1"
sm_restrict_mac10_ct "-1"

// Restrict/Unrestrict -1 unrestricts mac10 for t
// -
// Default: "-1"
sm_restrict_mac10_t "-1"

// Restrict/Unrestrict -1 unrestricts mp5navy for ct
// -
// Default: "-1"
sm_restrict_mp5navy_ct "-1"

// Restrict/Unrestrict -1 unrestricts mp5navy for t
// -
// Default: "-1"
sm_restrict_mp5navy_t "-1"

// Restrict/Unrestrict -1 unrestricts nvgs for ct
// -
// Default: "-1"
sm_restrict_nvgs_ct "-1"

// Restrict/Unrestrict -1 unrestricts nvgs for t
// -
// Default: "-1"
sm_restrict_nvgs_t "-1"

// Restrict/Unrestrict -1 unrestricts p228 for ct
// -
// Default: "-1"
sm_restrict_p228_ct "-1"

// Restrict/Unrestrict -1 unrestricts p228 for t
// -
// Default: "-1"
sm_restrict_p228_t "-1"

// Restrict/Unrestrict -1 unrestricts p90 for ct
// -
// Default: "-1"
sm_restrict_p90_ct "-1"

// Restrict/Unrestrict -1 unrestricts p90 for t
// -
// Default: "-1"
sm_restrict_p90_t "-1"

// Restrict/Unrestrict -1 unrestricts scout for ct
// -
// Default: "-1"
sm_restrict_scout_ct "-1"

// Restrict/Unrestrict -1 unrestricts scout for t
// -
// Default: "-1"
sm_restrict_scout_t "-1"

// Restrict/Unrestrict -1 unrestricts sg550 for ct
// -
// Default: "-1"
sm_restrict_sg550_ct "0"

// Restrict/Unrestrict -1 unrestricts sg550 for t
// -
// Default: "-1"
sm_restrict_sg550_t "0"

// Restrict/Unrestrict -1 unrestricts sg552 for ct
// -
// Default: "-1"
sm_restrict_sg552_ct "-1"

// Restrict/Unrestrict -1 unrestricts sg552 for t
// -
// Default: "-1"
sm_restrict_sg552_t "-1"

// Restrict/Unrestrict -1 unrestricts smokegrenade for ct
// -
// Default: "-1"
sm_restrict_smokegrenade_ct "-1"

// Restrict/Unrestrict -1 unrestricts smokegrenade for t
// -
// Default: "-1"
sm_restrict_smokegrenade_t "-1"

// Restrict/Unrestrict -1 unrestricts tmp for ct
// -
// Default: "-1"
sm_restrict_tmp_ct "-1"

// Restrict/Unrestrict -1 unrestricts tmp for t
// -
// Default: "-1"
sm_restrict_tmp_t "-1"

// Restrict/Unrestrict -1 unrestricts ump45 for ct
// -
// Default: "-1"
sm_restrict_ump45_ct "-1"

// Restrict/Unrestrict -1 unrestricts ump45 for t
// -
// Default: "-1"
sm_restrict_ump45_t "-1"

// Restrict/Unrestrict -1 unrestricts usp for ct
// -
// Default: "-1"
sm_restrict_usp_ct "-1"

// Restrict/Unrestrict -1 unrestricts usp for t
// -
// Default: "-1"
sm_restrict_usp_t "-1"

// Restrict/Unrestrict -1 unrestricts vest for ct
// -
// Default: "-1"
sm_restrict_vest_ct "-1"

// Restrict/Unrestrict -1 unrestricts vest for t
// -
// Default: "-1"
sm_restrict_vest_t "-1"

// Restrict/Unrestrict -1 unrestricts vesthelm for ct
// -
// Default: "-1"
sm_restrict_vesthelm_ct "-1"

// Restrict/Unrestrict -1 unrestricts vesthelm for t
// -
// Default: "-1"
sm_restrict_vesthelm_t "-1"

// Restrict/Unrestrict -1 unrestricts xm1014 for ct
// -
// Default: "-1"
sm_restrict_xm1014_ct "-1"

// Restrict/Unrestrict -1 unrestricts xm1014 for t
// -
// Default: "-1"
sm_restrict_xm1014_t "-1"

// If 1 disables ff during warmup. If 0 leaves ff enabled
// -
// Default: "1"
sm_warmup_disable_ff "1"

// Enable warmup.
// -
// Default: "1"
sm_warmup_enable "0"

// Weather or not give infinite grenades if warmup weapon is grenades
// -
// Default: "1"
sm_warmup_infinite "1"

// Respawn players during warmup
// -
// Default: "1"
sm_warmup_respawn "1"

// Time after death before respawning player
// -
// Default: "0.5"
sm_warmup_respawn_time "1"

// How long in seconds warmup lasts
// -
// Default: "45"
sm_warmup_time "30"

// Enables admin immunity so admins can buy restricted weapons
// -
// Default: "0"
sm_weapon_restrict_immunity "0"
So I'm not sure why it's different. Maybe my host (multiplay.co.uk) are idiots and have uploaded it in the wrong place or something?


Edit - Also weird, is that it says warm up is enabled under sm cvars 24, yet when playing on the server, there is no warm up.
Yea make sure the file is in cfg/sourcemod/ Since it looks like its using all default. Either the file is in the wrong place or some other config is setting it after execing the config. Which would make sense if you dont see warmup since warmup is started once the file is execed so if you have it to 0 and some other config sets it back to 1 then that would be the issue. By any chance do you have any per map configs?
Dr!fter is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-25-2011 , 23:05   Re: [CSS] Weapon Restrict
Reply With Quote #709

oh ya, overlooked the obvious ..

config has to be in cstrike/cfg/sourcemod folder
TnTSCS is offline
blue zebra
BANNED
Join Date: Jun 2010
Old 04-26-2011 , 00:06   Re: [CSS] Weapon Restrict
Reply With Quote #710

gwhooooey
This is your fault, dude. This plugin works for me like a charm from long time ago. No problems, no errors.
First. Delete your weapon_restrict.cfg and restart the server. The new basic cfg file will be created again.
blue zebra is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode