crxranks_user_receive_xp
Called right before the client receives XP.
Syntax
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. * @noreturn */ native crxranks_get_chat_prefix(buffer[], len) /** * Returns the flags that clients will receive when they reach the final level. * * @param buffer Buffer to store the flags in. * @param len Maximum buffer length. * @return Flags as bit value. */ native crxranks_get_final_flags(buffer[] = "", len = 0)
Usage
| id | Client index. |
| xp | Amount of XP ready to be received. |
| source | The XP source. |
Return
CRXRANKS_STOP — to prevent the XP from being added,
Defined in
crxranks.inc
at line 32
.
This documentation was automatically generated from source.