Raised This Month: $ Target: $400
 0% 

Solved Hooking Buy Command


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Depresie
Veteran Member
Join Date: Nov 2013
Old 04-06-2017 , 06:55   Hooking Buy Command
Reply With Quote #1

For some reason the hooks on the buy command don't work, did i do something wrong ?
And yes, i am in the buy zone when calling the commands
Seems like VGUI menu opens fine, even after returning the command handled, also there is no print chat message

Using the latest dev version

PHP Code:
public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)

    
register_clcmd("buy""hookbuycmd")
}

public 
hookbuycmd(id)
{
    
client_print(0print_chat"blabla")

    return 
PLUGIN_HANDLED

__________________

Last edited by Depresie; 04-06-2017 at 07:02.
Depresie is offline
 


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 18:03.


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