Raised This Month: $ Target: $400
 0% 

preventing from buying and hide/delete money


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
GhostMan
Senior Member
Join Date: Jun 2012
Old 05-26-2013 , 11:25   preventing from buying and hide/delete money
Reply With Quote #1

What i need is that buy zone would be deleted (or any other method to prevent from opening buy menu) and hide/delete money.

How could this code be upgraded or it's fine?

PHP Code:
#include <amxmodx>
#include <fakemeta>

#define PLUGIN_NAME "No buyzone & money"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "Not me"

#define OFFSET_CSMONEY 115

public plugin_init()
{
    
register_plugin(PLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR)
    
    
register_clcmd("buy""menu_block")
    
register_clcmd("buyequip""menu_block")
    
    
register_message(get_user_msgid("Money"), "MessageMoney")
}

public 
menu_block(id)
{
    return 
PLUGIN_HANDLED
}

public 
MessageMoney(id)
{
    
set_pdata_int(idOFFSET_CSMONEY0);
    
set_msg_arg_int(1ARG_LONG0);


Last edited by GhostMan; 05-26-2013 at 11:38.
GhostMan 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 16:21.


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