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

[CSS/CS:GO] Weapon Restrict


Post New Thread Reply   
 
Thread Tools Display Modes
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 06-20-2015 , 10:04   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1761

Quote:
Originally Posted by Anjin View Post
Plugin is missing CS:GO weapons (cz75a, usp_silencer, m4a1_silencer).

CZ75a pistol: http://blog.counter-strike.net/index.php/2014/02/8644/
M4A1 & USP silenced: http://blog.counter-strike.net/index.php/2013/08/7425/
Its not missing anything those weapons have the same id as the ones that they replace.
Dr!fter is offline
Anjin
Senior Member
Join Date: Apr 2015
Old 06-20-2015 , 10:29   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1762

weapon_cz75a isn't anywhere in the source files for example, so how do you restrict it with sm_restrict_cz75a_t, sm_restrict_cz75a_ct if it doesn't recognize it?

And they don't have the same id (weapon_usp vs weapon_usp_silencer and weapon_m4a1 vs weapon_m4a1_silencer). I haven't tried it, but I don't think sm_restrict_usp_ct or sm_restrict_m4a1_ct will restrict weapon_usp_silencer and weapon_m4a1_silencer because they don't have the same id.

Last edited by Anjin; 06-20-2015 at 10:36.
Anjin is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 06-20-2015 , 11:12   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1763

Quote:
Originally Posted by Anjin View Post
weapon_cz75a isn't anywhere in the source files for example, so how do you restrict it with sm_restrict_cz75a_t, sm_restrict_cz75a_ct if it doesn't recognize it?

And they don't have the same id (weapon_usp vs weapon_usp_silencer and weapon_m4a1 vs weapon_m4a1_silencer). I haven't tried it, but I don't think sm_restrict_usp_ct or sm_restrict_m4a1_ct will restrict weapon_usp_silencer and weapon_m4a1_silencer because they don't have the same id.
it works for me and hunderts other users... you can belive what the plugin author says...
__________________
coding & free software
shanapu is offline
Anjin
Senior Member
Join Date: Apr 2015
Old 06-20-2015 , 11:47   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1764

Quote:
VAC secure mode is activated.
GC Connection established for server version 191, instance idx 1
sm_restrict_cz75a_t
Unknown command "sm_restrict_cz75a_t"
Anjin is offline
Anjin
Senior Member
Join Date: Apr 2015
Old 06-20-2015 , 12:09   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1765

Ok, the restriction works, but weapon_cz75a and weapon_usp_silencer are tied to weapon_p250 and weapon_hkp2000, which doesn't make sense.

Tying weapon_m4a1 and weapon_m4a1_silencer I understand, but the other two do not make sense. Why restrict 2 weapons with 1 command and not consider them separate weapons?

Last edited by Anjin; 06-20-2015 at 12:10.
Anjin is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 06-20-2015 , 12:13   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1766

Quote:
Originally Posted by Dr!fter View Post
Its not missing anything those weapons have the same id as the ones that they replace.
__________________
coding & free software
shanapu is offline
Anjin
Senior Member
Join Date: Apr 2015
Old 06-20-2015 , 12:19   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1767

Which weapon does C75a replace?

You could argue famas can replace m4a1 when you equip it, and deagle can replace hkp2000 when you equip it, still, you have 2 commands for those 2 weapons.

Why not have a command for cz75a and usp_silencer instead of restricting them with 1 command meant for a different weapon? That's like restricting m4a1 and together with it famas. Doesn't make sense. What if I wanted to restrict cz75a but allow hkp2000 and p250, how do I do it? I can't, because the plugin is missing the weapon.

Last edited by Anjin; 06-20-2015 at 15:08.
Anjin is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 06-20-2015 , 16:11   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1768

Quote:
Originally Posted by Anjin View Post
Which weapon does C75a replace?

You could argue famas can replace m4a1 when you equip it, and deagle can replace hkp2000 when you equip it, still, you have 2 commands for those 2 weapons.

Why not have a command for cz75a and usp_silencer instead of restricting them with 1 command meant for a different weapon? That's like restricting m4a1 and together with it famas. Doesn't make sense. What if I wanted to restrict cz75a but allow hkp2000 and p250, how do I do it? I can't, because the plugin is missing the weapon.
Valve considers them the same and internally have the same id m4a4->m4a1 hkp2000->usp five seven(I think)->cz that's how the plugin was designed to use the ids valve has for weapons making lookup quick otherwise the plugin would have to compare strings. The only way to add this as an option is to have unique ids for all.
Dr!fter is offline
Anjin
Senior Member
Join Date: Apr 2015
Old 06-20-2015 , 17:48   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1769

Hm, so this is less of an issue of the plugin, but CS:GO itself then. Okay... Maybe you should at least edit the 1st post and clarify this somewhere.

Last edited by Anjin; 06-20-2015 at 17:49.
Anjin is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 06-21-2015 , 16:17   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1770

Quote:
Originally Posted by GrO View Post
Probably, because when I test it in CSS console I hear the sound, only when typing this:

play buttons/weapon_cant_buy.wav

...and this is the only path working for me.
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)
Dr!fter 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 15:57.


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