crxranks_get_xp_for_level

Returns the amount of XP required for a specific level.

Syntax

native crxranks_get_xp_for_level(level) /** * Returns the XP reward that the client will get in a specific sitaution. * * @param id Client index. * @param reward Reward keyword. * @return XP reward that the client will get. */ native crxranks_get_xp_reward(id, reward[]) /** * Gives a specific amount of XP to the client. * * @note If the "reward" parameter is set, the plugin will ignore the amount set * in the "amount" parameter and will attempt to give the XP set in the * configuration file by the specific keyword set in the "reward" parameter. * * @param id Client index. * @param amount XP amount. * @param reward Reward keyword. * @param source XP source. * @return Amount of XP given. */ native crxranks_give_user_xp(id, amount = 0, reward[] = "", CRXRanks_XPSources:source = CRXRANKS_XPS_PLUGIN) /** * Checks if the client has HUD information enabled. * * @param id Client index.

Usage

level Level number.

Return

-1 if the level is out of range, XP required for that level otherwise.

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