Raised This Month: $ Target: $400
 0% 

Restrict Item


Post New Thread Reply   
 
Thread Tools Display Modes
[OSF]Swine
Junior Member
Join Date: Sep 2007
Old 12-10-2007 , 10:16   Re: Restrict Item
Reply With Quote #171

Alright, I had a very interesting time trying to set this up to restrict the awp, g3sg1 and sg550 on my server. At first I went with the cmd "sm_restrict item global awp sg550 g3sg1" but that only restricted the awp with the sg550 and g3sg1 showing up as invalid names. So, here's the cmd that actually did work- "sm_restrict item global awp g3sg1 sg550 blah". It just needed the extra argument for whatever reason but it works.
[OSF]Swine is offline
LocutusH
Senior Member
Join Date: Dec 2007
Location: Hungary
Old 12-19-2007 , 04:55   Re: Restrict Item
Reply With Quote #172

Maybe i found the same bug stated above, or maybe not, but this is what happens here:

in server.cfg:
sm_unrestrict all
sm_restrict limit team t 1 awp g3sg1
sm_restrict limit team ct 1 awp sg550

I start up the server, and i get this in the console:
[RESTRICT] Please type 'sm_restrict help' for vaild commands and syntax.
[RESTRICT] Please type 'sm_unrestrict help' for vaild commands and syntax.
[RESTRICT] This item (awp) was limited to 1 total for the team.
[RESTRICT] Item (g3sg1
) is not vaild.
[RESTRICT] This item (awp) was limited to 1 total for the team.
[RESTRICT] This item (sg550) was limited to 1 total for the team.


The restrict list says, that the awp, and the sg550 are restricted, but the g3sg1 not.

Then i change a map.
Console says after mapchange:
[RESTRICT] Please type 'sm_restrict help' for vaild commands and syntax.
[RESTRICT] Please type 'sm_unrestrict help' for vaild commands and syntax.
[RESTRICT] This item (awp) was limited to 1 total for the team.
[RESTRICT] Item (g3sg1
) is not vaild.
[RESTRICT] This item (awp) was limited to 1 total for the team.
[RESTRICT] This item (sg550) was limited to 1 total for the team.
[RESTRICT] This group was enabled per teams.
[RESTRICT] This item (awp) was limited to 1 total for the team.
[RESTRICT] This item (g3sg1) was limited to 1 total for the team.
[RESTRICT] This item (awp) was limited to 1 total for the team.
[RESTRICT] This item (sg550) was limited to 1 total for the team.


Yes, everything twice, and the second time the g3sg1 is restricted properly.
Now the restrict list says, that awp, sg550 AND the g3sg1 is also restricted to 1/team.


Btw, i dont know why sm_unrestrict all doesnt work. And neither work sm_unrestrict help, it says that i should turn on restrictions, but they are on...
LocutusH is offline
LocutusH
Senior Member
Join Date: Dec 2007
Location: Hungary
Old 12-25-2007 , 06:10   Re: Restrict Item
Reply With Quote #173

I get this errors in the log:

L 12/25/2007 - 12:009: [SM] Plugin encountered error 15: Array index is out of bounds
L 12/25/2007 - 12:009: [SM] Debug mode is not enabled for "restrict.smx"
L 12/25/2007 - 12:009: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 16 on


What can i do?
LocutusH is offline
tcviper
Veteran Member
Join Date: Oct 2005
Location: Netherlands
Old 12-25-2007 , 06:40   Re: Restrict Item
Reply With Quote #174

nothing atm the plugin needs an update and bugs will fix it beginning of 2008 ;)
__________________
tcviper is offline
Send a message via MSN to tcviper
J!b
Junior Member
Join Date: Jul 2007
Old 01-05-2008 , 11:30   Re: Restrict Item
Reply With Quote #175

Hello!

A possibility to translate, please.
And a menu ;)

Thanks ;)
J!b is offline
urus
Senior Member
Join Date: Jan 2007
Old 01-10-2008 , 20:51   Re: Restrict Item
Reply With Quote #176

in data\restrictitem directory all files empty (standart formatted) except file restrictitem_globalteam_limit_keys.txt:

Code:
"Restrictitem_Limits_GlobalTeam"
{
    "T"
    {
      "awp"        "2"
      "sg550"      "1"
    }
    "CT"
    {
      "awp"        "2"
      "g3sg1"      "1"
    }
}
I regular get this error:

Quote:
L 01/10/2008 - 23:49:51: [SM] Plugin encountered error 15: Array index is out of bounds
L 01/10/2008 - 23:49:51: [SM] Displaying call stack trace for plugin "restrict.smx":
L 01/10/2008 - 23:49:51: [SM] [0] Line 603, restrict/restrict.privatefunctions.sp::CheckVaildLimit Item()
L 01/10/2008 - 23:49:51: [SM] [1] Line 80, restrict/restrict.hooks.sp::Restrict_Weapon_CanUse()
L 01/10/2008 - 23:49:51: [SM] Plugin encountered error 15: Array index is out of bounds
L 01/10/2008 - 23:49:51: [SM] Displaying call stack trace for plugin "restrict.smx":
L 01/10/2008 - 23:49:51: [SM] [0] Line 603, restrict/restrict.privatefunctions.sp::CheckVaildLimit Item()
L 01/10/2008 - 23:49:51: [SM] [1] Line 80, restrict/restrict.hooks.sp::Restrict_Weapon_CanUse()
L 01/10/2008 - 23:49:51: [SM] Plugin encountered error 15: Array index is out of bounds
L 01/10/2008 - 23:49:51: [SM] Displaying call stack trace for plugin "restrict.smx":
L 01/10/2008 - 23:49:51: [SM] [0] Line 603, restrict/restrict.privatefunctions.sp::CheckVaildLimit Item()
L 01/10/2008 - 23:49:51: [SM] [1] Line 80, restrict/restrict.hooks.sp::Restrict_Weapon_CanUse()
L 01/10/2008 - 23:49:51: [SM] Plugin encountered error 15: Array index is out of bounds
L 01/10/2008 - 23:49:51: [SM] Displaying call stack trace for plugin "restrict.smx":
L 01/10/2008 - 23:49:51: [SM] [0] Line 603, restrict/restrict.privatefunctions.sp::CheckVaildLimit Item()
L 01/10/2008 - 23:49:51: [SM] [1] Line 80, restrict/restrict.hooks.sp::Restrict_Weapon_CanUse()
L 01/10/2008 - 23:49:51: [SM] Plugin encountered error 15: Array index is out of bounds
L 01/10/2008 - 23:49:51: [SM] Displaying call stack trace for plugin "restrict.smx":
L 01/10/2008 - 23:49:51: [SM] [0] Line 603, restrict/restrict.privatefunctions.sp::CheckVaildLimit Item()
L 01/10/2008 - 23:49:51: [SM] [1] Line 80, restrict/restrict.hooks.sp::Restrict_Weapon_CanUse()
L 01/10/2008 - 23:49:51: [SM] Plugin encountered error 15: Array index is out of bounds
L 01/10/2008 - 23:49:51: [SM] Displaying call stack trace for plugin "restrict.smx":
L 01/10/2008 - 23:49:51: [SM] [0] Line 603, restrict/restrict.privatefunctions.sp::CheckVaildLimit Item()
L 01/10/2008 - 23:49:51: [SM] [1] Line 80, restrict/restrict.hooks.sp::Restrict_Weapon_CanUse()
L 01/10/2008 - 23:49:51: [SM] Plugin encountered error 15: Array index is out of bounds
L 01/10/2008 - 23:49:51: [SM] Displaying call stack trace for plugin "restrict.smx":
L 01/10/2008 - 23:49:51: [SM] [0] Line 603, restrict/restrict.privatefunctions.sp::CheckVaildLimit Item()
L 01/10/2008 - 23:49:51: [SM] [1] Line 80, restrict/restrict.hooks.sp::Restrict_Weapon_CanUse()
L 01/10/2008 - 23:49:51: [SM] Plugin encountered error 15: Array index is out of bounds
L 01/10/2008 - 23:49:51: [SM] Displaying call stack trace for plugin "restrict.smx":
L 01/10/2008 - 23:49:51: [SM] [0] Line 603, restrict/restrict.privatefunctions.sp::CheckVaildLimit Item()
L 01/10/2008 - 23:49:51: [SM] [1] Line 80, restrict/restrict.hooks.sp::Restrict_Weapon_CanUse()
L 01/10/2008 - 23:49:51: [SM] Plugin encountered error 15: Array index is out of bounds
L 01/10/2008 - 23:49:51: [SM] Displaying call stack trace for plugin "restrict.smx":
L 01/10/2008 - 23:49:51: [SM] [0] Line 603, restrict/restrict.privatefunctions.sp::CheckVaildLimit Item()
L 01/10/2008 - 23:49:51: [SM] [1] Line 80, restrict/restrict.hooks.sp::Restrict_Weapon_CanUse()
L 01/10/2008 - 23:49:51: [SM] Plugin encountered error 15: Array index is out of bounds
L 01/10/2008 - 23:49:51: [SM] Displaying call stack trace for plugin "restrict.smx":
L 01/10/2008 - 23:49:51: [SM] [0] Line 603, restrict/restrict.privatefunctions.sp::CheckVaildLimit Item()
L 01/10/2008 - 23:49:51: [SM] [1] Line 80, restrict/restrict.hooks.sp::Restrict_Weapon_CanUse()
L 01/10/2008 - 23:49:51: [SM] Plugin encountered error 15: Array index is out of bounds
L 01/10/2008 - 23:49:51: [SM] Displaying call stack trace for plugin "restrict.smx":
L 01/10/2008 - 23:49:51: [SM] [0] Line 603, restrict/restrict.privatefunctions.sp::CheckVaildLimit Item()
L 01/10/2008 - 23:49:51: [SM] [1] Line 80, restrict/restrict.hooks.sp::Restrict_Weapon_CanUse()
urus is offline
sessus
Senior Member
Join Date: May 2006
Old 02-21-2008 , 08:26   Re: Restrict Item
Reply With Quote #177

anyone else havin troubles loading the plugin with the latest SM and MM version?
sessus is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 02-27-2008 , 15:13   Re: Restrict Item
Reply With Quote #178

Please, add a translation file.
exvel is offline
Send a message via ICQ to exvel
Sporg
Junior Member
Join Date: Feb 2008
Old 02-29-2008 , 11:30   Re: Restrict Item
Reply With Quote #179

I cannot find the ReadMe file :S
Could you point me as to where it is?

Thanks

Sporg
Sporg is offline
Sporg
Junior Member
Join Date: Feb 2008
Old 02-29-2008 , 16:17   Re: Restrict Item
Reply With Quote #180

Im having a problem, everytime I restrict weapons they unrestrict once the server restarts.

I have to keep typing into console:

sm_restrict item global awp
sm_restrict item global sg550
sm_restrict item global g3sg1

Is there something wrong in the commands?

Any help/suggestions are highly appreciated

Thanks

Sporg
Sporg 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 18:14.


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