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

[CSS/CS:GO] Weapon Restrict


Post New Thread Reply   
 
Thread Tools Display Modes
alexding
Junior Member
Join Date: Nov 2011
Old 04-06-2013 , 09:03   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1381

just curious, is this plugin still works in CS:S?
alexding is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-06-2013 , 11:32   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1382

Yes - currently works on our CS:S servers
__________________
View my Plugins | Donate
TnTSCS is offline
eyes of hunter
Member
Join Date: Dec 2011
Old 04-13-2013 , 02:58   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1383

Hi, I was wondering if it is possible to add more special rounds. I'd love it if something like 'sm_shotguns' was implemented to allow only m3.
eyes of hunter is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-13-2013 , 03:20   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1384

Quote:
Originally Posted by eyes of hunter View Post
Hi, I was wondering if it is possible to add more special rounds. I'd love it if something like 'sm_shotguns' was implemented to allow only m3.
You can simply make config file filled weapon restriction commands
Code:
sm_restrict all 0
sm_unrestrict shotguns
sm_unrestrict knife
sm_unrestrict defuser
sm_unrestrict vesthelm
sm_unrestrict vest
sm_remove_restricted
Then reset back
Code:
sm_reload_restrictions
__________________
Do not Private Message @me
Bacardi is offline
eyes of hunter
Member
Join Date: Dec 2011
Old 04-13-2013 , 04:16   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1385

I'll give it a try, thank you.

Sm_reload_restrictions loads what you have by default in weapon_restrict.cfg, right?
eyes of hunter is offline
eyes of hunter
Member
Join Date: Dec 2011
Old 04-13-2013 , 04:54   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1386

Arg. It doesn't do exactly what I want.

I use the roundcron plugin to call a vote (thru the admin custom vote plugin) every 10 rounds so players can choose the type of the next round, with the options: Only knife, only pistols and regular round.

I've tried using a cfg (m3.cfg) with the commands you posted so it gets executed if players vote it, but the problem is that when selected, it is called instantly, not when the following round starts.

That's why I asked if Dr!fter could add that new special round, so I could use it the same way the current knives and pistols ones are.

Last edited by eyes of hunter; 04-13-2013 at 05:00.
eyes of hunter is offline
CenT
Senior Member
Join Date: Aug 2009
Location: FRANCE
Old 04-17-2013 , 19:07   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1387

Hello,
since updating CS: S (16/04/2013) I get these bugs in the logs:

Quote:
L 04/17/2013 - 19:10:47: Info (map "cs_deagle5") (file "errors_20130417.log")
L 04/17/2013 - 19:10:47: [weapon_restrict.smx] Sound sound/buttons/weapon_cant_buy.wav dosnt exist
L 04/17/2013 - 19:194: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 04/17/2013 - 19:194: [SM] Native "PrintToChat" reported: Translation failed: invalid client index 1953719670
L 04/17/2013 - 19:194: [SM] Displaying call stack trace for plugin "weapon_restrict.smx":
L 04/17/2013 - 19:194: [SM] [0] Line 89, restrictinc/natives.sp::Native_RefundMoney()
L 04/17/2013 - 19:194: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 04/17/2013 - 19:194: [SM] Native "Restrict_RefundMoney" reported: Error encountered while processing a dynamic native
L 04/17/2013 - 19:194: [SM] Displaying call stack trace for plugin "weapon_restrict.smx":
L 04/17/2013 - 19:194: [SM] [0] Line 227, restrictinc/natives.sp::Native_RemoveRandom()
L 04/17/2013 - 19:194: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 04/17/2013 - 19:194: [SM] Native "Restrict_RemoveRandom" reported: Error encountered while processing a dynamic native
L 04/17/2013 - 19:194: [SM] Displaying call stack trace for plugin "weapon_restrict.smx":
L 04/17/2013 - 19:194: [SM] [0] Line 675, restrictinc/natives.sp::Native_CheckPlayerWeapons()
L 04/17/2013 - 19:194: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 04/17/2013 - 19:194: [SM] Native "Restrict_CheckPlayerWeapons" reported: Error encountered while processing a dynamic native
L 04/17/2013 - 19:194: [SM] Displaying call stack trace for plugin "weapon_restrict.smx":
L 04/17/2013 - 19:194: [SM] [0] Line 159, restrictinc/events.sp::EventRoundStart()
L 04/17/2013 - 19:20:01: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 04/17/2013 - 19:20:01: [SM] Native "PrintToChat" reported: Translation failed: invalid client index 1953719670
L 04/17/2013 - 19:20:01: [SM] Displaying call stack trace for plugin "weapon_restrict.smx":
L 04/17/2013 - 19:20:01: [SM] [0] Line 89, restrictinc/natives.sp::Native_RefundMoney()
L 04/17/2013 - 19:20:01: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 04/17/2013 - 19:20:01: [SM] Native "Restrict_RefundMoney" reported: Error encountered while processing a dynamic native
L 04/17/2013 - 19:20:01: [SM] Displaying call stack trace for plugin "weapon_restrict.smx":
L 04/17/2013 - 19:20:01: [SM] [0] Line 227, restrictinc/natives.sp::Native_RemoveRandom()
L 04/17/2013 - 19:20:01: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 04/17/2013 - 19:20:01: [SM] Native "Restrict_RemoveRandom" reported: Error encountered while processing a dynamic native
L 04/17/2013 - 19:20:01: [SM] Displaying call stack trace for plugin "weapon_restrict.smx":
L 04/17/2013 - 19:20:01: [SM] [0] Line 675, restrictinc/natives.sp::Native_CheckPlayerWeapons()
L 04/17/2013 - 19:20:01: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 04/17/2013 - 19:20:01: [SM] Native "Restrict_CheckPlayerWeapons" reported: Error encountered while processing a dynamic native
L 04/17/2013 - 19:20:01: [SM] Displaying call stack trace for plugin "weapon_restrict.smx":
L 04/17/2013 - 19:20:01: [SM] [0] Line 159, restrictinc/events.sp::EventRoundStart()
L 04/17/2013 - 19:20:26: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 04/17/2013 - 19:20:26: [SM] Native "PrintToChat" reported: Translation failed: invalid client index 1953719670
L 04/17/2013 - 19:20:26: [SM] Displaying call stack trace for plugin "weapon_restrict.smx":
L 04/17/2013 - 19:20:26: [SM] [0] Line 89, restrictinc/natives.sp::Native_RefundMoney()
L 04/17/2013 - 19:20:26: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 04/17/2013 - 19:20:26: [SM] Native "Restrict_RefundMoney" reported: Error encountered while processing a dynamic native
L 04/17/2013 - 19:20:26: [SM] Displaying call stack trace for plugin "weapon_restrict.smx":
L 04/17/2013 - 19:20:26: [SM] [0] Line 227, restrictinc/natives.sp::Native_RemoveRandom()
L 04/17/2013 - 19:20:26: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 04/17/2013 - 19:20:26: [SM] Native "Restrict_RemoveRandom" reported: Error encountered while processing a dynamic native
L 04/17/2013 - 19:20:26: [SM] Displaying call stack trace for plugin "weapon_restrict.smx":
L 04/17/2013 - 19:20:26: [SM] [0] Line 675, restrictinc/natives.sp::Native_CheckPlayerWeapons()
L 04/17/2013 - 19:20:26: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 04/17/2013 - 19:20:26: [SM] Native "Restrict_CheckPlayerWeapons" reported: Error encountered while processing a dynamic native
L 04/17/2013 - 19:20:26: [SM] Displaying call stack trace for plugin "weapon_restrict.smx":
L 04/17/2013 - 19:20:26: [SM] [0] Line 159, restrictinc/events.sp::EventRoundStart()
L 04/17/2013 - 19:202: Error log file session closed.
CenT is offline
Sakretsos
Member
Join Date: Feb 2013
Old 04-17-2013 , 21:12   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1388

how to fix this ?

Code:
L 04/18/2013 - 02:58:41: [weapon_restrict.smx] Sound sound/buttons/weapon_cant_buy.wav dosnt exist
and when i change it to file costum/customer/sound/buttons/weapon_cant_buy.wav i get saurgment error .. why ?
__________________

Hellenic SF Gameservers To Do List
Sakretsos is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 04-17-2013 , 23:22   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1389

Quote:
Originally Posted by CenT View Post
Hello,
since updating CS: S (16/04/2013) I get these bugs in the logs:
Did you add the translations back onto the server?

Quote:
Originally Posted by Sakretsos View Post
how to fix this ?

Code:
L 04/18/2013 - 02:58:41: [weapon_restrict.smx] Sound sound/buttons/weapon_cant_buy.wav dosnt exist
and when i change it to file costum/customer/sound/buttons/weapon_cant_buy.wav i get saurgment error .. why ?
It cant find the sound i assume its something to do with the new file stuff but cant test for a few days. The file path should be based from inside the cstrike directory.
Dr!fter is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-18-2013 , 01:39   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1390

sounds are packed inside VPK file.
Try extract sound inside VPK to your server sound folder.
...sound/buttons/weapon_cant_buy.wav

*edit
@Dr!fter, since weapon_cant_buy.wav is inside VPK file and everyone has it automatically...
what if "hardcode" precache this file as default, and then if "different" sound file not exist, start use this default.
Attached Files
File Type: zip sound.zip (35.3 KB, 256 views)
__________________
Do not Private Message @me

Last edited by Bacardi; 04-18-2013 at 01:50.
Bacardi 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 02:48.


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