This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Auto/Rebuy ?


Post New Thread Reply   
 
Thread Tools Display Modes
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 06-01-2007 , 03:01   Re: Auto/Rebuy ?
Reply With Quote #11

Quote:
Originally Posted by bubbacs View Post
And where might I find the AMX2006 for AMXX 1.8 ?
Well - connorr wanted to say to look into code of restmenu.sma from AMX 2006, but there is no version of that plugin directly addapted to be working under AMX X. You may try to use amxmod_compat, but I don't know what are the differences between AMX and AMX X versions of this plugin - can anyone point them out?

Quote:
Originally Posted by bubbacs View Post
Didn't know that AMXX 1.8 was out yet!
Didn't see it listed on the front page!?
Quote:
Originally Posted by Brad View Post
The next version of AMXX (1. will disable rebuy for restricted weapons as well.
"The next" - means AMXX 1.8 is not released yet. It exists in AMX X' SVN, but under construction yet.

Quote:
Originally Posted by bubbacs View Post
And I don't want it ENABLED, I want to DISABLE the rebuy only!
Now I got confused - that "only" means You want to have autobuy enabled, but rebuy disabled (as the "only" one)?
__________________
The Fullpack of podbot mm V3B22 - 24 apr 2012!!! is available here.
The All-In-One 3.2a package - 02 jun 2013 (AMX X 1.8.2 [with ATAC 3.0.1b , CSDM2.1.3c beta, CM OE 0.6.5, podbot mm V3B22c and mm 1.20) is available here.
The newest Beta V3B23a (rel. 28 august 2018!!!) is available here.
KWo is offline
bubbacs
Member
Join Date: Sep 2005
Old 06-01-2007 , 05:05   Re: Auto/Rebuy ?
Reply With Quote #12

Sorry to now have confused the KWo.
I want to focus on the "REBUY" only!
I don't worry about the autobuy as it is already restricted with the restmenu.amxx plugin. At least that is what I am told and it seems to be true! :-)
When stating that I only want to disable the "REBUY" , I am making the point to others that that ONE area of the game needs to be turned off!

I use that sniperlimit.amxx that you made KWo.
But it only checks the "REBUY", it doesn't;t block it's use! :-(
So what I have been whining about in here is.......why can't there be a separate plugin to BLOCK the "REBUY" menu from being used at all?
At least until we get a full version release of 1.8 and so's NOT to rush the DEV team about it!?

That's all....one tiny plugin.
One small question and I wanted to make sure we are talking about the "REBUY" menu NOT the autobuy one! :-)

-Bubba
bubbacs is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 06-01-2007 , 09:27   Re: Auto/Rebuy ?
Reply With Quote #13

@connorr:

Quote:
Originally Posted by connorr View Post
Why don't have a look at amx2006 restrict code for amxx1.8 ? (autobuy and rebuy were enabled in it...)
The restricted rebuy functionality has already been added to 1.8. I'd imagine, without having looked at AMX2006's implementation, that 1.8's implementation is much cleaner.

@bubbacs:

If you want to TOTALLY block the rebuy command, that can easily be done.

Code:
public plugin_init() {     register_plugin("Prohibit Rebuy", "1.0", "sawce");     register_clcmd("cl_rebuy", "cmd_rebuy"); } public cmd_rebuy(id) {     return PLUGIN_HANDLED; }
__________________
Brad is offline
bubbacs
Member
Join Date: Sep 2005
Old 06-01-2007 , 10:55   Re: Auto/Rebuy ?
Reply With Quote #14

Once again thanks for all the help, since I can not do any of this.
And again please forgive my OLD age as being the factor in me NOT learning this code stuff myself.

I get this error and it doesn't compile:

/home/groups/amxmodx/tmp3/phpZVXZNB.sma(3) : error 017: undefined symbol "register_plugin"
/home/groups/amxmodx/tmp3/phpZVXZNB.sma(4) : error 017: undefined symbol "register_clcmd"
/home/groups/amxmodx/tmp3/phpZVXZNB.sma(9) : error 017: undefined symbol "PLUGIN_HANDLED"

3 Errors.
Could not locate output file /home/groups/amxmodx/public_html/websc3/phpZVXZNB.amx (compile failed).


But like I said, all of you helping with amxmodx is the reason it is so used today.

Yours,
-Bubba
bubbacs is offline
vvg125
AMX Mod X Beta Tester
Join Date: Dec 2006
Location: Queens (Douglaston), New
Old 06-01-2007 , 11:11   Re: Auto/Rebuy ?
Reply With Quote #15

Brad left out the includes when he posted that. Try this:

Code:
#include <amxmodx>

public plugin_init() 
{
     register_plugin("Prohibit Rebuy", "1.0", "sawce");
     register_clcmd("cl_rebuy", "cmd_rebuy"); 
} 

public cmd_rebuy(id) 
{
     return PLUGIN_HANDLED; 
}
__________________
vvg125 is offline
Send a message via AIM to vvg125 Send a message via MSN to vvg125 Send a message via Yahoo to vvg125
bubbacs
Member
Join Date: Sep 2005
Old 06-01-2007 , 20:24   Re: Auto/Rebuy ?
Reply With Quote #16

Wanted to be sure to come back and say THANKS.
It works, and it does the trick now.
If I can support the AMXMODX system some how, please let me know!

-Bubba
bubbacs 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 03:24.


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