crxranks_get_rank_by_level

Searches for a rank name by a specific level number.

Syntax

native crxranks_get_rank_by_level(level, buffer[], len) /** * Returns the data saving type set in the plugin's configuration file. * * @note You can use the constants CRXRANKS_ST_NICKNAME, CRXRANKS_ST_IP * and CRXRANKS_ST_STEAMID instead of numbers. * * @return 0 if it's set to nickname, 1 for IP and 2 for SteamID. */ native CRXRanks_SaveTypes:crxranks_get_save_type() /** * Returns a key value set in the [Settings] section in the plugin's configuration file. * * @param key Key to search for. * @param value Buffer to store the value in. * @param len Maximum buffer length. * @return True if the key was found, false otherwise. */ native bool:crxranks_get_setting(key[], value[], len) /** * Returns the client's HUD information. * * @param id Client index. * @param buffer Buffer to store the HUD information in. * @param len Maximum buffer length. * @noreturn */

Usage

level Level number.
buffer Buffer to store the rank name in.
len Maximum buffer length.

Return

if the level number is out of range, 1 otherwise.

Defined in crxranks.inc at line 87 . This documentation was automatically generated from source.