Raised This Month: $32 Target: $400
 8% 

Trash this


Post New Thread Reply   
 
Thread Tools Display Modes
5aloOod
Senior Member
Join Date: Jun 2013
Location: hell
Old 10-09-2014 , 07:21   Re: [REQ] Block Buy Menu
Reply With Quote #21

Quote:
Originally Posted by Syturi0 View Post
non steam detected
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
5aloOod is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 10-09-2014 , 07:33   Re: [REQ] Block Buy Menu
Reply With Quote #22

Quote:
Originally Posted by 5aloOod View Post
non steam detected
Its a image from google LOL..........
Syturi0 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-09-2014 , 10:33   Re: [REQ] Block Buy Menu
Reply With Quote #23

Quote:
Originally Posted by Jhob94 View Post
PHP Code:
#include <amxmodx>

#define PLUGIN    "Block Command"
#define AUTHOR    "Drogocop"
#define VERSION    "1.1"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("buy""bblocked");
    
register_clcmd("cl_autobuy""bblocked");
    
register_clcmd("cl_rebuy""bblocked");
    
register_clcmd("cl_setautobuy""bblocked");
    
register_clcmd("cl_setrebuy""bblocked");
    
    
register_clcmd("glock""bblocked");
    
register_clcmd("usp""bblocked");
    
register_clcmd("p228""bblocked");
    
register_clcmd("deagle""bblocked");
    
register_clcmd("elites""bblocked");
    
register_clcmd("fn57""bblocked");
    
    
register_clcmd("mp5""bblocked");
    
register_clcmd("smg""bblocked");
    
register_clcmd("mac10""bblocked");
    
register_clcmd("tmp""bblocked");
    
register_clcmd("ump45""bblocked");
    
register_clcmd("p90""bblocked");
    
    
register_clcmd("m3""bblocked");
    
register_clcmd("xm1014""bblocked");
    
    
register_clcmd("famas""bblocked");
    
register_clcmd("m4a1""bblocked");
    
register_clcmd("ak47""bblocked");
    
register_clcmd("sg552""bblocked");
    
register_clcmd("galil""bblocked"); 
    
register_clcmd("aug""bblocked");
    
    
register_clcmd("scout""bblocked");
    
register_clcmd("awp""bblocked");
    
register_clcmd("sg550""bblocked");
    
register_clcmd("g3sg1""bblocked");
    
    
register_clcmd("m249""bblocked");
    
    
register_clcmd("hegren""bblocked");
    
register_clcmd("flash""bblocked");
    
register_clcmd("sgren""bblocked");
    
register_clcmd("vest""bblocked");
    
register_clcmd("vesthelm""bblocked");
    
register_clcmd("shield""bblocked");
    
register_clcmd("buyammo1""bblocked");
    
register_clcmd("buyammo1""bblocked");
    
register_clcmd("buyequip""bblocked");
}

public 
bblocked(id)
{
    
// Open your menu here
    
return PLUGIN_HANDLED

This is weird, you can do it like here: https://forums.alliedmods.net/showpo...2&postcount=40

Also, from what I tested, even if you block the buymenu, you can't display your own menu, idk why it's like that.
__________________

Last edited by HamletEagle; 10-09-2014 at 10:34.
HamletEagle is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Siiiiiiiiuu
Old 10-09-2014 , 10:41   Re: [REQ] Block Buy Menu
Reply With Quote #24

the way you did is completly unnecessary and i guess it requires more cpu. Weird is to use tries and hook the commands like you did when this works with register_clcmd xD
__________________
Jhob94 is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 10-09-2014 , 10:50   Re: [REQ] Block Buy Menu
Reply With Quote #25

So, how i display a custom menu instead of the buymenu?
Syturi0 is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Siiiiiiiiuu
Old 10-09-2014 , 11:05   Re: [REQ] Block Buy Menu
Reply With Quote #26

Quote:
Originally Posted by Syturi0 View Post
So, how i display a custom menu instead of the buymenu?
show your code
__________________
Jhob94 is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 10-09-2014 , 11:46   Re: [REQ] Block Buy Menu
Reply With Quote #27

Quote:
Originally Posted by Jhob94 View Post
show your code
Thats what iam asking for..
Your code doesnt work.
It doesnt block buymenu and it doesnt show custom menu.
Syturi0 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 09:48.


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