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

Restrict Item


Post New Thread Reply   
 
Thread Tools Display Modes
^BuGs^
Senior Member
Join Date: May 2007
Old 08-19-2007 , 12:32   Re: Restrict Item
Reply With Quote #101

Quote:
Originally Posted by Spacey View Post
Doh... then I've got to stick to Glittermod... there the restrictor does it - exactely the way I want it.

Background: I don't want to forbid the AWP completely - it's part of the game. I only dislike the way it run's when the winning team got lot's of cash and then everybody buy the AWP... :/
The KDR checker uses Restrict Item so request a feature for based on winning team restrictions for the KDR script. The beauty of restrict item if a "limit" is saved (i.e. 2 awp per team) it doesn't get deleted even though it is restricted. The restriction check happens before limit check, so don't be so discouraged . So once the item is unrestricted, the limit takes effect once again.
__________________
Sourcemod Plugin Author and Plugin Approver
"The correct way is MAXPLAYERS + 1"
I will not take bugs/new idea reports over the forums. Please use the issue list.

Last edited by ^BuGs^; 08-19-2007 at 12:34.
^BuGs^ is offline
Spacey
Member
Join Date: Aug 2007
Location: Out'a'Space :D
Old 08-19-2007 , 12:40   Re: Restrict Item
Reply With Quote #102

ah.. O.K... guess I'll have to take a look at the KDR script and see how to fuzzle it out
__________________
Have fun - Spacey
Visit our Server: [=TLC=] Kuschelhöhle! TF2!
HLStatsX • Old School Fun! • Redirected DLs • Sexy Female Announcer ;)
Spacey is offline
Onix.fr
Member
Join Date: Nov 2006
Location: Mer, (FRANCE) 41
Old 08-24-2007 , 02:39   Re: Restrict Item
Reply With Quote #103

Quote:
Originally Posted by Onix.fr View Post
Hello,

I make a menu with supermenu but restriction don't work :

Console said that :
[RESTRICT] Item ("m3") is not vaild.

sm_restrict put the "" in command.....

Code:
"5"
    {
        "title"        "Gestion des Armes"
        "admin"        "custom4"
        "1"
        {
            "title"        "Restreindre une arme : 0 par Team"
            "cmd"        "sm_restrict limit team 0 #1"
            "1"
            {
                "type"        "list"
                "title"        "Choisissez une arme :"
                "1"        "glock"
                "1."        "Glock"
                "2"        "usp"
                "2."        "Usp"
                "3"        "p228"
                "3."        "P228"
                "4"        "deagle"
                "4."        "Deagle"
                "5"        "elite"
                "5."        "Dual Elite"
                "6"        "fiveseven"
                "6."        "Fiveseven"
                "7"        "m3"
                "7."        "Shotgun"
                "8"        "xm1014"
                "8."        "Auto Shotgun"
                "9"        "mac10"
                "9."        "Piou Piou Terro"
                "10"    "tmp"
                "10."        "Piou Piou CT"
                "11"    "mp5navy"
                "11."        "MP5"
                "12"    "ump45"
                "12."        "UMP45"
                "13"    "p90"
                "13."        "P90"
                "14"    "galil"
                "14."        "Galil"
                "15"    "famas"
                "15."        "Famas"
                "16"    "ak47"
                "16."        "AK47"
                "17"    "m4a1"
                "17."        "M4"
                "18"    "sg552"
                "18."        "SG552"
                "19"    "aug"
                "19."        "Aug"
                "20"    "m249"
                "20."        "Batteuse"
                "21"    "scout"
                "21."        "Scout"
                "22"    "awp"
                "22."        "Awp"
                "23"    "sg550"
                "23."        "Auto Snipe CT"
                "24"    "g3sg1"
                "24."        "Auto Snipe Terro"
                "25"    "flashbang"
                "25."        "Flash"
                "26"    "hegrenade"
                "26."        "Grenade"
                "27"    "smokegrenade"
                "27."        "Smoke"
            }
        }
}
Bugs have make a release for that ?
Onix.fr is offline
^BuGs^
Senior Member
Join Date: May 2007
Old 08-24-2007 , 11:12   Re: Restrict Item
Reply With Quote #104

No. I have not created the ability to trim quotes either, but I'll add to my list.
__________________
Sourcemod Plugin Author and Plugin Approver
"The correct way is MAXPLAYERS + 1"
I will not take bugs/new idea reports over the forums. Please use the issue list.
^BuGs^ is offline
GriMz
Senior Member
Join Date: Jul 2007
Old 08-26-2007 , 03:18   Re: Restrict Item
Reply With Quote #105

is this plug in capable of seeing that players only buy 1 of each grenade type? so spamming isnt possible? if it is what lines would i use in my configs to do such?
__________________
GriMz is offline
Jernau
Junior Member
Join Date: Jul 2007
Old 08-27-2007 , 06:09   Re: Restrict Item
Reply With Quote #106

Little problem, hope you can help

Our server is on win32, runs Mani, eventscripts and sourcemod. We run restrict to balance AWP usage - there's an eventscript i've written that checks team scores and restricts AWP when the score difference is over 4, and that es uses sm_restrict to do it's job

The restriction works fine until after an unknown number of maps, and we get an error in the logs and everything stops working (including our little mapvote plugin)

Code:
L 08/26/2007 - 12:29:53: SourceMod error session started
L 08/26/2007 - 12:29:53: Info (map "de_dust") (file "errors_20070826.log")
L 08/26/2007 - 12:29:54: [SM] Native "FileToKeyValues" reported: Invalid key value handle 0 (error 4)
L 08/26/2007 - 12:29:54: [SM] Displaying call stack trace for plugin "restrict.smx":
L 08/26/2007 - 12:29:54: [SM]   [0]  Line 80, restrict/restrict.keyvars.sp::r_LoadTeamGlobalRestrictions()
L 08/26/2007 - 12:29:54: [SM]   [1]  Line 79, restrict/restrict.privatefunctions.sp::LoadRestrictSettings()
L 08/26/2007 - 12:29:54: [SM]   [2]  Line 34, restrict/restrict.privatefunctions.sp::LoadRestrictSettingsAll()
L 08/26/2007 - 12:29:54: [SM]   [3]  Line 42, restrict/restrict.config.sp::OnConfigsExecuted()
L 08/26/2007 - 12:41:24: Error log file session closed.
L 08/26/2007 - 12:41:25: SourceMod error session started
L 08/26/2007 - 12:41:25: Info (map "de_strata") (file "errors_20070826.log")
L 08/26/2007 - 12:41:26: [SM] Native "SMC_SetParseEnd" reported: Invalid SMC Parse Handle 0 (error 4)
L 08/26/2007 - 12:41:26: [SM] Displaying call stack trace for plugin "restrict.smx":
L 08/26/2007 - 12:41:26: [SM]   [0]  Line 53, restrict/restrict.config.sp::ReadConfig()
L 08/26/2007 - 12:41:26: [SM]   [1]  Line 32, restrict/restrict.config.sp::OnConfigsExecuted()
L 08/26/2007 - 12:52:56: Error log file session closed.
L 08/26/2007 - 12:52:58: SourceMod error session started
L 08/26/2007 - 12:52:58: Info (map "zapdm_porcarius_d") (file "errors_20070826.log")
L 08/26/2007 - 12:52:58: [SM] Native "SMC_SetParseEnd" reported: Invalid SMC Parse Handle 0 (error 4)
L 08/26/2007 - 12:52:58: [SM] Displaying call stack trace for plugin "restrict.smx":
L 08/26/2007 - 12:52:58: [SM]   [0]  Line 53, restrict/restrict.config.sp::ReadConfig()
L 08/26/2007 - 12:52:58: [SM]   [1]  Line 32, restrict/restrict.config.sp::OnConfigsExecuted()
L 08/26/2007 - 13:04:28: Error log file session closed.
I'm guessing this is where the plugin loads the files within \data\restrictitem. These files haven't been modified at all, nor has the config file for restrict.

We're running SM version 1.0.0.1373 with:

Extensions...
[01] Tempents Extension (1.0.0.5): Adds ITempEnts to SourceMod
[02] Hacks Extension (1.3.0.0): Hacks extension to help developers
[03] SQLite (1.0.0.1336): SQLite Driver

Plugins...
01 "Hurt Sounds and Shoot-The-Nade" (1.0) by [P=I*E] Jernau
02 "PIE Vote" (2.02.02) by [P=I*E] Jernau
03 "Restrict Item" (1.1.4.0) by Shane A. ^BuGs^ Froebel

Hope you can help
Jernau is offline
^BuGs^
Senior Member
Join Date: May 2007
Old 08-27-2007 , 10:14   Re: Restrict Item
Reply With Quote #107

With my main desktop down, it going to be hard to trace down the error. But post the report on the issue list so I can take a look at it as soon as my desktop is back up and running.
__________________
Sourcemod Plugin Author and Plugin Approver
"The correct way is MAXPLAYERS + 1"
I will not take bugs/new idea reports over the forums. Please use the issue list.
^BuGs^ is offline
tcviper
Veteran Member
Join Date: Oct 2005
Location: Netherlands
Old 08-28-2007 , 10:45   Re: Restrict Item
Reply With Quote #108

All commands in console give unknown command, this is not working.
__________________
tcviper is offline
Send a message via MSN to tcviper
^BuGs^
Senior Member
Join Date: May 2007
Old 08-28-2007 , 12:01   Re: Restrict Item
Reply With Quote #109

Arugh. Desktop down. Can't fix or test!@!@!@ Also note that Hacks is failing on most Win32 systems. I have not experienced any reports from Linux users.
__________________
Sourcemod Plugin Author and Plugin Approver
"The correct way is MAXPLAYERS + 1"
I will not take bugs/new idea reports over the forums. Please use the issue list.
^BuGs^ is offline
BAILOPAN
Join Date: Jan 2004
Old 09-04-2007 , 14:12   Re: Restrict Item
Reply With Quote #110

There are a few bugs causing you to leak Handles.

restrict.keyvars.sp:

Many functions have this without closing the Handle they open:
Code:
    if (!KvGotoFirstSubKey(global))     {         //  RestrictConsole_Debug("Error reading KeyVars. (Global)");         return false;     }

Additionally, r_LoadGlobalLimitRestrictions, r_LoadTeamLimitRestrictions, r_LoadMapLimitRestrictions, do not call CloseHandle() before returning at the end.

These bugs are causing the Handle table to become full (it currently has a hardcoded size). To verify this, run the following command:

Code:
sm_dump_handles handles.txt
Then look in your srcds folder for handles.txt. Once the table becomes totally full, SourceMod essentially breaks down (for now), so it is imperative you don't leak Handles.
__________________
egg
BAILOPAN 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 07:18.


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