public plugin_init()
{
register_plugin("123", "version", "autor");
}
public ct_message_format(id)
{
if ( get_user_flags ( id ) & VIP_FLAG )
{
ct_add_to_msg(CT_MSGPOS_PREFIX, "[VIP]");
}
return PLUGIN_CONTINUE;
}
Spoiler
COLORED_TRANSLIT.inc
PHP Code:
/*
* Colored Translit v3.0 by Sho0ter Includes File
*/
/ * Message processing unit. Used to ct_add_to_msg () * /
# define CT_MSGPOS_START 0 / * Start message * /
# define CT_MSGPOS_PREFIX 1 / * prefix * /
# define CT_MSGPOS_PRENAME 2 / * Before the nickname, after the prefix * /
# define CT_MSGPOS_END 3 / * end of message * /
/ **
* Used in the forward ct_message_format ()
* Adds a string to the post player
*
* @ Parameter - position position in the message
* @ Returns - 1 if successful, 0 if unsuccessful
* /
native ct_add_to_msg(position = 1, const input[], any:...);
/ **
* Called when a player begins the formation of messages
*
* @ Parameter - id index player
* /
forward ct_message_format (id); report post