Premium Реклама Spotlight Bundles Boost Банери Кредити
Основно Начало Сървъри Marketplace Форум Сървъри
Общности Хостинг Добави Auction Boost
Ресурси
Библиотеки Карти Видеа Магазин Bundles
Инструменти
Builder Demo CFG HUD
AMXX API
Вход Регистрация
TOP SERVER
[IG] Easy Surf | Ramp Fix | RANKS | REPLAYS
Counter-Strike 1.6
surf_flyin_fortress
40.160.19.36:27015
18.05 18:49
8/64
186ms
/ Библиотеки / credits.inc

credits.inc

.inc 1.9 KB 87 реда 04.04.2026
Pawn / AMX Mod X
#if defined _credits_included
  #endinput
#endif
#define _credits_included

/**
 * Returns whether Credits is active.
 */
stock is_credits_active()
{
	if(!cvar_exists("bb_credits_active"))
	{
		log_amx("Cvar: ^"bb_credits_active^" does not exist.")
		return 0;
	}
	return 1;
}

/**
 * Returns a users credits.
 *
 * @param id		Player index.
 * @return		Returns current credits
 */
native credits_get_user_credits(id)

/**
 * Sets a users credits to the desired amount.
 *
 * @param id		Player index.
 * @param credits	Credit amount.
 * @return		Returns current credits
 */
native credits_set_user_credits(id, credits)

/**
 * Adds an amount to a users credits.
 *
 * @param id		Player index.
 * @param credits	Adds this amount to current credits.
 * @return		Returns current credits
 */
native credits_add_user_credits(id, credits)

/**
 * Subtracts an amount to a users credits.
 *
 * @param id		Player index.
 * @param credits	Subtracts this amount from current credits.
 * @return		Returns current credits
 */
native credits_subtract_user_credits(id, credits)

/**
 * Returns a users current credits goal.
 *
 * @param id		Player index.
 * @return		Returns current goal
 */
native credits_get_user_goal(id)

/**
 * Sets a users current credits goal..
 *
 * @param id		Player index.
 * @param credits	Amount to get goal to.
 * @return		Returns current goal
 */
native credits_set_user_goal(id, credits)

/**
 * Opens the unlocks menu for the player specified..
 *
 * @param id		Player index.
 */
native credits_show_unlocksmenu(id)

/**
 * Opens the guns menu for the player specified..
 *
 * @param id		Player index.
 */
native credits_show_gunsmenu(id)
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
РЕКЛАМИРАЙ ПРИ НАС!
AMXX-BG.INFO
КАК ДА ИЗПОЛЗВАМ
Добави в началото на .sma файла:
#include <credits>
1. Изтегли
Свали файла от бутона по-горе
2. Копирай
Постави в scripting/include/
3. Включи
Добави #include директивата
4. Компилирай
Използвай amxxpc или scripting/compile.exe
PrivateServ.NET