AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Team No Buy v0.2 (former "No Buy") (https://forums.alliedmods.net/showthread.php?t=26592)

VEN 04-05-2006 08:05

Team No Buy v0.2 (former "No Buy")
 
1 Attachment(s)
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


Xanimos 04-05-2006 08:50

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.

VEN 04-05-2006 10:54

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.

bmann_420 04-05-2006 19:47

So did this eliminate the old NoBuy? And their is no way of "nobuying" a particular person? Unless the other one is still out.

VEN 04-06-2006 04:26

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.

bmann_420 04-06-2006 17:00

I see. I was mainly looking for it capable of just typing /nobuy blah 1 and he cant purchase anything. It would be nice.

jopmako 11-02-2006 17:57

Re: Team No Buy v0.2 (former "No Buy")
 
thx,it has usefully info. for me.

tested: change the "buying" vaule can be done at anytime only respawn player was need.

MPNumB 02-21-2008 19:59

Re: Team No Buy v0.2 (former "No Buy")
 
register cvar in plugin_precache to, else it will always return 0 when server starts...

Kidev 06-27-2011 14:27

Re: Team No Buy v0.2 (former "No Buy")
 
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?

ConnorMcLeod 06-27-2011 15:00

Re: Team No Buy v0.2 (former "No Buy")
 
Seems that you have a plugin that prevent that entity from spawning.


All times are GMT -4. The time now is 14:56.

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