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
/ Библиотеки / lottery_api.inc

lottery_api.inc

For the native lottery_set_description

.inc 1.8 KB 49 реда 04.04.2026
Pawn / AMX Mod X
#if defined _lottery_api_included
	#endinput
#endif

#define _lottery_api_included

// For the native lottery_set_description
const LOTTERY_COST = 0;
const LOTTERY_REWARD = 1;

// Set the description of the cost or reward (in format style).
native lottery_set_description(const Which = LOTTERY_COST, const Description[] = "", any:...);

// Set the number of options for the players to choose.
native lottery_set_options_num(const OptionsNum);

// Sets the minimun number of participants for the lottery.
native lottery_set_min_participants(const MinParticipants);

// Forces a lottery to start. Returns true on success, false if the lottery couldn't begin.
native bool:lottery_force_start();

// Returns the seconds (float with ms) remaining for the next lottery, 0.0 if a lottery is in progress.
// Returns < 0 if there is not a next lottery.
native Float:lottery_time_remaining();

// Called when a lottery is ready to start.
// This is the only correct place to call the natives lottery_set_*
// Return PLUGIN_HANDLED to stop the lottery from beginning.
forward lottery_start();

// Called when someone wants to participate. Here we must check if the player can pay.
// Return PLUGIN_HANDLED if the player can't pay.
forward lottery_check(id);

// After checking that the player can pay the lottery, this is called.
// Here we collect the cost from the player.
forward lottery_pay(id);

// This forward is called if someone payed to play but the lottery didn't start.
// Here we refund the cost to the player.
forward lottery_refund(id);

// This forward is called when a player won the lottery. Here we give the reward to the player.
forward lottery_give_reward(id);
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang10250\\ f0\\ fs16 \n\\ par }
*/
РЕКЛАМИРАЙ ПРИ НАС!
AMXX-BG.INFO
КАК ДА ИЗПОЛЗВАМ
Добави в началото на .sma файла:
#include <lottery_api>
1. Изтегли
Свали файла от бутона по-горе
2. Копирай
Постави в scripting/include/
3. Включи
Добави #include директивата
4. Компилирай
Използвай amxxpc или scripting/compile.exe
PrivateServ.NET