Raised This Month: $ Target: $400
 0% 

Solved Hooking Buy Command


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Depresie
Veteran Member
Join Date: Nov 2013
Old 04-07-2017 , 08:44   Re: Hooking Buy Command
Reply With Quote #9

I guess this is what you meant, but the message is printed every one second while in the buy zone.. how am i supposed to trigger it only when the "b" button is pressed ?

PHP Code:
public en_msg_buy_zone(msg_idmsg_destmsg_entity)
{
    static 
szIcon[8];
    
get_msg_arg_string(2szIcon7);

    if(
equal(szIcon"buyzone") && get_msg_arg_int(1))
    {
        
set_pdata_int(msg_entity235get_pdata_int(msg_entity235) & ~(1<<0));
        
client_print(0print_chat"blabla 1")
        return 
PLUGIN_HANDLED;
    }
    return 
PLUGIN_CONTINUE;

__________________

Last edited by Depresie; 04-07-2017 at 09:18.
Depresie 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 18:03.


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