Raised This Month: $ Target: $400
 0% 

[CSS/CS:GO] Weapon Restrict


Post New Thread Reply   
 
Thread Tools Display Modes
p0stpwned
Member
Join Date: Oct 2013
Old 10-10-2013 , 20:19   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1441

With a recent patch Valve added cross-buys to CS:GO (eg typing "buy ak47" gives you an M4 if you are on CT). The problem is, when somebody does this the plugin no longer stops them from buying restricted weapons.

I have autosnipes banned on my server, but if somebody tries to buy a SCAR on T through console they end up with a G3, and vice versa.

Any way you could think of to fix this easily?

Awesome plugin, by the way. Very happy with it.
p0stpwned is offline
Monochrome
SourceMod Donor
Join Date: Oct 2013
Old 10-21-2013 , 11:58   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1442

Can someone help me. I want to restrict awp to 0 if one team wins more than 3 points. Is it possible to do it with this plugin?
Monochrome is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 10-21-2013 , 13:05   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1443

It's possible to make a plugin that uses this plugin to do what you're requesting...

I'm not at home, so this might not work (probably won't):
untested
__________________
View my Plugins | Donate

Last edited by TnTSCS; 10-21-2013 at 13:06.
TnTSCS is offline
Monochrome
SourceMod Donor
Join Date: Oct 2013
Old 10-22-2013 , 07:57   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1444

Thanks for response TnTSCS. I appreciate you trying to help me I would gladly test it but I can't compile it
Monochrome is offline
Sopano
Member
Join Date: Sep 2013
Location: Bosna Hercek
Old 10-23-2013 , 07:03   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1445

how to fix the warmup becouse it starts the game 2 times ?
__________________
Sopano is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 10-23-2013 , 17:29   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1446

Quote:
Originally Posted by Monochrome View Post
Thanks for response TnTSCS. I appreciate you trying to help me I would gladly test it but I can't compile it
Here you go... updated the code a bit... still untested though

...:: TnT Edit ::...

This plugin has it's own thread now: https://forums.alliedmods.net/showthread.php?t=228649
Attached Files
File Type: smx AWP_win_limit.smx (5.6 KB, 173 views)
File Type: sp Get Plugin or Get Source (AWP_win_limit.sp - 176 views - 2.2 KB)
__________________
View my Plugins | Donate

Last edited by TnTSCS; 10-24-2013 at 11:20.
TnTSCS is offline
Monochrome
SourceMod Donor
Join Date: Oct 2013
Old 10-23-2013 , 17:55   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1447

Quote:
Originally Posted by TnTSCS View Post
Here you go... updated the code a bit... still untested though
I tested it only for just a bit but it appears to be working! I'll report as soon as I test it further Thank you!
Monochrome is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 10-23-2013 , 17:57   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1448

I just attached a fixed version - the one I posted had a left over LogMessage debug thing... sorry about that.
__________________
View my Plugins | Donate
TnTSCS is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 10-23-2013 , 22:59   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1449

Quote:
Originally Posted by TnTSCS View Post
Here you go... updated the code a bit... still untested though
Instead of getting the weapon id by passing "awp" to the function just use the weapon id itself I think its WEAPON_AWP

Last edited by Dr!fter; 10-23-2013 at 22:59.
Dr!fter is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 10-23-2013 , 23:04   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1450

Quote:
Originally Posted by p0stpwned View Post
With a recent patch Valve added cross-buys to CS:GO (eg typing "buy ak47" gives you an M4 if you are on CT). The problem is, when somebody does this the plugin no longer stops them from buying restricted weapons.

I have autosnipes banned on my server, but if somebody tries to buy a SCAR on T through console they end up with a G3, and vice versa.

Any way you could think of to fix this easily?

Awesome plugin, by the way. Very happy with it.
I looked into it, there isnt an easy fix sadly, I have a temp fix in mind but I have to incorporate it.
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 00:55.


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