Raised This Month: $ Target: $400
 0% 

Changing sprite color


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
thomp22
Junior Member
Join Date: Feb 2011
Old 06-15-2011 , 04:30   Changing sprite color
Reply With Quote #1

I was trying to make such a plugin that when any user writes a command ie. "amx_power" it changes a certain sprites color for this user only.

So i checked another plugin and it was changing the sprites color like this:
Code:
    #include <amxmodx>
    #include <fakemeta>
 
    ...
 
    new gMsgPowerUp;
 
 
    public plugin_init()
    {
        ...        
 
        gMsgPowerUp = get_user_msgid( "Powerup" );
        register_message( gMsgPowerUp, "Message_Powerup" );
 
        ...
 
    }
 
    public Message_Powerup()
    {
 
        set_msg_arg_int( 2, ARG_BYTE, 255 ); 
        set_msg_arg_int( 3, ARG_BYTE, 0 ); 
        set_msg_arg_int( 4, ARG_BYTE, 0 );
    }

How would you change this code to work the way that any user writes "amx_power" and it changes the sprite color for him only?
thomp22 is offline
 


Thread Tools
Display Modes

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 23:35.


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