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

[CS:GO] Per-STEAMID weapon restrict


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Obyboby
Veteran Member
Join Date: Sep 2013
Old 09-22-2017 , 03:41   [CS:GO] Per-STEAMID weapon restrict
Reply With Quote #1

I would like to get a simple plugin that allows me to restrict weapons/weapon types for a specific user.

Ideal usage:

!prestrict <playername> <weapon/weapontype/etc> <number if needed (idk, for grenades or something)>

prestrict stands for player restrict (kinda obvious lel). It would store the player's STEAMID in a file and make sure the restriction is applied every time he connects, or perhaps the plugin couold prompt the moderator about whether to apply the restriction for the current round, the next round, the whole map, or permanent.
If permanent, the admin could revert the restriction via a !punrestrict <playername> or something.
Hopefully someone will like the idea and help me out.
Thanks guys!!!!!!
__________________
Obyboby is offline
sim242
AlliedModders Donor
Join Date: Dec 2012
Location: England
Old 09-22-2017 , 08:03   Re: [CS:GO] Per-STEAMID weapon restrict
Reply With Quote #2

Don't think it'd be too difficult but if you're wanting to do permanent restrictions for a variety of weapons and players then storing it in a file wouldn't be the method id suggest.

A database would be better suited for this as you're probably going to be storing a lot of entries. I could probably have a bash at this but I can't guarantee a finish date as I'm pretty busy this weekend and work full time during the week. Send me a PM if you don't mind how long it takes and we can discuss the details.
__________________
Steam - Sim
Request a private plugin
Not accepting requests at this time
sim242 is offline
Send a message via Skype™ to sim242
Papero
Veteran Member
Join Date: Aug 2016
Location: Italy
Old 09-22-2017 , 08:05   Re: [CS:GO] Per-STEAMID weapon restrict
Reply With Quote #3

Something of permament and then removeable by a cmd isnt hard to-do (using clientprefs or saving infos in a file)
With a time could be harder to do.
__________________
My Plugins
SPCode


Steam: hexer504
Telegram: Hexah
Discord: Hexah#6903

If you like my work you can donate here!
Papero is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 09-22-2017 , 08:12   Re: [CS:GO] Per-STEAMID weapon restrict
Reply With Quote #4

So how about blocking until map change OR permanent? No time restriction?
Also, this is going to be for a bunch of known trolls I have on my server, I don't think I will have dozens of users to block :p
Thanks for your replies!
__________________
Obyboby 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 08:13.


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