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

[CSS/CS:GO] Weapon Restrict


Post New Thread Reply   
 
Thread Tools Display Modes
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 06-22-2015 , 13:20   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1771

Quote:
Originally Posted by Dr!fter View Post
I tested and it seems to work fine in csgo when buying a restricted weapon. The sound path has to have the sound/ part for precaching the sound. But it is removed when playing the sound (you can see it in natives.sp or functions.sp iirc)
Should the sound be played when I want to pick up restricted weapon? (with my server settings it's easier for me to test it this way, not with weapon buying) If yes, then it's not playing on CSS (everything updated) and it's the first time I see the plugin using different path to cache and different path to play the sound.

I always prefered the built-in sounds, so there's a less amount of downloads for players and they can't disable my sounds with cl_downloadfilter then, but it's really 1st time I see something like this.
GrO is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 06-22-2015 , 14:13   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1772

Quote:
Originally Posted by GrO View Post
Should the sound be played when I want to pick up restricted weapon? (with my server settings it's easier for me to test it this way, not with weapon buying) If yes, then it's not playing on CSS (everything updated) and it's the first time I see the plugin using different path to cache and different path to play the sound.

I always prefered the built-in sounds, so there's a less amount of downloads for players and they can't disable my sounds with cl_downloadfilter then, but it's really 1st time I see something like this.
No, only on buy or else it would get quiet annoying. Also i got that wrong, i meant that AddFileToDownloadsTable and FileExists require the sound/ part. The sound itself isnt custom either its a default sound, so the above could be ignored, but some use custom ones so the checks have to be done.
Dr!fter is offline
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 06-22-2015 , 15:49   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1773

Quote:
Originally Posted by Dr!fter View Post
No, only on buy or else it would get quiet annoying. Also i got that wrong, i meant that AddFileToDownloadsTable and FileExists require the sound/ part. The sound itself isnt custom either its a default sound, so the above could be ignored, but some use custom ones so the checks have to be done.
So I was wrongly testing it, works well and thanks for explanation.

EDIT:
Could that be a new feature to be able to allow/disallow the restrict sound on restricted pick up?

Last edited by GrO; 06-22-2015 at 15:51.
GrO is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 06-23-2015 , 14:07   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1774

Quote:
Originally Posted by GrO View Post
So I was wrongly testing it, works well and thanks for explanation.

EDIT:
Could that be a new feature to be able to allow/disallow the restrict sound on restricted pick up?
I probably wont add it, but you can easily add it if you want.

https://bitbucket.org/Drifter321/wea...=default#cl-88

before the CreateTimer add Restrict_PlayRestrictSound(client, id);
Dr!fter is offline
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 06-23-2015 , 18:22   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1775

Quote:
Originally Posted by Dr!fter View Post
I probably wont add it, but you can easily add it if you want.

https://bitbucket.org/Drifter321/wea...=default#cl-88

before the CreateTimer add Restrict_PlayRestrictSound(client, id);
Appreciated, thanks.
GrO is offline
Anjin
Senior Member
Join Date: Apr 2015
Old 07-03-2015 , 08:52   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1776

Doesn't want to compile:

restrictinc/adminmenu.sp(404) : error 157: 'int' is a reserved keyword

Had to rename it.
Anjin is offline
R1KO
Member
Join Date: Sep 2013
Old 07-04-2015 , 11:11   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1777

Quote:
Originally Posted by Anjin View Post
Doesn't want to compile:

restrictinc/adminmenu.sp(404) : error 157: 'int' is a reserved keyword

Had to rename it.
change int to i
R1KO is offline
Send a message via Skype™ to R1KO
Anjin
Senior Member
Join Date: Apr 2015
Old 07-07-2015 , 16:29   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1778

There's a bug with restricting molotovs and incgrenades. If you restrict them for Ts, but allow them for CTs, it works fine by preventing Ts from buying molotovs, but if a CT drops one, you can pick it up normally, like it isn't restricted.

An easier way to test this is to enable cheats and do give weapon_molotov

Last edited by Anjin; 07-08-2015 at 07:53.
Anjin is offline
Hunter6272
Senior Member
Join Date: Jun 2015
Location: Don't know
Old 07-16-2015 , 18:50   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1779

I m getting a problem in Admin menu with this plugin.It is having a conflict with ultimate map chooser's admin menu as when i try to open UMC menu in !admin,it shows weapon-restrict's menu instead
__________________
Patience is the key to success.
Hunter6272 is offline
CenT
Senior Member
Join Date: Aug 2009
Location: FRANCE
Old 08-19-2015 , 15:52   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1780

Hello,

I make a suggestion to request the addition of the weapon "taser" for this option:

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





Possible to implement it for CSGO ?

Thank You
CenT 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 06:13.


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