Raised This Month: $ Target: $400
 0% 

Can i remove the buyzone like this?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
shuttle_wave
Veteran Member
Join Date: Apr 2009
Location: New Zealand
Old 03-15-2010 , 04:12   Re: Can i remove the buyzone like this?
Reply With Quote #2

like this

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

new g_msgStatusIcon;

// Define the Plugin Version
new const VERSION[] = "1.0";

public 
plugin_init()
{
 
register_plugin("Block Buy Menu"VERSION"Shuttle_Wave/ConnorMcleod")
 
// Block BuyZone
 
g_msgStatusIcon get_user_msgid("StatusIcon");
 
register_message(g_msgStatusIcon"msgStatusIcon");
}

// Block buyzone (by ConnorMcLeod)
public msgStatusIcon(msgidmsgdestid)
{
 static 
szIcon[8];
 
get_msg_arg_string(2szIcon7);
 
 if(
equal(szIcon"buyzone") && get_msg_arg_int(1))
 {
  
set_pdata_int(id235get_pdata_int(id235) & ~(1<<0));
  return 
PLUGIN_HANDLED;
 }
 
 return 
PLUGIN_CONTINUE;

__________________
JailBreak Mod with Plugin API ( 90% ) Public
shuttle_wave 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 08:47.


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