AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Metamod:Source Plugins (https://forums.alliedmods.net/forumdisplay.php?f=76)
-   -   CS:S Weapon Restrictions 2 (with source code) (16Dec06) (https://forums.alliedmods.net/showthread.php?t=40075)

L. Duke 06-02-2006 12:10

CS:S Weapon Restrictions 2 (with source code) (16Dec06)
 
CS:S Weapon Restrictions 2
by L. Duke

Restricted weapons can't be picked up (like a rifle/pistol can't be picked up if you already have one).

Includes a CVAR to delete weapons which should be enabled for CSSDM so massive piles of weapons don't cause server issues.

Download (includes source code)


Please post any bugs in this thread.

Obsolete

Source may be useful for MMS plugin authors learning to hook virtual functions.

FlyingMongoose 07-03-2006 09:26

Re: CS:S Weapon Restrictions 2 (with source code)
 
I'd still like to see something along the lines of restrict per-team.

restrict awp 2
2 awps per team

but I'd also like the ability to combine restrictions
restrict awp g3sg1 sg550 2

I sure hope you get what I mean by that...but if not.

Restricted autos and awps with a maximum of 2 per team, so it can be any combination of the following per team
2 awps
0 autos

1 awp
1 auto

0 awps
2 autos

get it? I sure hope so cuz I'm very lazy...I might sift through that source code of yours but I'm not very good at coding :(.

OoS-LJ 08-14-2006 15:23

Re: CS:S Weapon Restrictions 2 (with source code)
 
This does not seem to restrict bots from any weapons. Is there something I can do to restrict from bots.

L. Duke 08-14-2006 18:09

Re: CS:S Weapon Restrictions 2 (with source code)
 
These are bot cvars NOT plugin cvars.

Quote:

bot_all_weapons
Allows the bots to use all weapons

bot_knives_only
Restricts the bots to only using knives

bot_pistols_only
Restricts the bots to only using pistols

bot_snipers_only
Restricts the bots to only using sniper rifles

bot_allow_grenades: 0/1
bot_allow_machine_guns: 0/1
bot_allow_pistols: 0/1
bot_allow_rifles: 0/1
bot_allow_shotguns: 0/1
bot_allow_snipers: 0/1
bot_allow_sub_machine_guns: 0/1


OoS-LJ 08-14-2006 18:22

Re: CS:S Weapon Restrictions 2 (with source code)
 
Thank you very much, love the plugin for real people.

FlyingMongoose 08-17-2006 03:27

Re: CS:S Weapon Restrictions 2 (with source code)
 
is there any way I could get that request? or no? Just out of curiosity.

L. Duke 08-17-2006 10:46

Re: CS:S Weapon Restrictions 2 (with source code)
 
Ahh...sorry for not responding. I don't have any plans to add that at this time. I might add it if I think of a simple way of doing it that doesn't involve polling each player to find out what weapon they have every time someone touches a gun on the ground (since when you run over a gun the game sees you touching it about 20 times).

OoS-LJ 08-25-2006 01:19

Re: CS:S Weapon Restrictions 2 (with source code)
 
This was broken in the new update :( Will not load up.

L. Duke 08-25-2006 09:29

Re: CS:S Weapon Restrictions 2 (with source code)
 
Will be fixed as soon as I get the chance to update the function signatures.

Dark_Templar 09-04-2006 12:13

Re: CS:S Weapon Restrictions 2 (with source code)
 
Quote:

Originally Posted by L. Duke (Post 372803)
Will be fixed as soon as I get the chance to update the function signatures.

Any progress? :)

L. Duke 09-04-2006 14:11

Re: CS:S Weapon Restrictions 2 (with source code)
 
Updated for the latest update. Sorry it took so long, it was really a simple fix.

Download is in the first post.

Sash 10-16-2006 18:07

Re: CS:S Weapon Restrictions 2 (with source code)
 
Where does the cvars goes in server.cfg???

And how does they look like???

allow_snipers 0/1 ????

Plz help a Noob

L. Duke 10-17-2006 00:01

Re: CS:S Weapon Restrictions 2 (with source code)
 
It's all in the readme included in the download package. You can add restrictions to the server.cfg file or type them at the console for temporary restrictions.

They will look something like
restrict weapon_awp

The list of weapon names is in the readme or you can type the command shown below at the console (or via HLSW or rcon).

A couple console commands from the readme:
Quote:

restrict - view current restrictions
restrict help - view weapon names

mabu 12-06-2006 05:23

Re: CS:S Weapon Restrictions 2 (with source code)
 
Hello,

it is broken, since the last update ?

L. Duke 12-06-2006 11:19

Re: CS:S Weapon Restrictions 2 (with source code)
 
I just downloaded it and checked it out on my windows server and it works fine.

mabu 12-08-2006 04:44

Re: CS:S Weapon Restrictions 2 (with source code)
 
Hi,

i got this Messages on my hosted LINUX Server.

Code:

L 12/08/2006 - 09:42:15: "rcon [RESTRICT2] Could not find interface ServerGameDLL005 " from "80.137.72.152:1972"
09:42:12 Error reloading plugin:
09:42:12 -Id- Name                  Version    Author          Status 
        [01] Basic Admin Tool      1.4.0 B2    EKS              RUN   
        [04] -                    -          -                FAIL

any idea ?

L. Duke 12-08-2006 11:38

Re: CS:S Weapon Restrictions 2 (with source code)
 
Hmmm...for some reason it seems like the Windows server dll interface didn't get updated but linux did.

I'll have to recompile the plugin and get it uploaded.

Whisper 12-13-2006 22:25

Re: CS:S Weapon Restrictions 2 (with source code)
 
Quote:

Originally Posted by L. Duke (Post 412297)
Hmmm...for some reason it seems like the Windows server dll interface didn't get updated but linux did.

I'll have to recompile the plugin and get it uploaded.

Thanks

Looking forward to having a play with this.

LuKiE 12-16-2006 16:17

Re: CS:S Weapon Restrictions 2 (with source code)
 
well sorry to say this, but the windows server DLL is also changed to 006.
Its broken in my server . I run a Source Dedicated Windows Server.
But its kinda broke, i already installed the new metamod (1.3d) and when i type "meta game" it shows me that its on DLL006.
So please look into this again :).

L. Duke 12-16-2006 18:32

Re: CS:S Weapon Restrictions 2 (with source code)
 
Updated to 2.1.0

Download link is in first post.

Whisper 12-21-2006 02:11

Re: CS:S Weapon Restrictions 2 (with source code) (16Dec06)
 
Is it possible to setup CS:S Weapon Restrictions 2 so that people cannot even buy the guns in the first place?

At the moment you can buy the guns you restrict, it takes your money, but you don't end up with a gun, which is pretty evil and I like it, but people are going to be crying at me about it.

L. Duke 12-21-2006 10:58

Re: CS:S Weapon Restrictions 2 (with source code) (16Dec06)
 
The regular buy command could be blocked pretty easily. The hard part is the Autobuy/Rebuy commands as I have never figured out a way to see what they are trying to buy with those.

I think Mani uses the same method I did in the VIP Mod, which is to check what weapon they have after they use them and delete it if it is a restricted weapon. Refunding their money for this method has become a problem though, with dynamic weapon pricing.

I probably won't add a restrict on the buy command unless I can figure out a good way to handle autobuy/rebuy also.

Whisper 12-21-2006 11:30

Re: CS:S Weapon Restrictions 2 (with source code) (16Dec06)
 
Quote:

Originally Posted by L. Duke (Post 418101)
I probably won't add a restrict on the buy command unless I can figure out a good way to handle autobuy/rebuy also.

Well I am happy for you to just stop people who don't know any better from buying initially.

BUT

If they want to buggerise around with autobuy and rebuy, then sucked in when they find themselves $5000 out of pocket and NO GUN!!! :twisted:

tcviper 12-26-2006 10:07

Re: CS:S Weapon Restrictions 2 (with source code) (16Dec06)
 
LDuke possible to let it do 1 per team like restrict weapon_awp 1?

sodafr 02-25-2008 20:15

Re: CS:S Weapon Restrictions 2 (with source code) (16Dec06)
 
PAF download servers are down and the main site will probably be down very soon.

Quote:

Originally Posted by SoopaFlyYT
So, I've canceled the servers. The TF2 server is already gone. PAF2 will be down soon. I suggest that we have a little final farewell on PAF2 this Tuesday night. Say, 7:00 PM PST

Where can I download the plugin (and more the code source) ?

L. Duke 02-25-2008 21:28

Re: CS:S Weapon Restrictions 2 (with source code) (16Dec06)
 
I'll try to find the files and upload them to a new host. Send me a PM as a reminder.

Fredd 02-25-2008 23:16

Re: CS:S Weapon Restrictions 2 (with source code) (16Dec06)
 
still not up >.<

L. Duke 02-26-2008 10:33

Re: CS:S Weapon Restrictions 2 (with source code) (16Dec06)
 
I've uploaded it to http://files.filefront.com/restrict2.../fileinfo.html

I'll update the link in the main post also.

sodafr 02-26-2008 15:58

Re: CS:S Weapon Restrictions 2 (with source code) (16Dec06)
 
thank you a lot L. Duke:)
It will be very usefull :)

Fredd 02-26-2008 23:00

Re: CS:S Weapon Restrictions 2 (with source code) (16Dec06)
 
thx L.Duke :]

bakaideda 03-22-2008 08:08

Re: CS:S Weapon Restrictions 2 (with source code) (16Dec06)
 
HI... Can u upload file to RAPIDSHARE or similar because i cant even open a main page of filefront...

bleh! 12-13-2008 14:26

Re: CS:S Weapon Restrictions 2 (with source code) (16Dec06)
 
sorry for writing on this old topic but i ve a question. i installed this mod on my server and tried to use it. i typed "restrict" in console and it said "...unknown...". then i typed "meta list" to see which plugins are installed and i saw all plugins but instead of something like "..restrict.." i only saw <FAILED>.
i use metamod verson 1.4.3
could someone help me? :|

DZKreis 11-21-2009 09:18

Re: CS:S Weapon Restrictions 2 (with source code) (16Dec06)
 
Hello, I wanted to load this addon on my server, but unfortunately, not the download link -.- :nono:

If they could not upload them?

NoS 11-21-2009 11:01

Re: CS:S Weapon Restrictions 2 (with source code) (16Dec06)
 
Quote:

Originally Posted by DZKreis (Post 994939)
Hello, I wanted to load this addon on my server, but unfortunately, not the download link -.- :nono:

If they could not upload them?

The plugin doesn't work anymore, hence the big letters that say Obsolete.

DZKreis 11-21-2009 15:38

Re: CS:S Weapon Restrictions 2 (with source code) (16Dec06)
 
Many thanks for the quick response and deschooled I had not read that it is outdated, I find truly sad

I am looking for something I have a dm server and remove a lot of awp unfortunately they can not use just an "ought" mod / addon that when I have the weapon, and unfortunately she is given too often you get a different weapon, such as m4 or ak47 else does it without a weapon in the hand around :(

NoS 11-21-2009 17:33

Re: CS:S Weapon Restrictions 2 (with source code) (16Dec06)
 
Quote:

Originally Posted by DZKreis (Post 995262)
Many thanks for the quick response and deschooled I had not read that it is outdated, I find truly sad

I am looking for something I have a dm server and remove a lot of awp unfortunately they can not use just an "ought" mod / addon that when I have the weapon, and unfortunately she is given too often you get a different weapon, such as m4 or ak47 else does it without a weapon in the hand around :(

If you run SourceMod, you can use Liam's Weapon Restriction plugin, which works just as well.

blue zebra 07-04-2012 00:11

Re: CS:S Weapon Restrictions 2 (with source code) (16Dec06)
 
Download link is dead. This plugin still alive or dead?

Zephyrus 07-04-2012 01:11

Re: CS:S Weapon Restrictions 2 (with source code) (16Dec06)
 
why would anyone use an MMS based restrictions plugin specially when theres a huge OBSOLETE label on the front

pubhero 02-05-2013 19:06

Re: CS:S Weapon Restrictions 2 (with source code) (16Dec06)
 
1. Because the SM not run without metamod.
2. Allways the MM repaired first after the updates. Or if not, see the 1. point.

Zephyrus 02-06-2013 00:30

Re: CS:S Weapon Restrictions 2 (with source code) (16Dec06)
 
Quote:

Originally Posted by pubhero (Post 1888040)
1. Because the SM not run without metamod.
2. Allways the MM repaired first after the updates. Or if not, see the 1. point.

1. sdk updates affects mms plugins
2. mms plugins like this has their own implementation of quite a few stuff that sourcemod has
3. these mms plugins would have to be recompiled / modified too to work with latest engine, that time should be spent on fixing sm instead


All times are GMT -4. The time now is 04:04.

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