Raised This Month: $ Target: $400
 0% 

[CSS/CS:GO] Weapon Restrict


Post New Thread Reply   
 
Thread Tools Display Modes
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 11-03-2010 , 06:31   Re: [CSS] Weapon Restrict
Reply With Quote #571

Great idea ;]
__________________
GrO is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 11-03-2010 , 22:20   Re: [CSS] Weapon Restrict
Reply With Quote #572

Quote:
Originally Posted by nightrider View Post
Thank you for the latest information and your continued support of this great plugin.

Request: for sm commands that are specific to each weapon set in CS:S
This would allow for weapon specif rounds and not require advanced commands Sourcemod plugin.
These should restrict rounds to knife & weapon only.

Similar to the functionality of commands:
//Sets to pistol only round
sm_pistols - will set next round as pistols only
//Sets knife round only
sm_knives - will set up next round as knife only


Example:
sm_usp
sm_glock
sm_p228
sm_deagle
sm_fiveseven
sm_elite

sm_xm1014
sm_m3

sm_m249
sm_mp5navy
sm_ak47
sm_m4a1
sm_scout

sm_tmp
sm_mac10
sm_mp5navy
sm_ump45
sm_p90

sm_famas
sm_galil
sm_m4a1
sm_ak47
sm_sg552
sm_aug

sm_sg550
sm_g3sg1
sm_scout
sm_awp

sm_m249

sm_hegrenade
sm_flashbang
sm_smokegrenade

sm_c4all = suicide bomber round ... lol


...
K will most likely add. I got a quick way to code it and simple.

On a side note there will be a interesting addition (i think) There will be a very cool forward... that will allow you to change weapon price! Obviously this will not be in the weapon restrict plugin but in another plugin. Something to keep your eyes out for! Ive seen some people looking for something to do this. Combined with my account extension and you can have awps costing 36000 hehe. On actuall progress the extensions seems to be mostly done. Time to advance into creating a new plugin.
Dr!fter is offline
Xp3r7
SourceMod Donor
Join Date: Jul 2006
Old 11-03-2010 , 23:32   Re: [CSS] Weapon Restrict
Reply With Quote #573

Awesome work man!

In addition to what nightrider suggested, Id love to see:

sm_shotguns (only shot guns)

sm_smgs (only smgs)

sm_rifles (only rifles - no snipers)

sm_snipers (only the 3 snipers)

sm_nosnipers (blocks all 3 snipers)

sm_nades (unlimited nade round with all other weapons but the knife restricted)

I dont know how to code but it looks like all you would have to do is assign each weapon to a "class" and either enable/disable that "class" depending on the command.
__________________
Xp3r7 is offline
Send a message via MSN to Xp3r7
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-04-2010 , 02:46   Re: [CSS] Weapon Restrict
Reply With Quote #574

Those can be done executing config file from server...
What I have done, I got default list and I copy new file of this (shotguns.cfg, knife.cfg, pistols.cfg, wildwest.cfg).
Then I just //comment that line what I don't want to unrestrict.
Code:
sm_restrict @all
sm_unrestrict vest
sm_unrestrict vesthelm
//sm_unrestrict defuser
//sm_unrestrict nvgs
//sm_unrestrict flashbang
//sm_unrestrict hegrenade
//sm_unrestrict smokegrenade
//sm_unrestrict galil
//sm_unrestrict ak47
//sm_unrestrict scout
//sm_unrestrict sg552
//sm_unrestrict awp
//sm_unrestrict g3sg1
//sm_unrestrict famas
//sm_unrestrict m4a1
//sm_unrestrict aug
//sm_unrestrict sg550
//sm_unrestrict glock
//sm_unrestrict usp
//sm_unrestrict p228
//sm_unrestrict deagle
//sm_unrestrict elite
//sm_unrestrict fiveseven
sm_unrestrict m3
sm_unrestrict xm1014
//sm_unrestrict mac10
//sm_unrestrict tmp
//sm_unrestrict mp5navy
//sm_unrestrict ump45
//sm_unrestrict p90
//sm_unrestrict m249
sm_equip m3
Seems there alos advanced commands sm_equip m3, give shotgun immediatelly when execute this file and remove all other weapons.

When you need reset back default weapon restrict settings, sm_reload_restrictions

Last edited by Bacardi; 11-04-2010 at 02:49.
Bacardi is offline
siangc
Senior Member
Join Date: Mar 2010
Old 11-07-2010 , 04:27   Re: [CSS] Weapon Restrict
Reply With Quote #575

I cant get the number restrictions to work, either players can buy it as many times as they want, or none at all. doesn't matter if i do it in the cfg file or ingame
__________________
siangc is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 11-07-2010 , 12:32   Re: [CSS] Weapon Restrict
Reply With Quote #576

What game? cssbeta? css? It works fine for me (and im sure many others or else there would be many complaints). Which weapons?
Dr!fter is offline
siangc
Senior Member
Join Date: Mar 2010
Old 11-07-2010 , 13:33   Re: [CSS] Weapon Restrict
Reply With Quote #577

just regular css, on SourceMod Version: 1.3.5. I've only tried to limit grenades and smoke grenades.
if I for example put this in the cfg, ct's can still buy as many grenades as they like.

// Restrict/Unrestrict -1 unrestricts hegrenade for ct
// -
// Default: "-1"
sm_restrict_hegrenade_ct "3"
__________________

Last edited by siangc; 11-07-2010 at 13:59.
siangc is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 11-07-2010 , 16:01   Re: [CSS] Weapon Restrict
Reply With Quote #578

They can buy as many as they want but they are limited to have a total of 3 at any time on a team. It doesn't limit them from buying throwing buying throwing etc.. It limits how many grenades a team can have at a time. If 3 ct have grenades and a 4th tries to buy one it will say it's restricted
Dr!fter is offline
siangc
Senior Member
Join Date: Mar 2010
Old 11-07-2010 , 17:06   Re: [CSS] Weapon Restrict
Reply With Quote #579

ah i see, didn't think it worked that way.. could you perhaps make it so its not how many they can have at a time, but how many can be bought through a round, to prevent nadespam?
__________________
siangc is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 11-07-2010 , 17:48   Re: [CSS] Weapon Restrict
Reply With Quote #580

http://forums.alliedmods.net/showthread.php?p=968697 Im not sure how well it works. If it dosnt work properly i can whip one up once im done with my weapon tools extension (i really need to start thinking of a name for release lol...)
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 13:09.


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