OciXCrom's Custom Shop + API

Одобрените от нас плъгини. Моля, докладвайте ако забележите бъг с някой от плъгините в този раздел.
Аватар
OciXCrom
Извън линия
Администратор
Администратор
Мнения: 7206
Регистриран на: 06 Окт 2016, 19:20
Местоположение: /resetscore
Се отблагодари: 117 пъти
Получена благодарност: 1295 пъти
Обратна връзка:

OciXCrom's Custom Shop + API

Мнение от OciXCrom » 25 Сеп 2020, 20:58

Защо да пуска отделна тема ако проблемът е свързан с плъгина?
Добре но как да ги свържа?
Като се научиш да пишеш плъгини и имаш достатъчно познания да свържеш два такива.

Аватар
Shoko
Извън линия
Потребител
Потребител
Мнения: 28
Регистриран на: 07 Сеп 2020, 15:56
Местоположение: Meowgik
Се отблагодари: 5 пъти
Обратна връзка:

OciXCrom's Custom Shop + API

Мнение от Shoko » 29 Сеп 2020, 19:33

OciXCrom написа: 25 Сеп 2020, 20:58 Защо да пуска отделна тема ако проблемът е свързан с плъгина?
Добре но как да ги свържа?
Като се научиш да пишеш плъгини и имаш достатъчно познания да свържеш два такива.
Добре неможе ли да ми кажеш как става номера да ги свържа.

Аватар
OciXCrom
Извън линия
Администратор
Администратор
Мнения: 7206
Регистриран на: 06 Окт 2016, 19:20
Местоположение: /resetscore
Се отблагодари: 117 пъти
Получена благодарност: 1295 пъти
Обратна връзка:

OciXCrom's Custom Shop + API

Мнение от OciXCrom » 29 Сеп 2020, 21:43

Все едно питаш как се играе футбол.
Просто пусни си заявка като нямаш нужните умения да го направиш сам.

Аватар
rian18
Извън линия
Foreigner
Foreigner
Мнения: 17
Регистриран на: 19 Юли 2020, 12:11
Се отблагодари: 10 пъти

OciXCrom's Custom Shop + API

Мнение от rian18 » 03 Дек 2020, 20:19

Is there a happy hour addon available somewhere where you get x amount of points for the cshop (if points are set to buy items)?

Аватар
OciXCrom
Извън линия
Администратор
Администратор
Мнения: 7206
Регистриран на: 06 Окт 2016, 19:20
Местоположение: /resetscore
Се отблагодари: 117 пъти
Получена благодарност: 1295 пъти
Обратна връзка:

OciXCrom's Custom Shop + API

Мнение от OciXCrom » 04 Дек 2020, 00:56

rian18 написа: 03 Дек 2020, 20:19 Is there a happy hour addon available somewhere where you get x amount of points for the cshop (if points are set to buy items)?
How should you get these points? On a random interval or?

Аватар
rian18
Извън линия
Foreigner
Foreigner
Мнения: 17
Регистриран на: 19 Юли 2020, 12:11
Се отблагодари: 10 пъти

OciXCrom's Custom Shop + API

Мнение от rian18 » 05 Дек 2020, 11:14

fixed time (maybe 8pm - 9 pm) amount of normal points x multiplier (2 points x 3 = 6) maybe.

Аватар
GGzBoy
Извън линия
Foreigner
Foreigner
Мнения: 63
Регистриран на: 28 Мар 2020, 16:42
Се отблагодари: 16 пъти
Получена благодарност: 1 път

OciXCrom's Custom Shop + API

Мнение от GGzBoy » 10 Дек 2020, 15:37

Could you put this adrenaline-compatible store on capture the flag?
I tried to change it where you said but I get errors so I will post the .inc of the ctf
this addition would be very good since the mod is dominating

Код за потвърждение: Избери целия код

#if defined _jctf_included
	#endinput
#endif

#define _jctf_included
#define _jctf_version 1.26
#pragma library jctf

/*
	These are parsed in the iEvent var of the jctf_flag() forward.
*/
enum
{
	/* Event		| Forward variables used by event	| Description of event											*/
	FLAG_STOLEN = 0,	/* iPlayer, iFlagTeam			| iPlayer got iFlagTeam's flag from their base							*/
	FLAG_PICKED,	/* iPlayer, iFlagTeam			| iPlayer picked iFlagTeam's flag from the ground						*/
	FLAG_DROPPED,	/* iPlayer, iFlagTeam			| iPlayer dropped the iFlagTeam's flag by dying, disconnecting or manually		*/
	FLAG_MANUALDROP,	/* iPlayer, iFlagTeam			| iPlayer dropped the iFlagTeam's flag manually (using /dropflag)				*/
	FLAG_RETURNED,	/* iPlayer, iFlagTeam, bAssist 	| iPlayer (bAssist ? "assisted on returning" : "returned") the iFlagTeam's flag	*/
	FLAG_CAPTURED,	/* iPlayer, iFlagTeam, bAssist	| iPlayer (bAssist ? "assisted on capturing" : "captured") the iFlagTeam's flag	*/
	FLAG_AUTORETURN,	/* iFlagTeam				| iFlagTeam's flag was automatically returned							*/
	FLAG_ADMINRETURN	/* iPlayer, iFlagTeam			| iFlagTeam's flag was returned by admin iPlayer using the command			*/
};

/**
 * This forward triggers when a team's flag changes status.
 * This forward also triggers, for example, when a flag is captured, for the
 * capturing player and also for the assisting ones, each having bAssist true/false acordingly.
 *
 * @param iEvent		The event triggered (list above)
 * @param iPlayer		Index of player
 * @param iFlagTeam	The flag's team
 * @param bool:bAssist	Is true if the iPlayer is an assisting player for iEvent, false if not.
 * @noreturn
 */
forward jctf_flag(iEvent, iPlayer, iFlagTeam, bool:bAssist);

/**
 * This native returns the player's team
 * NOTE: It doesn't check if player is actually a player, you could get plugin errors if you use it wrong.
 *
 * @param id		Index of player
 * @return			Index of team
 */
native jctf_get_team(id);

/**
 * This native returns if the player is carrying the flag
 * NOTE: It doesn't check if player is actually a player, you could get plugin errors if you use it wrong.
 *
 * @param id		Index of player
 * @return			1 if player is carying the flag, 0 otherwise
 */
native jctf_get_flagcarrier(id);

/**
 * This native returns the player's adrenaline amount.
 * NOTE: It doesn't check if player is actually a player, you could get plugin errors if you use it wrong.
 *
 * @param id		Index of player
 * @return			Amount of adrenaline player has
 */
native jctf_get_adrenaline(id);

/**
 * This native adds or substracts adrenaline from a player.
 * NOTE: This can be used to set adrenaline too, you can empty it using -100 or fill it using 100 as iAdd.
 * NOTE: It doesn't check if player is actually a player, you could get plugin errors if you use it wrong.
 *
 * @param id		Index of player
 * @param iAdd		How much adrenaline to add, can be negative to substract
 * @param szReason[]	(optional) if specified, it will print a center and console message to the player about amount received/lost
 * @noreturn
 */
native jctf_add_adrenaline(id, iAdd, szReason[] = "");

Аватар
Fatall
Извън линия
Потребител
Потребител
Мнения: 295
Регистриран на: 30 Авг 2018, 09:35
Местоположение: София
Се отблагодари: 26 пъти
Получена благодарност: 17 пъти
Обратна връзка:

OciXCrom's Custom Shop + API

Мнение от Fatall » 19 Дек 2020, 08:30

Кроме как мога да давам точки на всички.
Пример: cshop_points "@all" "200"

Код за потвърждение: Избери целия код

<?php
   $error_msg = "Database error in [page].php / ";
   $error_msg .= mysqli_error ( $link )." / ";
   $error_msg .= $query;
   UpdateLog ( $error_msg , DB_ERROR_LOG_FILE );
?>

Аватар
OciXCrom
Извън линия
Администратор
Администратор
Мнения: 7206
Регистриран на: 06 Окт 2016, 19:20
Местоположение: /resetscore
Се отблагодари: 117 пъти
Получена благодарност: 1295 пъти
Обратна връзка:

OciXCrom's Custom Shop + API

Мнение от OciXCrom » 19 Дек 2020, 14:32

Fatall написа: 19 Дек 2020, 08:30 Кроме как мога да давам точки на всички.
Пример: cshop_points "@all" "200"
viewtopic.php?f=21&t=1028
GGzBoy написа: 10 Дек 2020, 15:37 Could you put this adrenaline-compatible store on capture the flag?
I tried to change it where you said but I get errors so I will post the .inc of the ctf
this addition would be very good since the mod is dominating

Код за потвърждение: Избери целия код

#if defined _jctf_included
	#endinput
#endif

#define _jctf_included
#define _jctf_version 1.26
#pragma library jctf

/*
	These are parsed in the iEvent var of the jctf_flag() forward.
*/
enum
{
	/* Event		| Forward variables used by event	| Description of event											*/
	FLAG_STOLEN = 0,	/* iPlayer, iFlagTeam			| iPlayer got iFlagTeam's flag from their base							*/
	FLAG_PICKED,	/* iPlayer, iFlagTeam			| iPlayer picked iFlagTeam's flag from the ground						*/
	FLAG_DROPPED,	/* iPlayer, iFlagTeam			| iPlayer dropped the iFlagTeam's flag by dying, disconnecting or manually		*/
	FLAG_MANUALDROP,	/* iPlayer, iFlagTeam			| iPlayer dropped the iFlagTeam's flag manually (using /dropflag)				*/
	FLAG_RETURNED,	/* iPlayer, iFlagTeam, bAssist 	| iPlayer (bAssist ? "assisted on returning" : "returned") the iFlagTeam's flag	*/
	FLAG_CAPTURED,	/* iPlayer, iFlagTeam, bAssist	| iPlayer (bAssist ? "assisted on capturing" : "captured") the iFlagTeam's flag	*/
	FLAG_AUTORETURN,	/* iFlagTeam				| iFlagTeam's flag was automatically returned							*/
	FLAG_ADMINRETURN	/* iPlayer, iFlagTeam			| iFlagTeam's flag was returned by admin iPlayer using the command			*/
};

/**
 * This forward triggers when a team's flag changes status.
 * This forward also triggers, for example, when a flag is captured, for the
 * capturing player and also for the assisting ones, each having bAssist true/false acordingly.
 *
 * @param iEvent		The event triggered (list above)
 * @param iPlayer		Index of player
 * @param iFlagTeam	The flag's team
 * @param bool:bAssist	Is true if the iPlayer is an assisting player for iEvent, false if not.
 * @noreturn
 */
forward jctf_flag(iEvent, iPlayer, iFlagTeam, bool:bAssist);

/**
 * This native returns the player's team
 * NOTE: It doesn't check if player is actually a player, you could get plugin errors if you use it wrong.
 *
 * @param id		Index of player
 * @return			Index of team
 */
native jctf_get_team(id);

/**
 * This native returns if the player is carrying the flag
 * NOTE: It doesn't check if player is actually a player, you could get plugin errors if you use it wrong.
 *
 * @param id		Index of player
 * @return			1 if player is carying the flag, 0 otherwise
 */
native jctf_get_flagcarrier(id);

/**
 * This native returns the player's adrenaline amount.
 * NOTE: It doesn't check if player is actually a player, you could get plugin errors if you use it wrong.
 *
 * @param id		Index of player
 * @return			Amount of adrenaline player has
 */
native jctf_get_adrenaline(id);

/**
 * This native adds or substracts adrenaline from a player.
 * NOTE: This can be used to set adrenaline too, you can empty it using -100 or fill it using 100 as iAdd.
 * NOTE: It doesn't check if player is actually a player, you could get plugin errors if you use it wrong.
 *
 * @param id		Index of player
 * @param iAdd		How much adrenaline to add, can be negative to substract
 * @param szReason[]	(optional) if specified, it will print a center and console message to the player about amount received/lost
 * @noreturn
 */
native jctf_add_adrenaline(id, iAdd, szReason[] = "");
You want to use the adrenaline to buy items from the shop (instead of points/cash) or you want to be able to buy adrenaline from the shop?

Аватар
GGzBoy
Извън линия
Foreigner
Foreigner
Мнения: 63
Регистриран на: 28 Мар 2020, 16:42
Се отблагодари: 16 пъти
Получена благодарност: 1 път

OciXCrom's Custom Shop + API

Мнение от GGzBoy » 19 Дек 2020, 15:28

OciXCrom написа: 19 Дек 2020, 14:32
Fatall написа: 19 Дек 2020, 08:30 Кроме как мога да давам точки на всички.
Пример: cshop_points "@all" "200"
viewtopic.php?f=21&t=1028
GGzBoy написа: 10 Дек 2020, 15:37 Could you put this adrenaline-compatible store on capture the flag?
I tried to change it where you said but I get errors so I will post the .inc of the ctf
this addition would be very good since the mod is dominating

Код за потвърждение: Избери целия код

#if defined _jctf_included
	#endinput
#endif

#define _jctf_included
#define _jctf_version 1.26
#pragma library jctf

/*
	These are parsed in the iEvent var of the jctf_flag() forward.
*/
enum
{
	/* Event		| Forward variables used by event	| Description of event											*/
	FLAG_STOLEN = 0,	/* iPlayer, iFlagTeam			| iPlayer got iFlagTeam's flag from their base							*/
	FLAG_PICKED,	/* iPlayer, iFlagTeam			| iPlayer picked iFlagTeam's flag from the ground						*/
	FLAG_DROPPED,	/* iPlayer, iFlagTeam			| iPlayer dropped the iFlagTeam's flag by dying, disconnecting or manually		*/
	FLAG_MANUALDROP,	/* iPlayer, iFlagTeam			| iPlayer dropped the iFlagTeam's flag manually (using /dropflag)				*/
	FLAG_RETURNED,	/* iPlayer, iFlagTeam, bAssist 	| iPlayer (bAssist ? "assisted on returning" : "returned") the iFlagTeam's flag	*/
	FLAG_CAPTURED,	/* iPlayer, iFlagTeam, bAssist	| iPlayer (bAssist ? "assisted on capturing" : "captured") the iFlagTeam's flag	*/
	FLAG_AUTORETURN,	/* iFlagTeam				| iFlagTeam's flag was automatically returned							*/
	FLAG_ADMINRETURN	/* iPlayer, iFlagTeam			| iFlagTeam's flag was returned by admin iPlayer using the command			*/
};

/**
 * This forward triggers when a team's flag changes status.
 * This forward also triggers, for example, when a flag is captured, for the
 * capturing player and also for the assisting ones, each having bAssist true/false acordingly.
 *
 * @param iEvent		The event triggered (list above)
 * @param iPlayer		Index of player
 * @param iFlagTeam	The flag's team
 * @param bool:bAssist	Is true if the iPlayer is an assisting player for iEvent, false if not.
 * @noreturn
 */
forward jctf_flag(iEvent, iPlayer, iFlagTeam, bool:bAssist);

/**
 * This native returns the player's team
 * NOTE: It doesn't check if player is actually a player, you could get plugin errors if you use it wrong.
 *
 * @param id		Index of player
 * @return			Index of team
 */
native jctf_get_team(id);

/**
 * This native returns if the player is carrying the flag
 * NOTE: It doesn't check if player is actually a player, you could get plugin errors if you use it wrong.
 *
 * @param id		Index of player
 * @return			1 if player is carying the flag, 0 otherwise
 */
native jctf_get_flagcarrier(id);

/**
 * This native returns the player's adrenaline amount.
 * NOTE: It doesn't check if player is actually a player, you could get plugin errors if you use it wrong.
 *
 * @param id		Index of player
 * @return			Amount of adrenaline player has
 */
native jctf_get_adrenaline(id);

/**
 * This native adds or substracts adrenaline from a player.
 * NOTE: This can be used to set adrenaline too, you can empty it using -100 or fill it using 100 as iAdd.
 * NOTE: It doesn't check if player is actually a player, you could get plugin errors if you use it wrong.
 *
 * @param id		Index of player
 * @param iAdd		How much adrenaline to add, can be negative to substract
 * @param szReason[]	(optional) if specified, it will print a center and console message to the player about amount received/lost
 * @noreturn
 */
native jctf_add_adrenaline(id, iAdd, szReason[] = "");
You want to use the adrenaline to buy items from the shop (instead of points/cash) or you want to be able to buy adrenaline from the shop?
use adrenaline to buy item in store

Публикувай отговор
  • Подобни теми
    Отговори
    Преглеждания
     Последно мнение

Обратно към “Одобрени плъгини”

Кой е на линия

Потребители разглеждащи този форум: Semrush [Bot] и 13 госта