Raised This Month: $32 Target: $400
 8% 

[CS:S] Weapon Limiter (or Restricter) by SteamID [v1.6.9b]


Post New Thread Reply   
 
Thread Tools Display Modes
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 07-13-2013 , 02:34   Re: [CS:S] Weapon Limiter (or Restricter) by SteamID [v1.6.7]
Reply With Quote #41

Just to let you know that you should at least make sure ZKWLBSID_Load is called.

It is possible for a server to not have defined in its config zk_wlbsid_enabled; and therefore ZKWLBSID_ConVarChange --> ZKWLBSID_Load won't be called and plugin will do nothing (i.e. player_hurt not hooked...).

And I don't get why you would kill players rather than checking on buy and pick up. Seems to be one of those plugins to troll/make rage the players -_-.

EDIT : https://forums.alliedmods.net/showth...84#post1812284 ...

When using ShowActivity2 from a Command activated by an admin, use the admin(client) id... ShowActivity2 shows different things depending on the server configuration... you need to consider the admin if you use that function.
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work

Last edited by RedSword; 07-13-2013 at 02:42.
RedSword is offline
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Old 07-13-2013 , 22:21   Re: [CS:S] Weapon Limiter (or Restricter) by SteamID [v1.6.7]
Reply With Quote #42

Thank you for your help, guys, but please note that it has been made from scratch this way.
I just took the lead ater this scratch script was born, and always thought I'd change the slay thing afterwards.

@RedSword: don't worry the plugin is loaded after a 60 sec timer as mentionned in 1st post.
The 'ShowActivity2' was chosen by ZAP and maybe he first wanted only admins to see those logs, but at least I already changed one 'ShowActivity2' to a 'PrintToChatAll' since it fixed some repeated message issue.

I guess I will have to edit the plugin myself so that it simply restricts players, because ZAP doesn't have the time now.
I already asked the help of TnTSCS for that, and as soon as I have more time, I'll integrate the code he shared with me. Thanks to him btw, and sry if I currently don't have the time to look at it more seriously.

++

St00ne
__________________

*** *** ***
-My plugins-

Last edited by St00ne; 08-11-2019 at 02:01.
St00ne is offline
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Old 10-09-2013 , 01:39   Re: [CS:S] Weapon Limiter (or Restricter) by SteamID [v1.6.9]
Reply With Quote #43

Update done:

Added cvar: zk_wlbsid_timer_value, for an easier plugin management via map configs.

Changed description:

Quote:
By default, the plugin is enabled. You don't need to touch zk_wlbsid_enabled since it's changed by the plugin automatically after a given timer.
You have two ways to disable it:
- set zk_wlbsid_timer_value 0 in your sourcemod.cfg or in your map configs.
- if the plugin is already loaded and you want to disable it on the fly, type zk_wlbsid_stop in console.
I also added the admin commands and the cvars in the description.
__________________

*** *** ***
-My plugins-

Last edited by St00ne; 10-09-2013 at 01:58.
St00ne is offline
pubhero
Veteran Member
Join Date: Aug 2012
Location: Central Europe
Old 05-14-2015 , 16:17   Re: [CS:S] Weapon Limiter (or Restricter) by SteamID [v1.6.9b]
Reply With Quote #44

Hi.
Can i removing these lines in the chat window somehow?

[ZK] Console: Weapon Limitation By SteamID has been started
[ZK] Console: Weapon Limitation By SteamID loaded, (1 players)
[ZK] Console: Made by .:*********S C 90 ZAP Killer.be:. v1.6.9b
pubhero is offline
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Old 05-14-2015 , 17:29   Re: [CS:S] Weapon Limiter (or Restricter) by SteamID [v1.6.9b]
Reply With Quote #45

Hi,

Yep, just try to set zk_wlbsid_load_details 0 in sourcemod.cfg.

++
St00ne is offline
pubhero
Veteran Member
Join Date: Aug 2012
Location: Central Europe
Old 12-18-2015 , 01:14   Re: [CS:S] Weapon Limiter (or Restricter) by SteamID [v1.6.9b]
Reply With Quote #46

Hi.
I got this error message, when i try loading this plugin on the fly:
Code:
L 12/18/2015 - 06:58:57: SourceMod error session started
L 12/18/2015 - 06:58:57: Info (map "de_dust2") (file "errors_20151218.log")
L 12/18/2015 - 06:58:57: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 12/18/2015 - 06:58:57: [SM] Displaying call stack trace for plugin "zk_wlbsid.smx":
L 12/18/2015 - 06:58:57: [SM]   [0]  Line 321, /home/forums/content/files/1/0/7/0/5/2/139296.attach::ZKWLBSIDCommand_ListPlayers()
L 12/18/2015 - 06:59:35: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 12/18/2015 - 06:59:35: [SM] Displaying call stack trace for plugin "zk_wlbsid.smx":
L 12/18/2015 - 06:59:35: [SM]   [0]  Line 321, /home/forums/content/files/1/0/7/0/5/2/139296.attach::ZKWLBSIDCommand_ListPlayers()
Game: CS:S
Code:
07:13:02  Metamod:Source Version Information
             Metamod:Source version 1.11.0-dev+998
             Plugin interface version: 15:14
             SourceHook version: 5:5
             Loaded As: Valve Server Plugin
             Compiled on: Sep 24 2015 20:12:12
             Built from: https://github.com/alliedmodders/metamod-source/commit/ebf29da
             Build ID: 998:ebf29da
             http://www.metamodsource.net/
Code:
07:13:44  SourceMod Version Information:
             SourceMod Version: 1.7.3-dev+5275
             SourcePawn Engine: SourcePawn 1.7, jit-x86 (build 1.7.3-dev+5275)
             SourcePawn API: v1 = 4, v2 = 6
             Compiled on: Nov 11 2015 10:16:29
             Built from: https://github.com/alliedmodders/sourcemod/commit/08f359e
             Build ID: 5275:08f359e
             http://www.sourcemod.net/
pubhero is offline
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Old 12-20-2015 , 07:04   Re: [CS:S] Weapon Limiter (or Restricter) by SteamID [v1.6.9b]
Reply With Quote #47

Hi,

Ok well I didn't see that surely because I don't launch it on the fly, though I stop it on the fly sometimes.

I'll check if I can fix this issue but not before a few weeks...

Thx for the report.

++
__________________

*** *** ***
-My plugins-
St00ne is offline
pubhero
Veteran Member
Join Date: Aug 2012
Location: Central Europe
Old 04-02-2016 , 14:07   Re: [CS:S] Weapon Limiter (or Restricter) by SteamID [v1.6.9b]
Reply With Quote #48

Any news with these errors?
pubhero is offline
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Old 04-17-2016 , 09:57   Re: [CS:S] Weapon Limiter (or Restricter) by SteamID [v1.6.9b]
Reply With Quote #49

Hi,

Nope, sry, I didn't check that.

You can safely start and stop it by entering zk_wlbsid_load and zk_wlbsid_stop, instead of using sm plugins load/unload commands.

Regards,

St00ne
__________________

*** *** ***
-My plugins-
St00ne 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 09:16.


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