View Single Post
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