The Salt Boss
|
03-18-2014
, 10:03
Re: [CSS/CS:GO] Weapon Restrict
|
#1539
|
Quote:
Originally Posted by coryandtrevor
Copying translations folder didn't work, I checked the error log and this was something I thought was maybe the culprit:
L 03/17/2014 - 19 6:51: [weapon_restrict.smx] Invalid section name found in perplayer.txt
L 03/17/2014 - 19 6:51: [weapon_restrict.smx] Failed to parse Perplayer fully
L 03/17/2014 - 19 6:51: [weapon_restrict.smx] Perplayer parser error on line 95 col 2. Error:
L 03/17/2014 - 19 8:27: Error log file session closed.
But all I have in my perplayer.txt is:
I have no clue. It makes no sense to me. I've typed every possible name for weapons in pre and post warmup and nothing will prevent every weapon. I've entered them all in per player restrictions and that sort of helped, but nothing prevents me and bots from autobuying galils, aks and m4s. Does the mod need other work besides coding the different names for CS:GO?
|
Code:
// This file was auto-generated by SourceMod (v1.5.3-dev+3996)
// 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 "0"
// 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"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:ak47
// -
// Default: "0"
sm_restrict_ak47_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:ak47
// -
// Default: "0"
sm_restrict_ak47_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:aug
// -
// Default: "0"
sm_restrict_aug_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:aug
// -
// Default: "0"
sm_restrict_aug_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:awp
// -
// Default: "0"
sm_restrict_awp_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:awp
// -
// Default: "0"
sm_restrict_awp_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:bizon
// -
// Default: "0"
sm_restrict_bizon_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:bizon
// -
// Default: "0"
sm_restrict_bizon_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:c4
// -
// Default: "0"
sm_restrict_c4 "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:deagle
// -
// Default: "0"
sm_restrict_deagle_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:deagle
// -
// Default: "0"
sm_restrict_deagle_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:decoy
// -
// Default: "0"
sm_restrict_decoy_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:decoy
// -
// Default: "0"
sm_restrict_decoy_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:defuser
// -
// Default: "0"
sm_restrict_defuser "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:elite
// -
// Default: "0"
sm_restrict_elite_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:elite
// -
// Default: "0"
sm_restrict_elite_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:famas
// -
// Default: "0"
sm_restrict_famas_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:famas
// -
// Default: "0"
sm_restrict_famas_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:fiveseven
// -
// Default: "0"
sm_restrict_fiveseven_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:fiveseven
// -
// Default: "0"
sm_restrict_fiveseven_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:flashbang
// -
// Default: "0"
sm_restrict_flashbang_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:flashbang
// -
// Default: "0"
sm_restrict_flashbang_t "-1"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:g3sg1
// -
// Default: "0"
sm_restrict_g3sg1_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:g3sg1
// -
// Default: "0"
sm_restrict_g3sg1_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:galilar
// -
// Default: "0"
sm_restrict_galilar_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:galilar
// -
// Default: "0"
sm_restrict_galilar_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:glock
// -
// Default: "0"
sm_restrict_glock_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:glock
// -
// Default: "0"
sm_restrict_glock_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:hegrenade
// -
// Default: "0"
sm_restrict_hegrenade_ct "-1"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:hegrenade
// -
// Default: "0"
sm_restrict_hegrenade_t "-1"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:hkp2000
// -
// Default: "0"
sm_restrict_hkp2000_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:hkp2000
// -
// Default: "0"
sm_restrict_hkp2000_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:incgrenade
// -
// Default: "0"
sm_restrict_incgrenade_ct "-1"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:incgrenade
// -
// Default: "0"
sm_restrict_incgrenade_t "-1"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:knife
// -
// Default: "0"
sm_restrict_knife_ct "-1"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:knife
// -
// Default: "0"
sm_restrict_knife_t "-1"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:knifegg
// -
// Default: "0"
sm_restrict_knifegg_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:knifegg
// -
// Default: "0"
sm_restrict_knifegg_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:m249
// -
// Default: "0"
sm_restrict_m249_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:m249
// -
// Default: "0"
sm_restrict_m249_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:m4a1
// -
// Default: "0"
sm_restrict_m4a1_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:m4a1
// -
// Default: "0"
sm_restrict_m4a1_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:mac10
// -
// Default: "0"
sm_restrict_mac10_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:mac10
// -
// Default: "0"
sm_restrict_mac10_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:mag7
// -
// Default: "0"
sm_restrict_mag7_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:mag7
// -
// Default: "0"
sm_restrict_mag7_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:molotov
// -
// Default: "0"
sm_restrict_molotov_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:molotov
// -
// Default: "0"
sm_restrict_molotov_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:mp7
// -
// Default: "0"
sm_restrict_mp7_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:mp7
// -
// Default: "0"
sm_restrict_mp7_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:mp9
// -
// Default: "0"
sm_restrict_mp9_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:mp9
// -
// Default: "0"
sm_restrict_mp9_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:negev
// -
// Default: "0"
sm_restrict_negev_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:negev
// -
// Default: "0"
sm_restrict_negev_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:nova
// -
// Default: "0"
sm_restrict_nova_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:nova
// -
// Default: "0"
sm_restrict_nova_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:nvgs
// -
// Default: "0"
sm_restrict_nvgs_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:nvgs
// -
// Default: "0"
sm_restrict_nvgs_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:p250
// -
// Default: "0"
sm_restrict_p250_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:p250
// -
// Default: "0"
sm_restrict_p250_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:p90
// -
// Default: "0"
sm_restrict_p90_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:p90
// -
// Default: "0"
sm_restrict_p90_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:sawedoff
// -
// Default: "0"
sm_restrict_sawedoff_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:sawedoff
// -
// Default: "0"
sm_restrict_sawedoff_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:scar20
// -
// Default: "0"
sm_restrict_scar20_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:scar20
// -
// Default: "0"
sm_restrict_scar20_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:sg556
// -
// Default: "0"
sm_restrict_sg556_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:sg556
// -
// Default: "0"
sm_restrict_sg556_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:smokegrenade
// -
// Default: "0"
sm_restrict_smokegrenade_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:smokegrenade
// -
// Default: "0"
sm_restrict_smokegrenade_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:ssg08
// -
// Default: "0"
sm_restrict_ssg08_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:ssg08
// -
// Default: "0"
sm_restrict_ssg08_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:taser
// -
// Default: "0"
sm_restrict_taser_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:taser
// -
// Default: "0"
sm_restrict_taser_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:tec9
// -
// Default: "0"
sm_restrict_tec9_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:tec9
// -
// Default: "0"
sm_restrict_tec9_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:ump45
// -
// Default: "0"
sm_restrict_ump45_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:ump45
// -
// Default: "0"
sm_restrict_ump45_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:vest
// -
// Default: "0"
sm_restrict_vest_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:vest
// -
// Default: "0"
sm_restrict_vest_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:vesthelm
// -
// Default: "0"
sm_restrict_vesthelm_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:vesthelm
// -
// Default: "0"
sm_restrict_vesthelm_t "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:xm1014
// -
// Default: "0"
sm_restrict_xm1014_ct "0"
// 0 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:xm1014
// -
// Default: "0"
sm_restrict_xm1014_t "0"
// Sound to play when a weapon is restricted (leave blank to disable)
// -
// Default: "sound/buttons/weapon_cant_buy.wav"
sm_restricted_sound "sound/buttons/weapon_cant_buy.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 "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 "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"
Works fine for me, also if your not using perplayer you shouldnt enable it. The error is saying there is an error at line 95 of perplayer so...
Quote:
Originally Posted by Nitro91
Everything works good for me only a little thing is pretty bad.
Is it possible to fix this chatspam if you stay on a restricted weapon? That would be very nice!
|
You can change the chat spam protection delay in the source and compile it
https://bitbucket.org/Drifter321/wea...t=default#cl-1
Last edited by Dr!fter; 03-18-2014 at 10:04.
|
|