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

Solved Weapon Restrictions dont work


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AllMassive
Senior Member
Join Date: Sep 2004
Location: /dev/urandom
Old 01-27-2018 , 17:32   Weapon Restrictions dont work
Reply With Quote #1

I'm using latest 5151-amxx with rehlds and regame_dll.
it happens quite often that players are able to buy restricted weapons.
in my case i've disable the shields but under 'certain conditions' the cts are able to buy them.
to me it looks like this happens randomly.

weaprest.ini:
Code:
; Generated by Restrict Weapons Plugin. Do not modify!
; value name

; Sniper Rifles
; -
;g3sg1            ; H&K G3/SG-1 Sniper Rifle

; Equipment
; -
;shield           ; Tactical Shield
; value name
g3sg1            ; H&K G3/SG-1 Sniper Rifle
sg550            ; Sig SG-550 Sniper
shield           ; Tactical Shield

Last edited by AllMassive; 01-27-2020 at 20:56. Reason: more info
AllMassive is offline
AllMassive
Senior Member
Join Date: Sep 2004
Location: /dev/urandom
Old 02-03-2018 , 18:41   Re: Weapon Restrictions dont work
Reply With Quote #2

Looks like a amxx-bug with rehlds/regamedll/reapi.
This Plugin works fine: https://dev-cs.ru/threads/181/
Attached Files
File Type: sma Get Plugin or Get Source (items_restrict.sma - 777 views - 2.0 KB)

Last edited by AllMassive; 02-03-2018 at 18:45.
AllMassive is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 02-04-2018 , 06:16   Re: Weapon Restrictions dont work
Reply With Quote #3

In case something doesn't work as intended, please always try it out first on Valve's HLDS.
__________________
klippy is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-04-2018 , 08:16   Re: Weapon Restrictions dont work
Reply With Quote #4

Restrict Weapons plugin is only restricting on buy (for now). Your players get likely the shield in another way. The attached plugin above restricts in all context.
__________________
Arkshine is offline
AllMassive
Senior Member
Join Date: Sep 2004
Location: /dev/urandom
Old 02-04-2018 , 19:06   Re: Weapon Restrictions dont work
Reply With Quote #5

They dont get it from somewhere - they are able to buy them regularly at spawn.

Last edited by AllMassive; 02-04-2018 at 19:06.
AllMassive is offline
WhiteFang1319
Senior Member
Join Date: Jan 2017
Old 02-04-2018 , 22:08   Re: Weapon Restrictions dont work
Reply With Quote #6

I've been using Amx Dev build for months. Never encountered this. Now I have the 5151 version. it's still working properly
WhiteFang1319 is offline
Reply


Thread Tools
Display Modes

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:23.


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