Код за потвърждение: Избери целия код
/**
* 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)
the set_user_xp
Код за потвърждение: Избери целия код
/**
* Sets the exact amount of XP that th client has.
*
* @param id Client index.
* @param amount XP amount.
* @param source XP source.
* @return Amount of XP given.
*/
native crxranks_set_user_xp(id, amount, CRXRanks_XPSources:source = CRXRANKS_XPS_PLUGIN)