cm_set_user_prefix

Sets a temporary prefix on the client.

Syntax

native cm_set_user_prefix(id, prefix[]) /** * Enables/Disables the client's prefix. * * @note It is recommended to leave the "update" parameter to "true" because starting from version 4.1 * custom data can be set to players who don't have a prefix or their prefix is disabled. * * @param id Player's index. * @param status True to enable or false to disable. * @param update Whether to automatically update the player's data. * @noreturn */ native cm_set_user_prefix_status(id, bool:status, bool:update = true) /** * Sets a temporary say format on the client. * * @note The say format set with this native won't get saved in the .ini file, so it will be gone after the client's data is updated. * * @param id Player's index. * @param say Temporary say format. * @param say_team Temporary say_team format. * @return 0 if the format doesn't exist, 1 otherwise. */ native cm_set_user_say_format(id, say[], say_team[]) /** * Returns the number ot total chat colors added in the .ini file. *

Usage

id Player's index.
prefix Temporary prefix.

Return

This function has no return value.

Notes

The prefix set with this native won't get saved in the .ini file, so it will be gone after the client's data is updated.

Defined in chatmanager.inc at line 143 . This documentation was automatically generated from source.