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-13-2007 , 07:28   Re: Restrict Item
Reply With Quote #91

Quote:
Originally Posted by germannavy View Post
server.cfg:
//restrict
sm_restrict on
sm_restrict limit team ct 1 awp
sm_restrict limit team t 1 awp
By default restrict item is enabled so you don't need to turn it on. To shorten your code you can do:
Quote:
sm_restrict limit team 1 awp
which does both teams. Make sure your version is up to date also.
__________________
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
germannavy
Member
Join Date: Dec 2004
Old 08-13-2007 , 07:54   Re: Restrict Item
Reply With Quote #92

now it works, great work
germannavy is offline
germannavy
Member
Join Date: Dec 2004
Old 08-13-2007 , 14:53   Re: Restrict Item
Reply With Quote #93

i think i´ve found the next bug

content config file: sm_plugin_config.cfg

//weapon restriction
sm_restrict limit team 1 awp

Problem from logs:
exec sm_plugin_config.cfg
<04>[RESTRICT]<01> Item (awp<0D>) is not vaild.
germannavy is offline
^BuGs^
Senior Member
Join Date: May 2007
Old 08-13-2007 , 16:21   Re: Restrict Item
Reply With Quote #94

You have an extra space after "awp" make sure you remove it.
__________________
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
germannavy
Member
Join Date: Dec 2004
Old 08-14-2007 , 02:53   Re: Restrict Item
Reply With Quote #95

there is no extra space after awp

you can download the file here :

Last edited by germannavy; 05-10-2010 at 07:04.
germannavy is offline
^BuGs^
Senior Member
Join Date: May 2007
Old 08-14-2007 , 08:57   Re: Restrict Item
Reply With Quote #96

In my next version I will add a "trim" command so it removes extra things. Please post a bug report in the task 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
germannavy
Member
Join Date: Dec 2004
Old 08-15-2007 , 09:20   Re: Restrict Item
Reply With Quote #97

i´ve found a workaround for my problem:

//weapon restriction
sm_restrict limit team 1 awp dummy

or

//weapon restriction
sm_restrict item global awp g3sg1 sg550 dummy
germannavy is offline
Spacey
Member
Join Date: Aug 2007
Location: Out'a'Space :D
Old 08-19-2007 , 07:14   Re: Restrict Item
Reply With Quote #98

Hiyas!
ATM I'm using the Glittermod Restrictor but since I'm planning to switch completely to SM I'm investigating your plugin

I've read your lines here and the readme. Here are my questions: From what I unserstood I can restrict the number of weapons - for example I only allow 2 AWP & 2 AutoSnipe per Team.

1) Once set up this will stay forever - even after server restart or is it map based only?

I want to restrict some weapons for the winning team only. ATM I defined the winning team as 3 round points (and more) in front of the other. Only then it should restrict some weapons for the WT. Not possible atm, eh?

This one is a follow up: When you own an AWP and become the WT then the weapon is restricted. And at the round-beginning it should be automaticly sold and the money should be transfered to your account.

So far Glittermod does this nicely.. but like said I'd like to have only one "mod" in the future

Nice ideas? ;)
__________________
Have fun - Spacey
Visit our Server: [=TLC=] Kuschelhöhle! TF2!
HLStatsX • Old School Fun! • Redirected DLs • Sexy Female Announcer ;)
Spacey is offline
^BuGs^
Senior Member
Join Date: May 2007
Old 08-19-2007 , 12:22   Re: Restrict Item
Reply With Quote #99

Quote:
Originally Posted by Spacey View Post
I've read your lines here and the readme. Here are my questions: From what I unserstood I can restrict the number of weapons - for example I only allow 2 AWP & 2 AutoSnipe per Team.
Yes. It can be saved using the data system and it be their forever, until your disabled the restriction and then saved again to remove it. Restrictions are reset and re-applied every round for each of the four categories (global, team, map, player). So you could do this for both teams.

sm_restrict limit team 2 awp g3sg1 - First Command
sm_restrict limit team save - Saves it to the system.

As far as the return money, of items restricted mid round it shouldn't happen. As soon as an item is restricted it gets dropped from the players inventory.

The restrict based on team wins can not be done. Not many people use it, but my KDR checker (http://forums.alliedmods.net/showthread.php?p=499037) would be more suitable for that.
__________________
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:24.
^BuGs^ is offline
Spacey
Member
Join Date: Aug 2007
Location: Out'a'Space :D
Old 08-19-2007 , 12:30   Re: Restrict Item
Reply With Quote #100

Quote:
Originally Posted by ^BuGs^ View Post
The restrict based on team wins can not be done. Not many people use it, but my KDR checker (http://forums.alliedmods.net/showthread.php?p=499037) would be more suitable for that.
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... :/
__________________
Have fun - Spacey
Visit our Server: [=TLC=] Kuschelhöhle! TF2!
HLStatsX • Old School Fun! • Redirected DLs • Sexy Female Announcer ;)
Spacey 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 19:05.


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