Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Dokumentacja AMX Mod X v. 11.5 Uzupełnionych funkcji: Sortowanie: Według modułów | Alfabetycznie
Szukaj funkcji:

3rdParty
Core
Cstrike
CSX
DoDX
Engine
ESF
Fakemeta
Fun
fun
GeoIP
HamSandwich
JSON
NS
nVault
REAPI
Regex
Sockets
Sql
SQLx
dbi
TFCX
TSFUN
TSX
tsx

credits.inc


#


#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 }
*/

Pobierz plik credits.inc