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

[CSS/CS:GO] Weapon Restrict


Post New Thread Reply   
 
Thread Tools Display Modes
Dreams
Member
Join Date: Feb 2014
Old 11-25-2016 , 11:15   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1881

Revolver on warmup not work.
Please fix?
Dreams is offline
Bomlife
Junior Member
Join Date: Jul 2016
Old 11-29-2016 , 15:01   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1882

Knife round not work.
Bomlife is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 11-29-2016 , 15:36   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1883

If you are on CS:GO linux, you must get the newest snapshot of SM.
Dr!fter is offline
Dreams
Member
Join Date: Feb 2014
Old 11-30-2016 , 15:56   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1884

No, windows.
If hegrenade during warmup - server is lagging.
And how add revolver?
Dreams is offline
Allower
Senior Member
Join Date: Sep 2013
Location: SourceEngine
Old 12-05-2016 , 05:32   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1885

Quote:
Originally Posted by Dreams View Post
No, windows.
If hegrenade during warmup - server is lagging.
And how add revolver?
weapon_revolver have same WeaponIndex as weapon_deagle

So you can't
Allower is offline
M4ketech
Member
Join Date: Dec 2016
Location: Helsinki, Finland
Old 12-08-2016 , 18:26   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1886

Any fast idea how to use in CSGO, since we need only knife and granades @ our server.

Code:
// This file was auto-generated by SourceMod (v1.4.0-dev)

// ConVars for plugin "weapon_restrict.smx"





// Set to 0 to allow awp pickup ONLY if it is under the max allowed. Set to 1 to use sm_allow_restricted_pickup method.

// -

// Default: "1"

sm_allow_awp_pickup "1"



// Set to 0 to ONLY allow pickup if under the max allowed. Set to 1 to allow restricted weapon pickup

// -

// Default: "0"

sm_allow_restricted_pickup "0"



// If enabled will count bots in per player restricts

// -

// Default: "1"

sm_perplayer_bots "1"



// If enabled will restrict awp per player count

// -

// Default: "0"

sm_perplayer_restrict "0"



// If enabled will count specs in per player restricts

// -

// Default: "1"

sm_perplayer_specs "1"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:ak47

// -

// Default: "-1"

sm_restrict_ak47_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:ak47

// -

// Default: "-1"

sm_restrict_ak47_t "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:aug

// -

// Default: "-1"

sm_restrict_aug_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:aug

// -

// Default: "-1"

sm_restrict_aug_t "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:awp

// -

// Default: "-1"

sm_restrict_awp_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:awp

// -

// Default: "-1"

sm_restrict_awp_t "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:c4

// -

// Default: "-1"

sm_restrict_c4 "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:deagle

// -

// Default: "-1"

sm_restrict_deagle_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:deagle

// -

// Default: "-1"

sm_restrict_deagle_t "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:defuser

// -

// Default: "-1"

sm_restrict_defuser "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:elite

// -

// Default: "-1"

sm_restrict_elite_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:elite

// -

// Default: "-1"

sm_restrict_elite_t "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:famas

// -

// Default: "-1"

sm_restrict_famas_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:famas

// -

// Default: "-1"

sm_restrict_famas_t "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:fiveseven

// -

// Default: "-1"

sm_restrict_fiveseven_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:fiveseven

// -

// Default: "-1"

sm_restrict_fiveseven_t "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:flashbang

// -

// Default: "-1"

sm_restrict_flashbang_ct "-1"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:flashbang

// -

// Default: "-1"

sm_restrict_flashbang_t "-1"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:g3sg1

// -

// Default: "-1"

sm_restrict_G3SG1_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:g3sg1

// -

// Default: "-1"

sm_restrict_G3SG1_t "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:galil

// -

// Default: "-1"

sm_restrict_galilar_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:galil

// -

// Default: "-1"

sm_restrict_galilar_t "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:glock

// -

// Default: "-1"

sm_restrict_glock_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:glock

// -

// Default: "-1"

sm_restrict_glock_t "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:hegrenade

// -

// Default: "-1"

sm_restrict_hegrenade_ct "-1"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:hegrenade

// -

// Default: "-1"

sm_restrict_hegrenade_t "-1"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:knife

// -

// Default: "-1"

sm_restrict_knife_ct "-1"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:knife

// -

// Default: "-1"

sm_restrict_knife_t "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:m249

// -

// Default: "-1"

sm_restrict_m249_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:m249

// -

// Default: "-1"

sm_restrict_m249_t "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:m3

// -

// Default: "-1"

sm_restrict_mac10_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:m3

// -

// Default: "-1"

sm_restrict_mac10_t "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:m4a1

// -

// Default: "-1"

sm_restrict_m4a1_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:m4a1

// -

// Default: "-1"

sm_restrict_m4a1_t "0"


// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:mp5navy

// -

// Default: "-1"

sm_restrict_mp7_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:mp5navy

// -

// Default: "-1"

sm_restrict_mp7_t "0"


// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:p228

// -

// Default: "-1"

sm_restrict_p250_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:p228

// -

// Default: "-1"

sm_restrict_p250_t "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:p90

// -

// Default: "-1"

sm_restrict_p90_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:p90

// -

// Default: "-1"

sm_restrict_p90_t "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:scout

// -

// Default: "-1"

sm_restrict_ssg08_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:scout

// -

// Default: "-1"

sm_restrict_ssg08_t "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:sg550

// -

// Default: "-1"

sm_restrict_sg556_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:sg550

// -

// Default: "-1"

sm_restrict_sg556_t "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:smokegrenade

// -

// Default: "-1"

sm_restrict_smokegrenade_ct "-1"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:smokegrenade

// -

// Default: "-1"

sm_restrict_smokegrenade_t "-1"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:tmp

// -

// Default: "-1"

sm_restrict_tec9_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:tmp

// -

// Default: "-1"

sm_restrict_tec9_t "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:ump45

// -

// Default: "-1"

sm_restrict_ump45_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:ump45

// -

// Default: "-1"

sm_restrict_ump45_t "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:usp

// -

// Default: "-1"

sm_restrict_usp_silencer_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:usp

// -

// Default: "-1"

sm_restrict_usp_silencer_t "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:vest

// -

// Default: "-1"

sm_restrict_vest_ct "-1"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:vest

// -

// Default: "-1"

sm_restrict_vest_t "-1"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:vesthelm

// -

// Default: "-1"

sm_restrict_vesthelm_ct "-1"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:vesthelm

// -

// Default: "-1"

sm_restrict_vesthelm_t "-1"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:xm1014

// -

// Default: "-1"

sm_restrict_xm1014_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:xm1014

// -

// Default: "-1"

sm_restrict_xm1014_t "0"


// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:usp

// -

// Default: "-1"

sm_restrict_sawedoff_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:usp

// -

// Default: "-1"

sm_restrict_sawedoff_t "0"


// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:usp

// -

// Default: "-1"

sm_restrict_hkp2000_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:usp

// -

// Default: "-1"

sm_restrict_hkp2000_t "0"


// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:usp

// -

// Default: "-1"

sm_restrict_mp9_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:usp

// -

// Default: "-1"

sm_restrict_mp9_t "0"


// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:usp

// -

// Default: "-1"

sm_restrict_revolver_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:usp

// -

// Default: "-1"

sm_restrict_revolver_t "0"


// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:usp

// -

// Default: "-1"

sm_restrict_m4a1_silencer_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:usp

// -

// Default: "-1"

sm_restrict_m4a1_silencer_t "0"


// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:usp

// -

// Default: "-1"

sm_restrict_incgrenade_ct "-1"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:usp

// -

// Default: "-1"

sm_restrict_incgrenade_t "-1"


// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:usp

// -

// Default: "-1"

sm_restrict_cz75a_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:usp

// -

// Default: "-1"

sm_restrict_cz75a_t "0"


// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:usp

// -

// Default: "-1"

sm_restrict_mag7_ct "-1"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:usp

// -

// Default: "-1"

sm_restrict_mag7_t "-1"


// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:usp

// -

// Default: "-1"

sm_restrict_bizon_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:usp

// -

// Default: "-1"

sm_restrict_bizon_t "0"


// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:usp

// -

// Default: "-1"

sm_restrict_scar20_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:usp

// -

// Default: "-1"

sm_restrict_scar20_t "0"


// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:usp

// -

// Default: "-1"

sm_restrict_nova_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:usp

// -

// Default: "-1"

sm_restrict_nova_t "0


// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:usp

// -

// Default: "-1"

sm_restrict_negev_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:usp

// -

// Default: "-1"

sm_restrict_negev_t "0"


// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:usp

// -

// Default: "-1"

sm_restrict_molotov_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:usp

// -

// Default: "-1"

sm_restrict_molotov_t "0


// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:usp

// -

// Default: "-1"

sm_restrict_taser_ct "0"



// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:usp

// -

// Default: "-1"

sm_restrict_taser_t "0"


// Sound to play when a weapon is restricted (leave blank to disable)

// -

// Default: "sound/admin_plugin/actions/restrictedweapon.wav"

sm_restricted_sound "sound/admin_plugin/actions/restrictedweapon.wav"



// 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 "0.5"



// How long in seconds warmup lasts

// -

// Default: "45"

sm_warmup_time "45"



// Enables admin immunity so admins can buy restricted weapons

// -

// Default: "0"

sm_weapon_restrict_immunity "0"
So i made it. Now its working, just save file as "weapon_restrict.cfg" to csgo/cfg/sourcemod

Last edited by M4ketech; 12-09-2016 at 05:02.
M4ketech is offline
usla
Senior Member
Join Date: Jul 2009
Old 12-09-2016 , 06:11   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1887

unable to load plugin bad header game csgo
usla is offline
DoomHammer69
Senior Member
Join Date: Aug 2013
Old 12-20-2016 , 17:08   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1888

I want to restrict g3sg1 and scar20 with perplayerrestrict.txt what only 1 is allowed when there are 28 players on the server

My file is :
"PerPlayer"
{
"defuser"
{
"default" "-1"
"20" "100"
}
"scar20"
{
"default" "0"
"28" "1"
}
"g3sg1"
{
"default" "0"
"28" "1"
}
}

I have to change other options in weapon_restrict.cfg?
__________________


DoomHammer69 is offline
tazzle0870
Senior Member
Join Date: May 2010
Old 12-27-2016 , 14:28   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1889

I have an issue. My restrict is restricting usp all the time. in weapons cfg it is not restricted.
Also when I have alot people on my server the flash bangs are restricted to a certain amount. why?
tazzle0870 is offline
Kammi_
AlliedModders Donor
Join Date: Dec 2007
Old 12-28-2016 , 02:55   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1890

tazzle0870 can u post ur configs, os and sm version pls
__________________




Last edited by Kammi_; 12-28-2016 at 02:59.
Kammi_ is offline
Send a message via ICQ to Kammi_
Reply



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 17:36.


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