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

Team No Buy v0.2 (former "No Buy")


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Xanimos (85)
VEN
Veteran Member
Join Date: Jan 2005
Old 04-05-2006 , 08:05   Team No Buy v0.2 (former "No Buy")
Reply With Quote #1

Plugin allows to disable buy feature for T/CT/T&CT team.


Engine module required.


CVAR amx_team_nobuy (default: 3)
  • 0 - disable the plugin
    1 - disable buy for the Terrorist team
    2 - disable buy for the CT team
    3 - disable buy for both teams
    Note: to apply CVAR change map reload is required
Idea of info_map_parameters by Avalanche.


Versions
Code:
0.2   - added CVAR to enable/disable the plugin
        and disable buy only for a certain team
        therefore plugin renamed to "Team No Buy"
      - buy/buyequip menu disabled
      - buy icon displaying disabled
0.1   - initial release
Attached Files
File Type: sma Get Plugin or Get Source (teamnobuy.sma - 5280 views - 3.5 KB)
VEN is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 04-05-2006 , 08:50  
Reply With Quote #2

I like it. My only thought would be to use the pcvar to get the cvar value but it isn't needed since you only check once a map.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
VEN
Veteran Member
Join Date: Jan 2005
Old 04-05-2006 , 10:54  
Reply With Quote #3

Yes - that was exact my point. Also my thought was that (get_cvar_pointer AND get_pcvar_num) will use nearly the same amount of resources as get_cvar_num (and maybe even a bit more). I said "get_cvar_pointer AND get_pcvar_num" because at the time when cvar value retrieves cvar isn't registered yet so the only way to get cvar's pointer is use get_cvar_pointer. Probably it's possible to register a cvar in plugin_precache (so i do not have to use get_cvar_pointer) but i don't think that registering cvar before plugin_init is a good idea.
VEN is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 04-05-2006 , 19:47  
Reply With Quote #4

So did this eliminate the old NoBuy? And their is no way of "nobuying" a particular person? Unless the other one is still out.
__________________
bmann_420 is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 04-06-2006 , 04:26  
Reply With Quote #5

Quote:
So did this eliminate the old NoBuy?
Do you mean "Admin No Buy"? Yes this plugin supercedes buy for the specified team fully.

Quote:
And their is no way of "nobuying" a particular person?
My opinion there is a way but it's still not implemented in any plugin fully.
For example "Admin No Buy" which written for that has numerous exploits. Even the latest AMXX Weapon Restriction menu has exploits (EDIT: for now AMXX Weapon Restriction issues is fixed).
I think the steeps in that direction should be:
1. Fixing Weapon Restriction exploits
2. Creating a 3rd party plugin based on the original Weapon Restriction.
VEN is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 04-06-2006 , 17:00  
Reply With Quote #6

I see. I was mainly looking for it capable of just typing /nobuy blah 1 and he cant purchase anything. It would be nice.
__________________
bmann_420 is offline
jopmako
Senior Member
Join Date: Jul 2006
Location: QQ:331537639
Old 11-02-2006 , 17:57   Re: Team No Buy v0.2 (former "No Buy")
Reply With Quote #7

thx,it has usefully info. for me.

tested: change the "buying" vaule can be done at anytime only respawn player was need.
__________________
QQ31537639
jopmako is offline
Send a message via MSN to jopmako
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 02-21-2008 , 19:59   Re: Team No Buy v0.2 (former "No Buy")
Reply With Quote #8

register cvar in plugin_precache to, else it will always return 0 when server starts...
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
Kidev
Veteran Member
Join Date: Jun 2010
Location: France
Old 06-27-2011 , 14:27   Re: Team No Buy v0.2 (former "No Buy")
Reply With Quote #9

Hi, when I use your plugin, I get some errors:
Code:
L 06/27/2011 - 15:54:59: Start of error session.
L 06/27/2011 - 15:54:59: Info (map "de_westwood") (file "addons/amxmodx/logs/error_20110627.log")
L 06/27/2011 - 15:54:59: [ENGINE] Invalid entity 134
L 06/27/2011 - 15:54:59: [AMXX] Run time error 10 (plugin "teamnobuy.amxx") (native "DispatchKeyValue") - debug not enabled!
L 06/27/2011 - 15:54:59: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
Can fix that?
__________________
Kidev is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-27-2011 , 15:00   Re: Team No Buy v0.2 (former "No Buy")
Reply With Quote #10

Seems that you have a plugin that prevent that entity from spawning.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Old 06-28-2011, 08:00
Trethy
This message has been deleted by Exolent[jNr]. Reason: Spam
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 16:30.


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