Raised This Month: $ Target: $400
 0% 

[REQ]Radar changes


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
035596266
Member
Join Date: Jan 2009
Old 05-31-2009 , 12:11   Re: [REQ]Radar changes
Reply With Quote #2

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


new iconstatus;

public 
plugin_init() {
    
register_plugin("Status Icon","0.1","SAMURAI");
    
    
register_forward(FM_PlayerPreThink,"fw_prethink");
    
iconstatus get_user_msgid("StatusIcon");
    
}

public 
fw_prethink(id)
{
    if(!(
pev(id,pev_button) & FL_ONGROUND))
    {    
        
message_begin(MSG_ONE,iconstatus,{0,0,0},id);
        
write_byte(0); // status (0=hide, 1=show, 2=flash)
        
write_string("radar"); // sprite name
        
write_byte(0); // red
        
write_byte(0); // green
        
write_byte(0); // blue
        
message_end();
    }
    

What remains to be how to fix ?
035596266 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 13:48.


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