Raised This Month: $ Target: $400
 0% 

How to block buymenu command?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
_pHabb
Senior Member
Join Date: Jul 2013
Location: GetCountry(pHabb);
Old 07-03-2015 , 18:06   How to block buymenu command?
Reply With Quote #1

Hello!

Help me please.

How to block buymenu command?

It's not work:
Code:
public OnPluginStart()
{
    HookUserMessage(GetUserMessageId("VGUIMenu"),HookUserMessages,true);
}

public Action:HookUserMessages(UserMsg:msg_id, Handle:bf, const players[], playersNum, bool:reliable, bool:init) 
{
    decl String:type[10]; 
    BfReadString(bf, type, sizeof(type)); 
    
    if (StrEqual(type, "buymenu"))
    {
        PrintToChatAll("blocked");
        //OpenBuyMenu(client);
        return Plugin_Handled;
    }
    
    return Plugin_Continue; 
}
Why dont work? Help me please.
_pHabb is offline
 



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 17:58.


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