crxranks_get_xp_reward
Returns the XP reward that the client will get in a specific sitaution.
Syntax
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. * @return True if he has, false otherwise. */ native bool:crxranks_has_user_hudinfo(id) /** * Checks if the HUD info system is using DHUD messages. * * @return True if it is, false otherwise. */
Usage
| id | Client index. |
| reward | Reward keyword. |
Return
XP — reward that the client will get.
Defined in
crxranks.inc
at line 196
.
This documentation was automatically generated from source.