View Single Post
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 09-17-2014 , 09:38   Re: Colorful Admin Message v1.0
Reply With Quote #5

Quote:
Originally Posted by HamletEagle View Post
Cache get_user_msgid("SayText"). Don't re-index an array.
Do you mean that, it is better in this way?
PHP Code:
new g_MsgText

public plugin init()
{

    
g_MsgText get_user_msgid("SayText")
}

stock print_colored ( const index, const input [ ], const any:... )
{

    for ( 
0count++ )
    {
        if ( 
is_user_connected players ] ) )
        {
            
message_begin MSG_ONE_UNRELIABLEg_MsgText_players ] )
            
write_byte players ] )
            
write_string message )
            
message_end ( )
        }
    }

__________________
Problem with ZP?
ZP Helper!

Last edited by zmd94; 09-17-2014 at 09:39.
zmd94 is offline