Raised This Month: $ Target: $400
 0% 

Block Buy for Individual Player


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Apollyon
SourceMod Donor
Join Date: Dec 2007
Location: California
Old 05-03-2011 , 15:13   Re: Block Buy for Individual Player
Reply With Quote #3

Can this be used on a single player? Can you show how to apply it to my random player from above post?

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

public plugin_cfg()  
{  
    
register_message(get_user_msgid("StatusIcon"), "Message_StatusIcon"); 


public 
Message_StatusIcon(iMsgIdiMsgDestid)  
{  
    static 
szIcon[8];  
    
get_msg_arg_string(2szIconcharsmax(szIcon));  
    if( 
equal(szIcon"buyzone") ) 
    {  
        if( 
get_msg_arg_int(1) )  
        {  
            
set_pdata_int(id235get_pdata_int(id235) & ~(1<<0)); 
            return 
PLUGIN_HANDLED;  
        }  
    }  
      
    return 
PLUGIN_CONTINUE;  

__________________

Last edited by Apollyon; 05-03-2011 at 15:16.
Apollyon 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 04:28.


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