crxranks_user_level_updated

Called when the client's level changes.

Syntax

forward crxranks_user_level_updated(id, level, bool:levelup) /** * Called right before the client receives XP. * * @param id Client index. * @param xp Amount of XP ready to be received. * @param source The XP source. * @return CRXRANKS_STOP to prevent the XP from being added, * CRXRANKS_CONTINUE to let the XP pass through, * any integer value to modify the amount of XP that * is going to be received */ forward crxranks_user_receive_xp(id, xp, CRXRanks_XPSources:source) /** * Called right after the client's XP amount changes. * * @param id Client index. * @param xp Amount of XP the client has after the change. * @param source The XP source that caused the change. * @noreturn */ forward crxranks_user_xp_updated(id, xp, CRXRanks_XPSources:source) /** * Returns the chat prefix set in the plugin's configuration file. * * @param buffer Buffer to store the prefix in. * @param len Maximum buffer length.

Usage

id Client index.
level New level.
levelup True if the client gained a level, false if he lost one.

Return

This function has no return value.

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