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

[CS:S] Sniper Restrict


Post New Thread Reply   
 
Thread Tools Display Modes
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 03-10-2013 , 19:13   Re: [CS:S] Sniper Restrict
Reply With Quote #61

I think that sound is a default sound... located at cstrike/sound/buttons/weapon_cant_buy.wav
__________________
View my Plugins | Donate
TnTSCS is offline
Trapasaurus
Junior Member
Join Date: Jun 2011
Old 04-02-2013 , 04:19   Re: [CS:S] Sniper Restrict
Reply With Quote #62

Quote:
L 04/02/2013 - 01:15:56: Info (map "de_dust2") (file "errors_20130402.log")
L 04/02/2013 - 01:15:56: [SniperRestrict.smx] File addons\sourcemod\configs\restrict\sound.txt dosnt exist
Please help... I'm currently half asleep and can't think.
Trapasaurus is offline
Trapasaurus
Junior Member
Join Date: Jun 2011
Old 04-02-2013 , 05:20   Re: [CS:S] Sniper Restrict
Reply With Quote #63

Also is there anyway you can make it so you can set customflags to bypass it? I assume that I bypass it because I have root admin but also my admins bypass it because I set the Override up in the admin_overrides file. But the VIP's are not set up through sourcebans....

something like this

// Default: "s"
sm_buy_adminflags "s"

Ex. VIP/admins users in the server can still use the awp all they want but none VIPs can not.

Last edited by Trapasaurus; 04-02-2013 at 05:25.
Trapasaurus is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-02-2013 , 11:43   Re: [CS:S] Sniper Restrict
Reply With Quote #64

bah - I must have removed that file from the OP - it's back... I'll be updating this plugin to use a different way of defining the sound.

As for the VIP thing, you can override the command "donot_restrict_snipers" to whatever flag you want - it's defaulted to CUSTOM2

Code:
admin_overrides.cfg

Overrides
{
"donot_restrict_snipers"    "s"
}
Also, you can define who sees the text when players get restricted by overriding the "sm_SniperRestrict_chat" to whatever flag you want - it's defaulted to CHAT
__________________
View my Plugins | Donate

Last edited by TnTSCS; 04-02-2013 at 11:43.
TnTSCS is offline
Trapasaurus
Junior Member
Join Date: Jun 2011
Old 04-02-2013 , 17:50   Re: [CS:S] Sniper Restrict
Reply With Quote #65

I noticed that when the msg is displayed it is displayed in both chat box and the hint box on the right hand side as well. Any setting I can change so it is only the chat box?
Trapasaurus is offline
Trapasaurus
Junior Member
Join Date: Jun 2011
Old 04-02-2013 , 17:53   Re: [CS:S] Sniper Restrict
Reply With Quote #66

Quote:
L 04/02/2013 - 14:52:08: [SniperRestrict.smx] Sound sound/admin_plugin/actions/restrictedweapon.wav dosnt exist
Trapasaurus is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-02-2013 , 23:26   Re: [CS:S] Sniper Restrict
Reply With Quote #67

Plugin Updated 1.6.3.2

See first post for details.

@Trapasaurus - I didn't see your request until I was posting the update... I'll include your suggestion in a subsequent update.
__________________
View my Plugins | Donate

Last edited by TnTSCS; 04-02-2013 at 23:26.
TnTSCS is offline
Trapasaurus
Junior Member
Join Date: Jun 2011
Old 04-03-2013 , 01:37   Re: [CS:S] Sniper Restrict
Reply With Quote #68

Alright thank you very much. I have updated the server with the new update.
Trapasaurus is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-03-2013 , 11:46   Re: [CS:S] Sniper Restrict
Reply With Quote #69

You'll need the updated phrases too... if you use Updater with this plugin then your server will auto update (except the config and new entries)
__________________
View my Plugins | Donate
TnTSCS is offline
Noitartsiger
Member
Join Date: Jul 2011
Old 04-16-2013 , 09:30   Re: [CS:S] Sniper Restrict
Reply With Quote #70

Hey TnTSCS,

I am currently testing all plugins for CS:S on SteamPipe. This plugin is not working correctly. After player reached the limit, he drops the weapon, can't buy a new one, but can pickup the restricted weapon.

I am running:
Quote:
mmsource-1.10.0-hg830-linux
sourcemod-1.5.0-hg3830-linux
cstrike/addons/sourcemod/gamedata/sdkhooks.games/custom/sdkhooks-steampipe-beta.txt
cstrike/addons/sourcemod/gamedata/sdktools.games/custom/sdktools-cstrike-steampipe-beta.txt
cstrike/addons/sourcemod/gamedata/sdktools.games/custom/cssdm-steampipe-beta.txt
"Sniper Restrict" (1.6.1 )
And config is:
Quote:
// (0,1) Notify admins when a player reaches their sniper kill limit - default is yes (1)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_SniperRestrict_adminnotify "0"

// Advertise this plugin to joining players?
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_SniperRestrict_advertise "1"

// Advise to players how many remaining sniper kills they have used?
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_SniperRestrict_advise "1"

// (0,1) Destroy the Sniper weapon the player is holding when they reach their MaxSniperKills?
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_SniperRestrict_destroyweapon "0"

// Drop the sniper weapon for the player who reached their limit at the rounds end?
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_SniperRestrict_droproundend "1"

// (0,1) Maintain restrictions until map changes? If set to no (0) then players can just reconnect to be able to purchase snipers again.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_SniperRestrict_maintainrestrictions "1"

// (0 to disable, number) Sets the max number of kills allowed with Snipers, per map
// -
// Default: "5"
// Minimum: "0.000000"
// Maximum: "100.000000"
sm_SniperRestrict_maxsniperkills "5"

// Notify all players when another player reaches their sniper kill limit?
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_SniperRestrict_notifyplayers "1"

// (0,1) Restrict applies to bots as well as hunans?
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_SniperRestrict_restrictforbots "1"

// (0,1) Include Scout in the Sniper group (this must be 0 if SniperReplace is scout)
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_SniperRestrict_scoutissniper "0"

// (weapon_name, none) Weapon to equip player once they've reached their MaxSniperKills limit (if ScoutIsSniper is 1, do not use weapon_scout)
// -
// Default: "weapon_scout"
sm_SniperRestrict_sniperreplace "none"

// Weapon Restricted Sound to Play
// -
// Default: "admin_plugin/actions/restrictedweapon.wav"
sm_SniperRestrict_sound "admin_plugin/actions/restrictedweapon.wav"

// Utilize 'Updater' plugin to auto-update Sniper Restrict when updates are published?
// 1=yes, 0=no
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_SniperRestrict_useupdater "0"

Last edited by Noitartsiger; 04-16-2013 at 09:32.
Noitartsiger is offline
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 04:04.


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