Raised This Month: $ Target: $400
 0% 

How to delete buyzone?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
fl0werD
Senior Member
Join Date: May 2011
Old 02-26-2013 , 12:37   How to delete buyzone?
Reply With Quote #1

How to delete buyzone?

This code is not work:
PHP Code:
public Forward__Spawn_Pre(iEntity)
{
    if(!
pev_valid(iEntity))
        return 
FMRES_IGNORED;

    new 
szClassName[32];
    
pev(iEntitypev_classnameszClassNamecharsmax(szClassName))

    if(!
equal(szClassName"func_buyzone") && !equal(szClassName"info_buyzone"))
        return 
FMRES_IGNORED;

    
engfunc(EngFunc_RemoveEntityiEntity)
    return 
FMRES_SUPERCEDE;

This code is work:
PHP Code:
public Message__StatusIcon(MsgIDMsgDestiPlayer)
{
    static 
szIcon[5];
    
get_msg_arg_string(2szIconcharsmax(szIcon))
     
    if(
szIcon[0] != 'b' || szIcon[2] != 'y' || szIcon[3] != 'z')
        return 
PLUGIN_CONTINUE;

    
set_pdata_int(iPlayer235get_pdata_int(iPlayer235) & ~(1<<0))
    return 
PLUGIN_HANDLED;

But I want remove buyzone to not use message status icon.
fl0werD is offline
Send a message via ICQ to fl0werD
 



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 21:39.


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